:root {
  --ink: #0f1b2d;
  --muted: #8b95a5;
  --line: #dbe1e8;
  --green: #1f4d3d;
  --green-soft: #7a9b8c;
  --mint: #e7f3ec;
  --sky: #e8f1fb;
  --font: "Outfit", "Segoe UI", sans-serif;
  --text: #0f1b2d;
  --border: #dbe1e8;
  --primary: #1f4d3d;
  --primary-soft: rgba(31, 77, 61, 0.12);
  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: var(--font); color: var(--ink); background: #fff; }
.desk-body { padding: 16px 16px 36px; }
.desk-body.on-login {
  padding: 0;
  min-height: 100dvh;
  background: #fff;
}
.screen { width: 100%; max-width: 430px; margin: 0 auto; }
[hidden] { display: none !important; }
.error { color: #b91c1c; font-size: 0.9rem; min-height: 1.1em; margin: 0 0 10px; text-align: left; }
.muted-center { text-align: center; color: var(--muted); margin: 6px 0 14px; }
.muted-center.small { font-size: 0.85rem; }
.lab { display: block; font-size: 0.9rem; font-weight: 650; color: #1e293b; margin-bottom: 6px; }
.field { display: block; margin-bottom: 14px; text-align: left; }
.field input {
  width: 100%; height: 48px; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 0 12px; font: inherit; background: #fff;
}
.mobile-row {
  display: flex; align-items: center; height: 48px; border: 1.5px solid var(--line);
  border-radius: 10px; overflow: hidden; background: #fff;
}
.mobile-row .prefix {
  height: 100%; display: flex; align-items: center; padding: 0 12px;
  background: #f3f5f7; border-right: 1.5px solid var(--line); color: var(--muted); font-weight: 650;
}
.mobile-row input { border: 0; height: 100%; flex: 1; outline: none; background: transparent; padding: 0 12px; font: inherit; }
.btn {
  border: 0; border-radius: 10px; height: 50px; width: 100%; font: inherit; font-weight: 700;
  cursor: pointer; color: #fff;
}
.btn.primary { background: var(--green); }
.btn.primary:hover { background: #16382d; }
.btn.soft { background: var(--green-soft); }
.btn.soft:not(:disabled) { background: var(--green); }
.btn:disabled { opacity: 0.85; cursor: not-allowed; }
.btn.lg { height: 52px; margin-top: 8px; font-size: 1.02rem; }
.link-btn {
  display: block; width: 100%; margin-top: 14px; background: none; border: 0;
  color: #1e3a5f; font: inherit; font-weight: 700; cursor: pointer; text-align: center;
}

/* ---- Full-height login (fills phone screen) ---- */
.login-shell {
  min-height: 100dvh;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.login-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 22px 12px;
}
.login-brand { text-align: center; margin-bottom: 22px; }
.brand-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.45rem, 5.2vw, 1.85rem);
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
}
.brand-tag {
  margin-top: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: #6b7280;
  font-weight: 650;
}
.login-step { text-align: center; }
.login-hero-icon {
  width: 88px;
  height: 88px;
  margin: 8px auto 18px;
  border-radius: 50%;
  background: #dff0e7;
  color: #3d6b58;
  display: grid;
  place-items: center;
}
.login-hero-icon.lock { color: #1f4d3d; }
.login-step h1 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 5vw, 1.9rem);
  font-weight: 800;
  color: #111;
}
.login-copy {
  margin: 0 auto 18px;
  max-width: 320px;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.45;
}
.login-input {
  height: 52px;
  border-radius: 12px;
  margin-bottom: 14px;
  text-align: left;
}
.login-input .prefix {
  background: #f3f5f7;
  min-width: 52px;
  justify-content: center;
}
.login-cta {
  height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.02rem;
}
.login-otp-input {
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  font-size: 1.05rem;
  text-align: center;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}
.resend-link {
  display: inline-block;
  margin-top: 14px;
  background: none;
  border: 0;
  color: #2563eb;
  text-decoration: underline;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.login-footer {
  margin-top: auto;
  padding: 0 16px 18px;
  text-align: center;
}
.login-footer .skyline {
  margin: 0 -8px 6px;
  line-height: 0;
}
.login-footer .skyline svg {
  width: 100%;
  height: clamp(64px, 14vh, 110px);
  display: block;
}
.footer-meta {
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 650;
  margin-bottom: 4px;
}
.footer-mission {
  color: #6b7280;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 650;
}
.login-footer.alt { padding-bottom: 28px; }
.login-footer .leaves { font-size: 1.4rem; margin-bottom: 6px; }

.otp-boxes { display: flex; gap: 10px; margin-top: 8px; }
.otp-boxes.center { justify-content: center; margin: 18px 0 20px; }
.otp-digit {
  width: 56px; height: 54px; text-align: center; font-size: 1.35rem; font-weight: 700;
  border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit;
}

/* Dashboard */
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.icon-btn, .avatar-btn, .back-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line);
  background: #fff; display: grid; place-items: center; cursor: pointer; font-size: 1.1rem; color: var(--ink);
}
.welcome { margin: 8px 0 4px; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.date-line { margin: 0 0 16px; color: var(--muted); }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat {
  position: relative; border-radius: 16px; padding: 14px 12px 16px; min-height: 96px; overflow: hidden;
}
.stat.mint { background: var(--mint); }
.stat.sky { background: var(--sky); }
.stat-label { font-size: 0.78rem; color: var(--muted); font-weight: 650; }
.stat-value { margin-top: 8px; font-size: 1.7rem; font-weight: 800; }
.stat-ico { position: absolute; right: 10px; bottom: 8px; opacity: 0.55; font-size: 1.1rem; }
.my-regs { margin-top: 22px; }
.my-regs h2 { margin: 0 0 10px; font-size: 1.1rem; }
.seg { display: inline-flex; gap: 6px; background: #f3f5f7; padding: 4px; border-radius: 999px; margin-bottom: 12px; }
.seg-btn {
  border: 0; background: transparent; padding: 8px 16px; border-radius: 999px;
  font: inherit; font-weight: 700; color: var(--muted); cursor: pointer;
}
.seg-btn.active { background: var(--mint); color: var(--green); }
.recent-list { display: flex; flex-direction: column; gap: 8px; }
.recent-item {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.recent-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: #eef1f4; color: #64748b;
  display: grid; place-items: center; flex-shrink: 0;
}
.recent-item .name { font-weight: 700; }
.recent-item .meta { font-size: 0.8rem; color: var(--muted); }
.badge-ok {
  margin-left: auto; background: #e7f3ec; color: var(--green);
  font-size: 0.75rem; font-weight: 750; padding: 6px 10px; border-radius: 999px; white-space: nowrap;
}
.recent-actions {
  display: flex; flex-direction: column; gap: 6px; margin-left: auto; align-items: flex-end;
}
.mini-btn {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer;
}
.mini-btn.del { border-color: #fecaca; color: #b91c1c; }
.recent-item .mid { flex: 1; min-width: 0; }
.footnote { margin-top: 12px; color: var(--muted); font-size: 0.8rem; text-align: center; }

/* Register */
.page-head {
  display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin-bottom: 14px;
}
.page-head h1 { margin: 0; text-align: center; font-size: 1.15rem; font-weight: 750; }
.photo-block { text-align: center; margin-bottom: 16px; }
.photo-circle {
  width: 88px; height: 88px; margin: 0 auto 12px; border-radius: 50%;
  background: #eef1f4; color: #64748b; display: grid; place-items: center; overflow: hidden;
}
.photo-circle img { width: 100%; height: 100%; object-fit: cover; }
.photo-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.photo-btn {
  border: 1.5px solid var(--green); color: var(--green); background: #fff;
  border-radius: 10px; padding: 10px 12px; font-weight: 700; font-size: 0.85rem; cursor: pointer;
}
.photo-note { margin: 8px 0 0; color: var(--muted); font-size: 0.75rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ss { width: 100%; }
.ss-shell, .ss-trigger {
  width: 100%; min-height: 48px; border: 1.5px solid var(--line) !important; border-radius: 10px !important;
  background: #fff;
}

/* Success */
.success-screen { text-align: center; padding-top: 40px; }
.success-check {
  width: 78px; height: 78px; margin: 0 auto 16px; border-radius: 50%;
  background: #c9e8d6; color: #fff; display: grid; place-items: center;
  font-size: 2rem; font-weight: 800;
}
.success-screen h1 { margin: 0 0 6px; font-size: 1.7rem; }
.code-box {
  margin: 18px auto; max-width: 320px; background: var(--mint);
  border-radius: 14px; padding: 16px;
}
.code-label { color: #1e3a5f; font-weight: 650; font-size: 0.9rem; }
.code-value { margin-top: 6px; font-size: 1.6rem; font-weight: 800; letter-spacing: 0.04em; }

.verify-screen .page-head { margin-bottom: 8px; }
.ss {
  position: relative;
}

.ss-shell {
  position: relative;
}

.ss-trigger {
  width: 100%;
  height: 56px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.ss-trigger:hover:not(.disabled) {
  border-color: #9aaba2;
}

.ss-trigger:focus,
.ss.open .ss-trigger {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.ss-trigger.disabled {
  opacity: 0.62;
  cursor: not-allowed;
  background: #f6f8f7;
}

.ss-trigger .value {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-top: 10px;
}

.ss-trigger .chev {
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.ss.open .ss-trigger .chev {
  transform: rotate(180deg);
  color: var(--primary);
}

.ss-float-label {
  position: absolute;
  left: 42px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 6px;
  color: #8b97a3;
  font-size: 0.98rem;
  font-weight: 500;
  pointer-events: none;
  background: transparent;
  transition:
    top 0.2s var(--ease),
    left 0.2s var(--ease),
    font-size 0.2s var(--ease),
    color 0.2s var(--ease),
    background 0.2s var(--ease);
  max-width: calc(100% - 70px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ss.floated .ss-float-label,
.ss.open .ss-float-label {
  top: 0;
  left: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: linear-gradient(180deg, transparent 42%, #fff 42%, #fff 100%);
}

.ss.floated:not(.open) .ss-float-label {
  color: #5b6b63;
}

.ss-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  background: #fff;
  border: 1.5px solid rgba(26, 92, 69, 0.2);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 40, 30, 0.16);
  overflow: hidden;
  transform-origin: top center;
  animation: panelIn 0.22s var(--ease);
}

.ss.open .ss-panel { display: block; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ss-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #e8eeea;
  background: #f8fbf9;
}

.ss-search input {
  border: none !important;
  height: 34px !important;
  padding: 0 !important;
  flex: 1;
  font-size: 0.95rem;
  font-family: inherit;
  background: transparent !important;
  box-shadow: none !important;
}

.ss-search input:focus { outline: none; }

.ss-list {
  max-height: 220px;
  overflow-y: auto;
}

.ss-option {
  padding: 12px 14px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s ease, padding-left 0.15s var(--ease);
}

.ss-option:hover,
.ss-option.active {
  background: var(--primary-soft);
  color: var(--primary);
  padding-left: 18px;
}

.ss-empty {
  padding: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.hint {
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
  text-align: left;
}

