.install-help__backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--bg-overlay);
}

.install-help {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-base);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
  padding: var(--space-8) var(--space-6) calc(var(--space-6) + env(safe-area-inset-bottom));
}

@media only screen and (min-width: 768px) {
  .install-help__backdrop {
    align-items: center;
  }
  .install-help {
    border-radius: var(--radius-xl);
  }
}

.install-help__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-4);
  border: none;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.install-help__title {
  margin: 0 0 var(--space-1);
  color: var(--color-text-primary);
}

.install-help__subtitle {
  margin: 0 0 var(--space-5);
  color: var(--color-text-secondary);
}

.install-help__steps {
  margin: 0 0 var(--space-6);
  padding-left: var(--space-5);
  color: var(--color-text-primary);
}

.install-help__steps li {
  margin-bottom: var(--space-3);
  line-height: var(--leading-normal);
}

.install-help__note {
  display: inline-block;
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.install-help__icon {
  width: 20px;
  height: 20px;
  vertical-align: -4px;
  color: var(--color-action);
}

.install-help__done {
  width: 100%;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-3);
  background: var(--color-action);
  color: var(--color-text-inverse);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: background var(--duration-fast) ease;
}

.install-help__done:hover {
  background: var(--color-action-hover);
}

.word-pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  line-height: 1.2;
  cursor: pointer;
  margin-right: var(--space-2);
  margin-top: var(--space-2);
  color: var(--color-text-primary);
  transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.word-pill:hover {
  background: #ececf0;
  border-color: var(--border-default);
}

.word-pill:active {
  transform: scale(0.97);
}

.word-pill a {
  color: inherit;
  text-decoration: none;
  font-family: inherit;
}

.word-pill a:hover {
  text-decoration: none;
  color: inherit;
}

@media only screen and (max-width: 768px) {
  .word-pill {
    font-size: var(--text-base);
    padding: var(--space-1) var(--space-3);
  }
}

.bookmark-container {
  min-height: 200px;
  margin-bottom: var(--space-16);
}

/* Spherical loader animation in css */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.spinner {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: var(--z-spinner);
}

.double-bounce1,
.double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--color-text-tertiary);
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: sk-bounce 2s infinite ease-in-out;
}

.double-bounce2 {
  animation-delay: -1s;
}

@keyframes sk-bounce {
  0%,
  100% {
    transform: scale(0);
    -webkit-transform: scale(0);
  }
  50% {
    transform: scale(1);
    -webkit-transform: scale(1);
  }
}

.recent-term {
  font-style: normal;
  font-weight: var(--weight-regular);
  font-size: var(--text-base);
  margin-right: var(--space-3);
}

.week-container {
  border-radius: var(--radius-lg);
  position: relative;
}

.week-container .detail {
  overflow: auto;
}

.caught-up h1 {
  color: var(--color-warning);
}

.card-stack {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  margin: 28px var(--space-2) 0;
}

.stack-card {
  position: absolute;
  inset: 0;
  background: var(--bg-base);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: top center;
  transition: transform var(--duration-slow) var(--ease),
    opacity var(--duration-slow) ease,
    box-shadow var(--duration-slow) ease;
  will-change: transform, opacity;
}

.stack-card.tint-0 { background-color: var(--tint-yellow); }
.stack-card.tint-1 { background-color: var(--tint-green); }
.stack-card.tint-2 { background-color: var(--tint-purple); }
.stack-card.tint-3 { background-color: var(--tint-pink); }
.stack-card.tint-4 { background-color: var(--tint-blue); }

.stack-card.front {
  z-index: 3;
  transform: translateY(0) scale(1);
  opacity: 1;
  box-shadow: var(--shadow-lg);
  animation: rise-from-deck 0.4s var(--ease);
}

.stack-card.front.is-clickable {
  cursor: pointer;
}

.stack-card.peek-1 {
  z-index: 2;
  transform: translateY(-18px) scale(0.96);
  opacity: 0.6;
}

.stack-card.peek-2 {
  z-index: 1;
  transform: translateY(-32px) scale(0.92);
  opacity: 0.32;
}

.card-stack.is-expanded .stack-card.peek-1 {
  opacity: 0.25;
}
.card-stack.is-expanded .stack-card.peek-2 {
  opacity: 0.12;
}

.stack-card .peek-term {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  padding: var(--space-1) var(--space-4);
  display: block;
  letter-spacing: 0.02em;
}

.stack-card.leaving {
  z-index: 4;
  pointer-events: none;
  animation-duration: 0.38s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  animation-fill-mode: forwards;
}

.stack-card.leaving-next  { animation-name: fly-off-left; }
.stack-card.leaving-prev  { animation-name: fly-off-right; }
.stack-card.leaving-archive { animation-name: fly-off-top; }

.card-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
}

.stack-card.is-expanded .card-content {
  flex-direction: row;
  gap: 0;
}

.stack-card.is-expanded .card-term {
  flex: 0 0 32%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
  border-right: 1px solid var(--border-subtle);
}

.stack-card.is-expanded .card-term .expanded-term {
  font-family: var(--font-body);
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  margin: 0;
  text-align: center;
  line-height: var(--leading-tight);
}

.stack-card.is-expanded .card-body {
  flex: 1 1 auto;
  padding: var(--space-6) var(--space-8);
  overflow: auto;
}

.card-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 5;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--color-text-primary);
  padding: 0;
  transition: background var(--duration-fast) ease;
}

.card-close:hover {
  background: var(--border-default);
}

.card-archive {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 5;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--color-text-primary);
  padding: 0;
  transition: background var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.card-archive:hover {
  background: var(--border-default);
  transform: scale(1.05);
}

.card-archive:active {
  transform: scale(0.95);
}

.card-close + .card-archive {
  right: 50px;
}

/* iOS-style segmented control */
.segmented-control {
  display: inline-flex;
  align-items: stretch;
  background: rgba(120, 120, 128, 0.12);
  border-radius: 9px;
  padding: 2px;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.segmented-control__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 88px;
  padding: var(--space-1) var(--space-3);
  background: transparent;
  border: none;
  border-radius: 7px;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background var(--duration-fast) ease, box-shadow var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.segmented-control__btn:hover {
  background: rgba(255, 255, 255, 0.6);
}

.segmented-control__btn:active {
  background: var(--bg-base);
  box-shadow: var(--shadow-sm);
  transform: scale(0.97);
}

.segmented-control__divider {
  width: 1px;
  margin: var(--space-1) 0;
  background: rgba(60, 60, 67, 0.18);
}

@keyframes rise-from-deck {
  from {
    transform: translateY(-18px) scale(0.96);
    opacity: 0.6;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes fly-off-left {
  from { transform: translate(0, 0) rotate(0); opacity: 1; }
  to { transform: translate(-120%, 12px) rotate(-8deg); opacity: 0; }
}

@keyframes fly-off-right {
  from { transform: translate(0, 0) rotate(0); opacity: 1; }
  to { transform: translate(120%, 12px) rotate(8deg); opacity: 0; }
}

@keyframes fly-off-top {
  from { transform: translateY(0) scale(1); opacity: 1; }
  to { transform: translateY(-100%) scale(0.7); opacity: 0; }
}

@media only screen and (max-width: 768px) {
  .week-container {
    padding-bottom: var(--space-4);
  }

  .card-stack {
    margin: var(--space-8) var(--space-3) 0;
  }

  .stack-card.is-expanded .card-content {
    flex-direction: column;
  }

  .stack-card.is-expanded .card-term {
    flex: 0 0 auto;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-5) var(--space-4);
  }
}

.search-container {
  position: relative;
  width: 100%;
  max-width: 786px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.search-box {
  flex: 1 1 auto;
  background: transparent;
  border: 0;
  outline: 0;
  height: 56px;
  padding: 0 var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  text-align: left;
  color: var(--color-text-primary);
}

.search-box:focus {
  outline: 0;
  border: 0;
  box-shadow: none;
}

.search-box::-moz-placeholder {
  color: var(--color-text-placeholder);
  text-transform: none;
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  text-align: left;
}

.search-box::placeholder {
  color: var(--color-text-placeholder);
  text-transform: none;
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  text-align: left;
}

.enter-hint {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-2);
  margin: 0 var(--space-2) 0 var(--space-3);
  color: var(--color-text-tertiary);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  opacity: 0.75;
  transition: color var(--duration-base) ease, opacity var(--duration-base) ease;
}

.enter-hint .enter-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 26px;
  padding: 0 var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: 1;
  color: inherit;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-subtle);
  border-bottom-width: 2px;
  border-radius: var(--radius-sm);
}

.enter-hint.is-active {
  opacity: 1;
  color: var(--color-action);
}

.enter-hint.is-active .enter-key {
  background: var(--color-action-soft);
  border-color: var(--color-action-ring);
  animation: enter-pulse 1.4s ease-in-out infinite;
}

@keyframes enter-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
  }
  50% {
    box-shadow: 0 0 0 4px var(--color-action-ring);
  }
}

@media only screen and (max-width: 768px) {
  .search-container {
    max-width: none;
  }

  .search-box {
    height: var(--control-height-lg);
    font-size: var(--text-xl);
    padding-left: var(--space-3);
    text-align: left;
  }

  .search-box::-moz-placeholder {
    color: var(--color-text-placeholder);
    font-size: var(--text-xl);
    text-align: left;
  }

  .search-box::placeholder {
    color: var(--color-text-placeholder);
    font-size: var(--text-xl);
    text-align: left;
  }

  .search-box:focus {
    outline: none;
    border: 0;
  }

  .enter-hint {
    display: none;
  }

  .search-button-small {
    background: var(--color-action);
    width: var(--control-height-md);
    height: var(--control-height-md);
    border-radius: var(--radius-pill);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

.import-cta {
  width: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-6);
  background: var(--bg-subtle);
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease, color var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.import-cta:hover {
  background: var(--bg-muted);
  border-color: var(--color-action);
  color: var(--color-action);
}

.import-cta:active {
  transform: scale(0.99);
}

.import-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--color-action-soft);
  color: var(--color-action);
}

.import-cta__title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}

.import-cta__hint {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.section-card .import-cta {
  flex: 1 1 auto;
  min-height: 0;
}

.bookmark-container {
  min-height: 240px;
  margin-bottom: var(--space-16);
}

.site-footer {
  background-color: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-8);
}

.footer-link {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--color-action);
  font-weight: var(--weight-medium);
}

.footer-link:hover {
  color: var(--color-action-hover);
  text-decoration: underline;
}

.footer-dot {
  color: var(--color-text-placeholder);
  font-size: var(--text-sm);
  line-height: 1;
}

.footer-meta {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

@media only screen and (max-width: 640px) {
  .site-footer .container {
    height: auto;
    flex-direction: column;
    gap: var(--space-3);
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
  }
}

.user-profile__expanded {
  display: flex;
  position: absolute;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  margin: var(--space-5);
}

.user-profile__expanded p {
  color: var(--color-text-placeholder);
}

.user-profile__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  transition: box-shadow var(--duration-fast) ease;
}

.expanded .user-profile__icon {
  margin-top: var(--space-5);
  margin-left: var(--space-5);
}

.user-profile__icon:hover {
  box-shadow: var(--shadow-md);
}

.user-profile__icon p {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  text-align: center;
  margin: 0;
}

.user-profile__icon .user-profile__icon__image {
  width: 60%;
  height: 60%;
}

.profile__disabled {
  background-color: var(--bg-dialog-secondary);
  border: 2px solid var(--bg-highlight);
}

.profile__active {
  background-color: var(--bg-dialog-primary);
  border: 2px solid var(--bg-highlight);
}

.profile__active p {
  font-family: var(--font-ui);
  color: var(--color-text-inverse);
}

@media only screen and (max-width: 768px) {
  .user-profile__icon {
    box-shadow: none;
  }
}

.user-profile {
  z-index: var(--z-raised);
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  width: var(--control-height-lg);
  height: var(--control-height-lg);
}

.expanded {
  width: 200px;
  min-height: 220px;
  background-color: var(--bg-muted);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

@media only screen and (max-width: 768px) {
  .user-profile {
    position: relative;
    bottom: auto;
    left: auto;
  }

  .expanded {
    top: 0;
    right: 0;
    position: absolute;
  }
}

.home-container {
  width: 786px !important;
}

.search-header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.search-header-inner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-1) var(--space-4);
}

.practice-panel {
  background-color: var(--bg-base);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-xs);
}

.practice-row {
  display: flex;
  flex-direction: row;
  gap: var(--space-6);
  height: 400px;
}

.practice-row--full {
  width: 100%;
}

.practice-row--full > * {
  flex: 1 1 100%;
  min-width: 0;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: var(--space-5);
}

.section-card {
  background-color: var(--bg-base);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  min-width: 0;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.section-card > .container {
  padding: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
}

.section-card h3 {
  margin: 0;
}

.section-card .bookmark-container {
  margin-bottom: 0;
  min-height: 0;
}

.section-card--cta {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

@media only screen and (max-width: 768px) {
  .section-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .section-card {
    min-height: 220px;
  }
}

.dialog {
  position: fixed;
  background: var(--bg-base);
  z-index: var(--z-modal);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  min-height: 320px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

@media only screen and (max-width: 768px) {
  .dialog {
    width: 100%;
    height: 100%;
    border-radius: 0;
    padding-top: var(--space-6);
  }
}

.primary-button {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text-inverse);
  background: var(--color-action);
  height: var(--control-height-md);
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) ease, box-shadow var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.primary-button:hover:not(.disabled):not(:disabled) {
  background: var(--color-action-hover);
  box-shadow: var(--shadow-action);
}

.primary-button:active:not(.disabled):not(:disabled) {
  transform: translateY(1px);
  box-shadow: none;
}

.primary-button.large {
  min-width: 110px;
  padding: 0 var(--space-6);
}

.primary-button.disabled,
.primary-button:disabled {
  background: var(--bg-disabled) !important;
  color: var(--color-text-tertiary);
  cursor: not-allowed;
  box-shadow: none;
}

@media only screen and (max-width: 768px) {
  .primary-button {
    height: var(--control-height-lg);
    padding: 0 var(--space-6);
  }
}

.link-play {
  background: var(--color-action);
  width: var(--control-height-lg);
  height: var(--control-height-lg);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

@media only screen and (max-width: 768px) {
  .animation-contnr {
    transition: height 0.5s ease;
    overflow: hidden;
    height: 24px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 0;
    position: fixed;
  }

  .circle {
    height: var(--control-height-lg);
    border-radius: var(--radius-pill);
    background-color: var(--color-action);
    transition: width 0.5s ease, height 0.5s ease, opacity 0.3s;
    position: absolute;
    margin: 0 auto;
  }

  .box {
    display: flex;
    flex-direction: row;
    gap: var(--space-2);
    transition: width 0.5s ease, height 0.5s ease, opacity 0.2s ease;
    opacity: 0;
    width: 0;
    overflow: hidden;
  }

  .dimension-anim {
    transition: left 0.5s ease, opacity 0.2s ease;
  }

  .child-collapse {
    opacity: 0;
  }
}

.chip {
  background: var(--color-highlight);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.chip a {
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: var(--weight-regular);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

.profile-type__hint {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  opacity: 0.85;
}

@media (min-width: 640px) {
  .chip {
    padding: var(--space-2) var(--space-4);
  }

  .chip a {
    font-size: var(--text-base);
    line-height: var(--leading-normal);
  }
}

.faqs-container {
  height: 800px;
}

.faqs-items {
  background-color: var(--bg-muted);
  margin-top: var(--space-4);
  width: 100%;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
}

.faqs-items p {
  padding: var(--space-3);
  margin: 0;
}

.faqs-items a {
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: var(--weight-regular);
}

.easy-recabulary {
  background-color: rgba(253, 228, 1, 0.1);
  height: 768px;
}

.easy-recabulary img {
  width: 768px;
}

@media only screen and (max-width: 768px) {
  .easy-recabulary {
    height: 640px;
  }
}

.demo-card {
  line-height: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.demo-card::-webkit-scrollbar {
  display: none;
}

.demo-image {
  display: block;
  height: clamp(320px, 60vh, 480px);
  width: auto;
  max-width: none;
  -o-object-fit: cover;
     object-fit: cover;
}

@media (min-width: 640px) {
  .demo-card {
    overflow: hidden;
  }

  .demo-image {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
}

.install-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 var(--space-4) 0;
}

.install-cta__inner {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
}

.install-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-action);
}

.install-cta__badge svg {
  width: 30px;
  height: 30px;
}

.install-cta__badge--done {
  width: 56px;
  height: 56px;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: rgba(75, 186, 149, 0.15);
  color: var(--color-success);
}

.install-cta__badge--done svg {
  width: 30px;
  height: 30px;
}

.install-cta__title {
  margin: 0;
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}

.install-cta__subtitle {
  margin: 0;
  max-width: 32rem;
  color: var(--color-text-secondary);
}

.install-cta__btn {
  margin-top: var(--space-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-action);
  color: var(--color-text-inverse);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  cursor: pointer;
  box-shadow: var(--shadow-action);
  transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease, background var(--duration-fast) ease;
}

.install-cta__btn svg {
  width: 20px;
  height: 20px;
}

.install-cta__btn:hover {
  background: var(--color-action-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-action-hover);
}

.install-cta__btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-action);
}

.install-cta__hint {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  opacity: 0.85;
}

@media only screen and (max-width: 640px) {
  .install-cta {
    padding: var(--space-8) var(--space-4) 0;
  }

  .install-cta__inner {
    padding: var(--space-8) var(--space-5);
    border-radius: var(--radius-xl);
  }

  .install-cta__title {
    font-size: var(--text-xl);
  }

  .install-cta__btn {
    width: 100%;
    max-width: 320px;
  }
}

.logo {
  display: flex;
}

.logo img {
  width: 100%;
}

.site-header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-cta {
  font-family: var(--font-ui);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  color: var(--color-action);
  padding: var(--space-2) var(--space-4);
  border: 1.5px solid var(--color-action);
  border-radius: var(--radius-pill);
  background-color: transparent;
  transition: background-color var(--duration-base) ease, color var(--duration-base) ease, transform var(--duration-fast) ease;
  white-space: nowrap;
}

.header-cta:hover {
  background-color: var(--color-action);
  color: var(--color-text-inverse);
  text-decoration: none;
}

.header-cta:active {
  transform: translateY(1px);
}

.home-search-box {
  width: 540px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  padding-left: var(--space-5);
  border-right: 0;
}

.home-search-box::-moz-placeholder {
  color: var(--color-text-placeholder);
}

.home-search-box::placeholder {
  color: var(--color-text-placeholder);
}

.home-search-box:focus {
  outline: none;
  border: 1.5px solid var(--color-action);
  border-right: 0;
  box-shadow: none;
}

.home-search-button {
  width: 100px;
  height: var(--control-height-lg);
  background: var(--color-action);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-inverse);
  transition: background var(--duration-fast) ease;
}

.home-search-button:hover {
  background: var(--color-action-hover);
}

@media only screen and (max-width: 768px) {
  .home-search-box {
    width: 360px;
  }
}

.term-definition {
  background-color: var(--bg-base);
  border-radius: var(--radius-lg);
  padding-bottom: var(--space-4);
}

.term-definition .detail {
  overflow: scroll;
  padding-bottom: var(--space-4);
}

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: currentColor; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

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

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 640px) {

  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {

  .container {
    max-width: 768px;
  }
}
@media (min-width: 984px) {

  .container {
    max-width: 984px;
  }
}
.static {
  position: static !important;
}
.fixed {
  position: fixed !important;
}
.absolute {
  position: absolute !important;
}
.relative {
  position: relative !important;
}
.sticky {
  position: sticky !important;
}
.bottom-0 {
  bottom: 0px !important;
}
.left-0 {
  left: 0px !important;
}
.top-0 {
  top: 0px !important;
}
.z-10 {
  z-index: 10 !important;
}
.z-40 {
  z-index: 40 !important;
}
.m-4 {
  margin: 1rem !important;
}
.my-4 {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}
.mb-3 {
  margin-bottom: 0.75rem !important;
}
.mb-4 {
  margin-bottom: 1rem !important;
}
.mb-8 {
  margin-bottom: 2rem !important;
}
.ml-2 {
  margin-left: 0.5rem !important;
}
.ml-4 {
  margin-left: 1rem !important;
}
.mr-5 {
  margin-right: 1.25rem !important;
}
.mt-10 {
  margin-top: 2.5rem !important;
}
.mt-2 {
  margin-top: 0.5rem !important;
}
.mt-20 {
  margin-top: 5rem !important;
}
.mt-4 {
  margin-top: 1rem !important;
}
.mt-40 {
  margin-top: 10rem !important;
}
.mt-8 {
  margin-top: 2rem !important;
}
.block {
  display: block !important;
}
.inline {
  display: inline !important;
}
.flex {
  display: flex !important;
}
.grid {
  display: grid !important;
}
.hidden {
  display: none !important;
}
.h-20 {
  height: 5rem !important;
}
.h-3\/4 {
  height: 75% !important;
}
.h-40 {
  height: 10rem !important;
}
.h-full {
  height: 100% !important;
}
.h-screen {
  height: 100vh !important;
}
.min-h-screen {
  min-height: 100vh !important;
}
.w-32 {
  width: 8rem !important;
}
.w-44 {
  width: 11rem !important;
}
.w-72 {
  width: 18rem !important;
}
.w-full {
  width: 100% !important;
}
.w-max {
  width: -moz-max-content !important;
  width: max-content !important;
}
.min-w-0 {
  min-width: 0px !important;
}
.max-w-3xl {
  max-width: 48rem !important;
}
.shrink-0 {
  flex-shrink: 0 !important;
}
.grow {
  flex-grow: 1 !important;
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;
}
.cursor-pointer {
  cursor: pointer !important;
}
.flex-row {
  flex-direction: row !important;
}
.flex-col {
  flex-direction: column !important;
}
.flex-wrap {
  flex-wrap: wrap !important;
}
.items-start {
  align-items: flex-start !important;
}
.items-center {
  align-items: center !important;
}
.justify-start {
  justify-content: flex-start !important;
}
.justify-end {
  justify-content: flex-end !important;
}
.justify-center {
  justify-content: center !important;
}
.justify-between {
  justify-content: space-between !important;
}
.gap-2 {
  gap: 0.5rem !important;
}
.gap-3 {
  gap: 0.75rem !important;
}
.gap-4 {
  gap: 1rem !important;
}
.gap-6 {
  gap: 1.5rem !important;
}
.gap-8 {
  gap: 2rem !important;
}
.whitespace-nowrap {
  white-space: nowrap !important;
}
.rounded-lg {
  border-radius: 0.5rem !important;
}
.border {
  border-width: 1px !important;
}
.border-b {
  border-bottom-width: 1px !important;
}
.border-solid {
  border-style: solid !important;
}
.border-disabled {
  --tw-border-opacity: 1 !important;
  border-color: rgb(221 221 221 / var(--tw-border-opacity, 1)) !important;
}
.bg-purewhite {
  --tw-bg-opacity: 1 !important;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1)) !important;
}
.p-10 {
  padding: 2.5rem !important;
}
.p-2 {
  padding: 0.5rem !important;
}
.p-4 {
  padding: 1rem !important;
}
.px-2 {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}
.px-4 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
.py-10 {
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
}
.py-16 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}
.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}
.pb-10 {
  padding-bottom: 2.5rem !important;
}
.pb-4 {
  padding-bottom: 1rem !important;
}
.pb-8 {
  padding-bottom: 2rem !important;
}
.pt-10 {
  padding-top: 2.5rem !important;
}
.pt-20 {
  padding-top: 5rem !important;
}
.pt-3 {
  padding-top: 0.75rem !important;
}
.pt-4 {
  padding-top: 1rem !important;
}
.pt-8 {
  padding-top: 2rem !important;
}
.text-center {
  text-align: center !important;
}
.text-2xl {
  font-size: 1.5rem !important;
  line-height: 2rem !important;
}
.text-3xl {
  font-size: 1.875rem !important;
  line-height: 2.25rem !important;
}
.text-lg {
  font-size: 1.125rem !important;
  line-height: 1.75rem !important;
}
.text-sm {
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
}
.text-xl {
  font-size: 1.25rem !important;
  line-height: 1.75rem !important;
}
.font-bold {
  font-weight: 700 !important;
}
.capitalize {
  text-transform: capitalize !important;
}
.underline {
  text-decoration-line: underline !important;
}
.antialiased {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}
.outline {
  outline-style: solid !important;
}
.blur {
  --tw-blur: blur(8px) !important;
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow) !important;
}
.grayscale {
  --tw-grayscale: grayscale(100%) !important;
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow) !important;
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow) !important;
}
.backdrop-filter {
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia) !important;
}
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter !important;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
  transition-duration: 150ms !important;
}
.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ============================================================================
   Design Tokens
   ============================================================================ */

:root {
  /* ---- Type ---- */
  --font-body: "Actor", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ui: "Kanit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Font-size scale (rem, relative to :root font-size of 18px desktop / 16px mobile) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.625rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;

  /* Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* Line heights */
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;

  /* ---- Color: text ---- */
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #525252;
  --color-text-tertiary: #8a8a8a;
  --color-text-placeholder: #c4c4c4;
  --color-text-inverse: #ffffff;
  --color-text-white: #ffffff;
  --color-placeholder: var(--color-text-placeholder); /* legacy alias */

  /* ---- Color: brand ---- */
  --color-action: #4f46e5;
  --color-action-hover: #4338ca;
  --color-action-soft: rgba(79, 70, 229, 0.08);
  --color-action-ring: rgba(79, 70, 229, 0.18);
  --color-highlight: #fde401;

  /* ---- Color: semantic ---- */
  --color-success: #4bba95;
  --color-error: #d43939;
  --color-warning: #dfca0c;

  /* ---- Color: surface / background ---- */
  --bg-color: #ffffff; /* legacy alias for --bg-base */
  --bg-base: #ffffff;
  --bg-subtle: #fafafa;
  --bg-muted: #f4f4f6;
  --bg-pills: var(--bg-muted);
  --bg-disabled: #eaeaea;

  /* ---- Color: dialog ---- */
  --bg-dialog-primary: #364f6b;
  --bg-dialog-secondary: #f5f5f5;
  --bg-overlay: rgba(0, 0, 0, 0.4);

  /* ---- Card tints (kept for SeenWeekAgo) ---- */
  --tint-yellow: #fffadc;
  --tint-green: #e7fbbe;
  --tint-purple: #e0dcff;
  --tint-pink: #ffe0e6;
  --tint-blue: #d4f1f4;
  --bg-highlight: #fde401;

  /* ---- Borders ---- */
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-default: rgba(0, 0, 0, 0.12);
  --border-strong: rgba(0, 0, 0, 0.18);
  --border-color: #c4c4c4;

  /* ---- Spacing (4px grid) ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* ---- Radius ---- */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  /* ---- Shadows (elevation scale) ---- */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.14);
  --shadow-action: 0 6px 16px rgba(79, 70, 229, 0.28);
  --shadow-action-hover: 0 8px 22px rgba(79, 70, 229, 0.34);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration-fast: 120ms;
  --duration-base: 180ms;
  --duration-slow: 320ms;

  /* ---- Z-index scale ---- */
  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 40;
  --z-modal: 100;
  --z-toast: 200;
  --z-spinner: 1000;

  /* ---- Layout ---- */
  --grid-maxWidth: 120rem;
  --grid-gutter: 2rem;

  /* ---- Control heights ---- */
  --control-height-sm: 32px;
  --control-height-md: 40px;
  --control-height-lg: 48px;

  /* Root font-size — desktop default */
  font-size: 18px;
  font-family: var(--font-body);
}

/* ============================================================================
   Base elements
   ============================================================================ */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  outline: none;
  background-color: var(--bg-base);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Headings ---- */
/* Margins kept at 0 (Tailwind preflight default); add via mt-*/mb-* utilities. */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  margin: 0;
}

h1 {
  font-size: var(--text-3xl);
}

h2 {
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
}

h2 a {
  color: var(--color-text-primary);
}

h2 span {
  margin-left: var(--space-2);
  color: var(--color-text-secondary);
  font-weight: var(--weight-regular);
}

h3 {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
}

h4 {
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
}

h5,
h6 {
  font-size: var(--text-base);
}

/* ---- Body text ---- */
/* Margins kept at 0 (Tailwind preflight default); opt into spacing with mb-*. */
p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin: 0;
  color: var(--color-text-primary);
}

ul,
ol {
  margin: 0;
  padding-left: 0;
}

ul li,
ol li {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  margin: 0;
}

small {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ---- Links ---- */
a {
  font-family: var(--font-ui);
  color: var(--color-action);
  text-decoration: none;
  font-size: inherit;
  font-weight: var(--weight-regular);
  cursor: pointer;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--color-action-hover);
  text-decoration: underline;
}

/* ---- Buttons (element-level reset; component classes do the styling) ---- */
button {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: 1.2;
  color: var(--color-text-inverse);
  background: var(--color-action);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease, transform var(--duration-fast) ease;
}

button:focus-visible {
  outline: 2px solid var(--color-action);
  outline-offset: 2px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- Inputs ---- */
input,
textarea,
select {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  height: var(--control-height-lg);
  padding: 0 var(--space-3);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

textarea {
  height: auto;
  padding: var(--space-3);
  line-height: var(--leading-normal);
}

input::-moz-placeholder, textarea::-moz-placeholder {
  color: var(--color-text-placeholder);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-placeholder);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-action);
  box-shadow: 0 0 0 3px var(--color-action-ring);
}

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

/* ---- Layout helpers ---- */
section {
  margin-top: var(--space-12);
}

section ul li {
  margin: var(--space-1) 0;
}

.static-container {
  padding: var(--space-4);
}

/* ============================================================================
   Shared utility classes
   ============================================================================ */

/* Text-only link (inline within action bars / cards) */
.link-button {
  font-family: var(--font-ui);
  color: var(--color-action);
  font-weight: var(--weight-medium);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  transition: color var(--duration-fast) ease;
}

.link-button:hover {
  color: var(--color-action-hover);
}

/* Splash backdrop (kept) */
.splash-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-muted);
  opacity: 0.5;
}

.splash-bg img {
  height: 24px;
  margin: 0 auto;
}

/* ============================================================================
   Responsive
   ============================================================================ */

/* Mobile (≤ md breakpoint) */
@media only screen and (max-width: 768px) {
  :root {
    font-size: 16px;
  }

  h1 {
    font-size: var(--text-2xl);
  }

  h2 {
    font-size: var(--text-xl);
  }

  h3 {
    font-size: var(--text-lg);
  }
}
@media (min-width: 640px) {

  .sm\:rounded-lg {
    border-radius: 0.5rem !important;
  }

  .sm\:px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}
@media (min-width: 768px) {

  .md\:mb-2 {
    margin-bottom: 0.5rem !important;
  }

  .md\:mb-4 {
    margin-bottom: 1rem !important;
  }

  .md\:hidden {
    display: none !important;
  }

  .md\:h-screen {
    height: 100vh !important;
  }

  .md\:w-\[768px\] {
    width: 768px !important;
  }

  .md\:justify-center {
    justify-content: center !important;
  }

  .md\:px-0 {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }

  .md\:pt-0 {
    padding-top: 0px !important;
  }

  .md\:text-sm {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
  }
}

.black {
  color: var(--color-text-primary);
}

.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.firebase-emulator-warning {
  display: none !important;
}

.selected {
  background: var(--bg-dialog-primary);
  color: var(--color-text-inverse);
}

.active {
  background: var(--color-action);
}

.wrap {
  white-space: pre-wrap;
  min-height: 440px;
}

.disable {
  opacity: 0.5;
  cursor: default !important;
}

@media only screen and (max-width: 768px) {
  .logo img {
    width: 80%;
  }
}

