@font-face {
  font-family: "IRANYekan";
  src: url("../fonts/iran_yekan_medium.woff2") format("woff2"), url("../fonts/iran_yekan_medium.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f5fb;
  --surface: #ffffff;
  --surface-2: #f4f6fb;
  --surface-3: #eaeef6;
  --ink: #0f1b33;
  --ink-2: #4b5876;
  --ink-3: #8a94ab;
  --line: #e8ebf3;
  --brand: #2f5bea;
  --brand-2: #5d82ff;
  --brand-deep: #1c3fc0;
  --brand-soft: #eaf0ff;
  --brand-rgb: 47, 91, 234;
  --mint: #12b76a;
  --mint-soft: #e5f8ee;
  --gold: #f5b301;
  --gold-soft: #fff5d9;
  --rose: #e5484d;
  --rose-soft: #feecec;
  --violet: #7c5cff;
  --violet-soft: #efeaff;
  --orange: #eb6834;
  --orange-soft: #fdeee7;
  --good: #0b7a3b;
  --bad: #d03b3b;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(15, 27, 51, .05), 0 0 0 1px rgba(15, 27, 51, .03);
  --sh-2: 0 1px 2px rgba(15, 27, 51, .04), 0 14px 34px -18px rgba(15, 27, 51, .16);
  --sh-3: 0 2px 6px rgba(15, 27, 51, .05), 0 30px 60px -28px rgba(15, 27, 51, .3);
  --sh-brand: 0 14px 28px -12px rgba(var(--brand-rgb), .6);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "IRANYekan", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

html.is-locked {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, b, strong, th, dt {
  font-weight: inherit;
}

em, i, u {
  font-style: normal;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

::selection {
  background: rgba(var(--brand-rgb), .2);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #cfd5e3 transparent;
}

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.num {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
}

.unit {
  font-size: 12.5px;
  color: var(--ink-3);
}

.is-ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

.muted {
  color: var(--ink-3);
}

.mono, .fld-input.mono {
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  letter-spacing: .3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .2s, color .2s, opacity .2s;
}

.btn:active {
  transform: scale(.97);
}

.btn .ico {
  width: 18px;
  height: 18px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: var(--sh-brand), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .34) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform .8s var(--ease);
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -14px rgba(var(--brand-rgb), .7), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.btn-primary:hover::before {
  transform: translateX(130%);
}

.btn-primary:active {
  transform: scale(.97);
}

.btn-soft {
  background: var(--surface-3);
  color: var(--ink);
}

.btn-soft:hover {
  background: #e3e8f2;
}

.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #dc3d43, #f0686c);
  box-shadow: 0 14px 28px -12px rgba(229, 72, 77, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.btn-danger:hover {
  transform: translateY(-2px);
}

.btn-danger-soft {
  background: var(--rose-soft);
  color: var(--bad);
}

.btn-danger-soft:hover {
  background: #fddede;
}

.btn-lg {
  height: 54px;
  padding: 0 26px;
  border-radius: 17px;
  font-size: 16px;
}

.btn-sm {
  height: 36px;
  padding: 0 13px;
  border-radius: 11px;
  font-size: 13px;
}

.btn-sm .ico {
  width: 16px;
  height: 16px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: .5;
  pointer-events: none;
}

.btn-spin {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  opacity: 0;
  animation: spin .7s linear infinite;
  animation-play-state: paused;
}

.btn.is-busy {
  opacity: 1;
  pointer-events: none;
}

.btn.is-busy > *:not(.btn-spin):not(.ripple) {
  opacity: 0;
}

.btn.is-busy .btn-spin {
  opacity: 1;
  animation-play-state: running;
}

.btn.is-success {
  background: linear-gradient(135deg, #0ea968, #34d399);
  box-shadow: 0 14px 28px -12px rgba(18, 183, 106, .6);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .35s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(-5px);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: .2;
  transform: scale(0);
  pointer-events: none;
  animation: ripple .65s var(--ease) forwards;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  color: var(--ink-2);
  transition: background-color .2s, color .2s, transform .25s var(--ease);
}

.icon-btn:hover {
  background: var(--surface-3);
  color: var(--ink);
}

.icon-btn:active {
  transform: scale(.9);
}

.icon-btn.is-danger:hover {
  background: var(--rose-soft);
  color: var(--bad);
}

.icon-btn:disabled {
  opacity: .3;
  pointer-events: none;
}

.icon-btn .ico {
  width: 18px;
  height: 18px;
}

.fld {
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
  border-radius: 16px;
  background: #f0f3f9;
  border: 1.5px solid transparent;
  cursor: text;
  transition: border-color .2s, background-color .2s, box-shadow .3s var(--ease);
}

.fld:hover {
  background: #eaeef6;
}

.fld:focus-within {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .12);
}

.fld-ico {
  display: grid;
  place-items: center;
  width: 48px;
  flex: none;
  color: var(--ink-3);
  transition: color .2s;
}

.fld-ico svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fld:focus-within .fld-ico {
  color: var(--brand);
}

.fld-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 18px 16px 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  border-radius: inherit;
}

.fld-ico + .fld-input {
  padding-inline-start: 0;
}

.fld-input.is-ltr {
  direction: ltr;
  text-align: right;
  unicode-bidi: normal;
}

.fld-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 60px #f0f3f9 inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
}

.fld-label {
  position: absolute;
  top: 50%;
  inset-inline-start: 16px;
  transform: translateY(-50%);
  transform-origin: right center;
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  transition: transform .25s var(--ease), color .2s;
}

.fld-ico ~ .fld-label {
  inset-inline-start: 48px;
}

.fld-input:focus ~ .fld-label,
.fld-input:not(:placeholder-shown) ~ .fld-label,
.fld-input:-webkit-autofill ~ .fld-label {
  transform: translateY(-21px) scale(.8);
}

.fld-input:focus ~ .fld-label {
  color: var(--brand);
}

.fld-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  margin-inline-end: 6px;
  border-radius: 12px;
  color: var(--ink-3);
  transition: background-color .2s, color .2s;
}

.fld-btn:hover {
  background: var(--surface-3);
  color: var(--ink);
}

.fld-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fld.is-invalid {
  border-color: var(--rose);
  background: var(--rose-soft);
  animation: shake .4s;
}

.fld.is-readonly {
  opacity: .65;
  pointer-events: none;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch > i {
  position: relative;
  width: 44px;
  height: 26px;
  flex: none;
  border-radius: 99px;
  background: #d3d9e6;
  transition: background-color .3s;
}

.switch > i::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 27, 51, .28);
  transition: transform .4s var(--spring);
}

.switch input:checked + i {
  background: var(--brand);
}

.switch input:checked + i::after {
  transform: translateX(-18px);
}

.switch input:focus-visible + i {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.switch-row {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--surface-2);
}

.switch-row span b {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
}

.switch-row span small {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
}

.switch.is-disabled {
  opacity: .55;
  pointer-events: none;
}

.seg {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-3);
}

.seg button {
  position: relative;
  z-index: 1;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .3s;
}

.seg button .ico {
  width: 17px;
  height: 17px;
}

.seg button.is-on {
  color: var(--ink);
}

.seg button:disabled {
  opacity: .45;
}

.seg-pill {
  position: absolute;
  top: 4px;
  left: 0;
  width: 0;
  height: calc(100% - 8px);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 27, 51, .08), 0 8px 16px -8px rgba(15, 27, 51, .22);
  transition: transform .5s var(--spring), width .3s var(--ease);
}

.seg-sm button {
  height: 34px;
  padding: 0 13px;
  font-size: 13px;
}

.card {
  --pad: 22px;
  position: relative;
  padding: var(--pad);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-2);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.card-head h3 {
  font-size: 16.5px;
  line-height: 1.6;
}

.card-head p {
  font-size: 12.5px;
  color: var(--ink-3);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
  font-size: 13px;
  color: var(--brand);
}

.link .ico {
  width: 16px;
  height: 16px;
  transition: transform .3s var(--ease);
}

.link:hover .ico {
  transform: translateX(-4px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  flex: none;
  border-radius: 99px;
  font-size: 12px;
  white-space: nowrap;
}

.badge .ico {
  width: 14px;
  height: 14px;
}

.badge-good {
  background: var(--mint-soft);
  color: var(--good);
}

.badge-warn {
  background: var(--gold-soft);
  color: #8a5d00;
}

.badge-bad {
  background: var(--rose-soft);
  color: var(--bad);
}

.badge-flat {
  background: var(--surface-3);
  color: var(--ink-2);
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.avatar {
  --c: var(--brand);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 14px;
  color: #fff;
  font-size: 17px;
  line-height: 1;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #fff));
  box-shadow: 0 10px 18px -10px var(--c), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.avatar.xl {
  width: 92px;
  height: 92px;
  border-radius: 30px;
  font-size: 38px;
}

.cat-ico {
  --c: var(--brand);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, #fff);
  transition: transform .4s var(--spring), background-color .25s, color .25s;
}

.cat-ico.lg {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.cat-ico.lg .ico {
  width: 24px;
  height: 24px;
}

.cat-ico.xl {
  width: 74px;
  height: 74px;
  border-radius: 24px;
}

.cat-ico.xl .ico {
  width: 32px;
  height: 32px;
}

.tile-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 15px;
}

.tile-ico .ico {
  width: 22px;
  height: 22px;
}

.tile-ico.sm {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.tile-ico.sm .ico {
  width: 18px;
  height: 18px;
}

.tone-blue {
  color: var(--brand);
  background: var(--brand-soft);
}

.tone-green {
  color: var(--good);
  background: var(--mint-soft);
}

.tone-orange {
  color: #c2501f;
  background: var(--orange-soft);
}

.tone-red {
  color: var(--bad);
  background: var(--rose-soft);
}

.tone-violet {
  color: #5b3fd6;
  background: var(--violet-soft);
}

.tone-gold {
  color: #8a5d00;
  background: var(--gold-soft);
}

.tone-slate {
  color: var(--ink-2);
  background: var(--surface-3);
}

.toasts {
  position: fixed;
  top: calc(14px + var(--safe-t));
  left: 50%;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(430px, calc(100vw - 24px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px 11px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 48px -20px rgba(15, 27, 51, .4), 0 0 0 1px var(--line);
  font-size: 14px;
  cursor: pointer;
  pointer-events: auto;
  animation: toastIn .6s var(--spring) both;
}

.toast p {
  flex: 1;
  line-height: 1.8;
}

.toast-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
}

.toast-ico .ico {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

.toast-success .toast-ico {
  background: var(--mint-soft);
  color: var(--good);
}

.toast-error .toast-ico {
  background: var(--rose-soft);
  color: var(--bad);
}

.toast.is-leaving {
  animation: toastOut .3s ease forwards;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 51, .4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s;
}

.modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 520px;
  max-height: min(92dvh, 880px);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 50px 110px -34px rgba(15, 27, 51, .55);
  outline: 0;
  opacity: 0;
  transform: translateY(28px) scale(.95);
  transition: transform .55s var(--spring), opacity .25s;
}

.modal-sm {
  max-width: 400px;
}

.modal-lg {
  max-width: 700px;
}

.modal-root.is-open .modal-backdrop {
  opacity: 1;
}

.modal-root.is-open .modal {
  opacity: 1;
  transform: none;
}

.modal-root.is-closing .modal-backdrop {
  opacity: 0;
}

.modal-root.is-closing .modal {
  opacity: 0;
  transform: translateY(18px) scale(.97);
  transition: transform .25s ease, opacity .2s;
}

.modal-grip {
  display: none;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 4px;
}

.modal-head h3 {
  font-size: 18.5px;
  line-height: 1.6;
}

.modal-head p {
  font-size: 13px;
  color: var(--ink-3);
}

.modal-body {
  min-width: 0;
  padding: 16px 24px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
  text-align: center;
}

.confirm-ico {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 23px;
  background: var(--brand-soft);
  color: var(--brand);
  animation: pop .6s var(--spring) .1s backwards;
}

.confirm-ico .ico {
  width: 28px;
  height: 28px;
}

.confirm-ico.is-danger {
  background: var(--rose-soft);
  color: var(--bad);
}

.confirm-ico.is-good {
  background: var(--mint-soft);
  color: var(--good);
}

.confirm h3 {
  margin-top: 8px;
  font-size: 18.5px;
}

.confirm p {
  font-size: 13.5px;
  line-height: 2.1;
  color: var(--ink-2);
}

.confirm-acts {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
}

.confirm-acts .btn {
  flex: 1;
}

.pop {
  position: fixed;
  z-index: 300;
  min-width: 220px;
  padding: 6px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--sh-3), 0 0 0 1px var(--line);
  opacity: 0;
  transform: translateY(-8px) scale(.96);
  transform-origin: top center;
  transition: opacity .18s, transform .4s var(--spring);
}

.pop.is-up {
  transform-origin: bottom center;
}

.pop.is-open {
  opacity: 1;
  transform: none;
}

.pop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--ink-2);
  text-align: start;
  transition: background-color .15s, color .15s;
}

.pop-item:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.pop-item.is-danger {
  color: var(--bad);
}

.pop-item.is-danger:hover {
  background: var(--rose-soft);
  color: var(--bad);
}

.pop-sep {
  display: block;
  height: 1px;
  margin: 5px 8px;
  background: var(--line);
}

.dp {
  padding: 14px;
  border-radius: 20px;
  background: var(--surface-2);
}

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

.dp-head b {
  font-size: 15px;
}

.dp-week, .dp-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}

.dp-week span {
  padding: 4px 0;
  font-size: 12px;
  color: var(--ink-3);
}

.dp-week span:last-child {
  color: var(--rose);
}

.dp-grid button {
  height: 40px;
  border-radius: 12px;
  font-size: 14px;
  transition: background-color .15s, color .15s, transform .3s var(--spring);
}

.dp-grid button:hover {
  background: #fff;
  box-shadow: var(--sh-1);
}

.dp-grid button:active {
  transform: scale(.9);
}

.dp-grid button.is-fri {
  color: var(--rose);
}

.dp-grid button.is-today {
  color: var(--brand);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}

.dp-grid button.is-on {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: var(--sh-brand);
}

.dp-grid.from-left {
  animation: slideFromLeft .35s var(--ease);
}

.dp-grid.from-right {
  animation: slideFromRight .35s var(--ease);
}

.dp-foot {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 34px 16px;
  text-align: center;
}

.empty-ico {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 10px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--brand-soft), #f4f0ff);
  color: var(--brand);
  animation: floatY 4s ease-in-out infinite;
}

.empty-ico .ico {
  width: 30px;
  height: 30px;
}

.empty b {
  font-size: 15.5px;
}

.empty p {
  max-width: 360px;
  font-size: 13px;
  line-height: 2;
  color: var(--ink-3);
}

.empty .btn {
  margin-top: 14px;
}

.skel {
  border-radius: 22px;
  background: linear-gradient(100deg, #e8ecf4 30%, #f6f8fc 50%, #e8ecf4 70%);
  background-size: 300% 100%;
  animation: shimmer 1.3s linear infinite;
}

.credit {
  padding: 18px 12px 22px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .2px;
  color: var(--ink-3);
}

.coin {
  --size: 76px;
  --half: 4px;
  position: relative;
  width: var(--size);
  height: var(--size);
  transform-style: preserve-3d;
  animation: coinSpin 7s linear infinite;
}

.coin > i, .coin > b, .coin > u {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.coin > i {
  background: #c78600;
}

.coin > i:nth-child(1) { transform: translateZ(-3.5px); }
.coin > i:nth-child(2) { transform: translateZ(-2.5px); background: #d99400; }
.coin > i:nth-child(3) { transform: translateZ(-1.5px); }
.coin > i:nth-child(4) { transform: translateZ(-.5px); background: #d99400; }
.coin > i:nth-child(5) { transform: translateZ(.5px); }
.coin > i:nth-child(6) { transform: translateZ(1.5px); background: #d99400; }
.coin > i:nth-child(7) { transform: translateZ(2.5px); }
.coin > i:nth-child(8) { transform: translateZ(3.5px); background: #d99400; }

.coin > b, .coin > u {
  display: grid;
  place-items: center;
  font-size: calc(var(--size) * .44);
  line-height: 1;
  color: #a86f00;
  background: radial-gradient(circle at 32% 28%, #fff6c9 0%, #ffd95a 28%, #f5b301 62%, #dc9600 100%);
  box-shadow: inset 0 0 0 calc(var(--size) * .06) rgba(255, 229, 140, .95), inset 0 0 0 calc(var(--size) * .085) rgba(196, 130, 0, .5);
  backface-visibility: hidden;
  text-shadow: 0 1px 0 rgba(255, 245, 200, .9);
}

.coin > b {
  transform: translateZ(var(--half));
}

.coin > u {
  transform: rotateY(180deg) translateZ(var(--half));
}

.coin-sm {
  --size: 46px;
}

[data-tilt] {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .8s var(--ease), box-shadow .35s var(--ease);
}

[data-tilt].is-tilting {
  transition: transform .12s linear, box-shadow .35s var(--ease);
}

.rise {
  animation: rise .75s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 55ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.985);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(.7);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shake {
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@keyframes floatY {
  50% { transform: translateY(-10px); }
}

@keyframes ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-26px) scale(.9);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-14px) scale(.94);
  }
}

@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }
}

@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(22px);
  }
}

@keyframes coinSpin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

@keyframes grow {
  from { width: 0; }
}

.strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: -6px;
  padding: 0 4px;
}

.strength > div {
  display: flex;
  flex: 0 0 120px;
  gap: 4px;
}

.strength > div i {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: var(--surface-3);
  transition: background-color .3s;
}

.strength > span {
  font-size: 12px;
  color: var(--ink-3);
}

.strength[data-score="1"] > div i:nth-child(-n+1) { background: var(--rose); }
.strength[data-score="2"] > div i:nth-child(-n+2) { background: var(--gold); }
.strength[data-score="3"] > div i:nth-child(-n+3) { background: #5cc98a; }
.strength[data-score="4"] > div i { background: var(--mint); }

.strength[data-score="0"] > div i {
  background: var(--surface-3);
}

.confirm .fld {
  width: 100%;
  margin-top: 8px;
  text-align: start;
}

[data-theme-toggle] {
  position: relative;
}

.theme-sun, .theme-moon {
  transition: transform .7s var(--spring), opacity .3s;
}

[data-theme-toggle] .theme-moon {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  transform: rotate(-90deg) scale(.3);
}

:root[data-theme="dark"] [data-theme-toggle] .theme-sun {
  opacity: 0;
  transform: rotate(90deg) scale(.3);
}

:root[data-theme="dark"] [data-theme-toggle] .theme-moon {
  opacity: 1;
  transform: none;
}

::view-transition-old(root), ::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  z-index: 1;
}

::view-transition-new(root) {
  z-index: 2;
}

.field-hint {
  margin: -6px 4px 0;
  font-size: 12.5px;
  line-height: 2;
  color: var(--ink-3);
}

@media (max-width: 640px) {
  .modal-root {
    padding: 0;
    place-items: end center;
  }

  .modal {
    max-width: none;
    max-height: 94dvh;
    padding-bottom: var(--safe-b);
    border-radius: 30px 30px 0 0;
    opacity: 1;
    transform: translateY(102%);
    transition: transform .5s var(--ease);
  }

  .modal-root.is-closing .modal {
    opacity: 1;
    transform: translateY(102%);
    transition: transform .28s ease;
  }

  .modal-grip {
    display: block;
    width: 44px;
    height: 5px;
    flex: none;
    margin: 10px auto 0;
    border-radius: 99px;
    background: #d6dbe7;
  }

  .modal-head {
    padding: 14px 20px 4px;
  }

  .modal-body {
    padding: 14px 20px 22px;
  }

  .modal-confirm {
    padding: 20px;
    place-items: center;
  }

  .modal-confirm .modal {
    max-width: 400px;
    padding-bottom: 0;
    border-radius: 30px;
    opacity: 0;
    transform: translateY(28px) scale(.95);
    transition: transform .55s var(--spring), opacity .25s;
  }

  .modal-confirm.is-open .modal {
    opacity: 1;
    transform: none;
  }

  .modal-confirm.is-closing .modal {
    opacity: 0;
    transform: translateY(18px) scale(.97);
  }

  .modal-confirm .modal-grip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

.pwa-card {
  position: fixed;
  bottom: calc(20px + var(--safe-b));
  inset-inline-end: 20px;
  z-index: 120;
  width: min(410px, calc(100vw - 32px));
  padding: 18px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--sh-3), 0 0 0 1px rgba(var(--brand-rgb), .1);
  opacity: 0;
  transform: perspective(900px) translateY(46px) rotateX(-16deg) scale(.94);
  transform-origin: 50% 100%;
  transition: transform .7s var(--spring), opacity .35s var(--ease);
}

.pwa-card.is-open {
  opacity: 1;
  transform: perspective(900px) translateY(0) rotateX(0) scale(1);
}

.pwa-card.is-leaving {
  opacity: 0;
  transform: perspective(900px) translateY(30px) scale(.95);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}

.pwa-glow {
  position: absolute;
  top: -70px;
  inset-inline-end: -60px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-rgb), .22), transparent 68%);
  pointer-events: none;
}

.pwa-x {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 32px;
  height: 32px;
}

.pwa-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-inline-end: 28px;
}

.pwa-logo {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 66px;
  height: 66px;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #eaf0ff);
  box-shadow: 0 16px 26px -16px rgba(28, 63, 192, .55), inset 0 0 0 1px rgba(var(--brand-rgb), .12);
  animation: pwaFloat 4s ease-in-out infinite;
}

.pwa-logo img {
  width: 52px;
  height: 52px;
}

.pwa-logo > i {
  position: absolute;
  bottom: -6px;
  inset-inline-end: -6px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 3px var(--surface);
  color: #fff;
}

.pwa-logo > i .ico {
  width: 14px;
  height: 14px;
}

@keyframes pwaFloat {
  50% { transform: translateY(-5px) rotate(-3deg); }
}

.pwa-top small {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 8px;
  background: var(--brand-soft);
  font-size: 11.5px;
  color: var(--brand);
}

.pwa-top b {
  display: block;
  margin-top: 4px;
  font-size: 15.5px;
  line-height: 1.7;
}

.pwa-top p {
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

.pwa-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--ink-2);
}

.pwa-perks li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pwa-perks .ico {
  width: 14px;
  height: 14px;
  color: var(--mint);
}

.pwa-acts {
  display: flex;
  gap: 8px;
}

.pwa-acts .btn-primary {
  flex: 1;
}

.pwa-guide {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pwa-guide-logo {
  position: relative;
  align-self: center;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: linear-gradient(145deg, #fff, #eaf0ff);
  box-shadow: 0 24px 40px -22px rgba(28, 63, 192, .6), inset 0 0 0 1px rgba(var(--brand-rgb), .12);
  animation: pwaFloat 4s ease-in-out infinite;
}

.pwa-guide-logo > i {
  position: absolute;
  bottom: -8px;
  inset-inline-end: -8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 4px var(--surface);
  color: #fff;
}

.pwa-guide-logo > i .ico {
  width: 18px;
  height: 18px;
}

.pwa-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pwa-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface-2);
  animation: pwaStep .5s var(--ease) both;
  animation-delay: calc(var(--i) * 90ms + 120ms);
}

@keyframes pwaStep {
  from { opacity: 0; transform: translateY(10px); }
}

.pwa-steps li > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-size: 14px;
  color: #fff;
}

.pwa-steps li p {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.9;
}

.pwa-steps li > .ico {
  flex: none;
  color: var(--brand);
}

.pwa-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: var(--gold-soft);
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink);
}

.pwa-note .ico {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--gold);
}

.app-body .pwa-card {
  inset-inline-end: 24px;
  bottom: calc(24px + var(--safe-b));
}

@media (max-width: 960px) {
  .pwa-card, .app-body .pwa-card {
    inset-inline: 12px;
    bottom: calc(14px + var(--safe-b));
    width: auto;
  }

  .app-body .pwa-card {
    bottom: calc(96px + var(--safe-b));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pwa-logo, .pwa-guide-logo, .pwa-steps li {
    animation: none;
  }
}
