:root {
  --bg: #fff2f6;
  --surface: #fffafb;
  --surface-strong: #ffdce8;
  --border: #efc2d2;
  --text: #412833;
  --muted: #7d5f6b;
  --accent: #ef2f68;
  --accent-dark: #cf1d54;
  --success: #2f7a5d;
  --danger: #b63d68;
  --shadow: 0 16px 40px rgba(122, 71, 96, 0.12);
  --line: rgba(65, 40, 51, 0.1);
  --text-soft: #6c5460;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(216, 95, 141, 0.16), transparent 30%),
    radial-gradient(circle at left center, rgba(255, 202, 220, 0.34), transparent 26%),
    linear-gradient(180deg, #fff8fa 0%, var(--bg) 100%);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: transparent;
}

a {
  color: inherit;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.page {
  padding: 2rem 0 4rem;
}

.page-sections {
  display: grid;
  gap: 1.5rem;
}

.topbar {
  border-bottom: 1px solid rgba(65, 40, 51, 0.08);
  background: rgba(255, 250, 251, 0.88);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar__content,
.topbar__nav,
.hero__header,
.hero__actions,
.card__actions,
.section__header,
.summary-grid,
.list-row,
.form-grid,
.inline-form,
.detail-grid,
.meta-list,
.budget-line,
.wishlist-card__footer {
  display: flex;
  gap: 1rem;
}

.topbar__content,
.hero__header,
.section__header,
.list-row,
.budget-line,
.wishlist-card__footer {
  justify-content: space-between;
  align-items: center;
}

.topbar__content {
  padding: 1rem 0;
}

.topbar__nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.topbar__link {
  text-decoration: none;
  font-weight: 700;
}

.topbar__link:hover {
  color: var(--accent-dark);
}

.topbar-dropdown {
  position: relative;
}

.topbar-dropdown[open] {
  z-index: 12;
}

.topbar-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
}

.topbar-dropdown__trigger::-webkit-details-marker {
  display: none;
}

.topbar-dropdown__trigger::after {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
  transition: transform 160ms ease;
}

.topbar-dropdown[open] .topbar-dropdown__trigger::after {
  transform: rotate(225deg) translateY(-1px);
}

.topbar-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  right: 0;
  min-width: 18rem;
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem;
  border: 1px solid rgba(65, 40, 51, 0.1);
  border-radius: 1.2rem;
  background: rgba(255, 251, 252, 0.98);
  box-shadow: 0 18px 40px rgba(122, 71, 96, 0.14);
}

.topbar-dropdown--locale .topbar-dropdown__menu {
  min-width: 10rem;
}

.topbar-dropdown__item {
  display: block;
  padding: 0.8rem 0.95rem;
  border-radius: 0.95rem;
  text-decoration: none;
}

.topbar-dropdown__item:hover {
  background: rgba(239, 47, 104, 0.08);
}

.topbar-dropdown__item--current {
  background: rgba(239, 47, 104, 0.08);
  font-weight: 700;
}

.topbar-dropdown__item--all {
  border-top: 1px solid rgba(65, 40, 51, 0.08);
  margin-top: 0.25rem;
  padding-top: 0.95rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.8rem;
  background:
    radial-gradient(circle at top left, rgba(255, 244, 210, 0.95), rgba(232, 214, 170, 0.92) 52%, rgba(201, 180, 135, 0.95) 100%);
  color: var(--text);
  font-size: 1.2rem;
  box-shadow: 0 12px 24px rgba(132, 108, 73, 0.16);
  border: 1px solid rgba(132, 108, 73, 0.14);
}

.brand__mark--image {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
  overflow: hidden;
}

.brand__mark-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.hero,
.card,
.form-card,
.wishlist-card,
.summary-card {
  background: var(--surface);
  border: 1px solid rgba(65, 40, 51, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 2rem;
  margin-bottom: 2rem;
}

.hero__header {
  justify-content: space-between;
  align-items: start;
}

.hero__assignment {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.landing {
  display: grid;
  gap: 2rem;
}

.landing__hero {
  padding: 1.5rem 0 0.5rem;
  text-align: center;
}

.landing__hero h1 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.02;
  text-align: center;
}

.landing__cards {
  width: min(760px, 100%);
  margin: 0 auto;
}

.landing__cards--tools {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-category-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-category-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.3rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(65, 40, 51, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.tool-category-card h2,
.tool-category-card p {
  margin: 0;
}

.landing__tools-footer {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.tools-directory__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.tools-directory__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 47, 104, 0.18);
  background: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(122, 71, 96, 0.08);
}

.tools-directory__chip:hover {
  background: rgba(255, 247, 250, 0.96);
}

.landing-card {
  padding: 1.3rem;
  border-radius: 1.8rem;
  border: 1px solid rgba(65, 40, 51, 0.08);
  box-shadow: var(--shadow);
}

.landing-card--primary {
  background: linear-gradient(180deg, rgba(224, 236, 251, 0.95) 0%, rgba(241, 245, 255, 0.92) 100%);
}

.landing-card--tool {
  --tool-accent: #4d87ff;
  --tool-accent-dark: #3968d8;
  --tool-tint: rgba(77, 135, 255, 0.09);
  background:
    radial-gradient(circle at top right, var(--tool-tint), rgba(255, 255, 255, 0.94) 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 248, 250, 0.94) 100%);
}

.landing-card--exchange-generator {
  --tool-accent: #3f7cff;
  --tool-accent-dark: #315fd2;
  --tool-tint: rgba(63, 124, 255, 0.11);
}

.landing-card--random-wheel {
  --tool-accent: #ef2f68;
  --tool-accent-dark: #cf1d54;
  --tool-tint: rgba(239, 47, 104, 0.12);
}

.landing-card--random-name-picker {
  --tool-accent: #2f9d7e;
  --tool-accent-dark: #237660;
  --tool-tint: rgba(47, 157, 126, 0.12);
}

.landing-card--coin-flip {
  --tool-accent: #7a63ff;
  --tool-accent-dark: #5c48d3;
  --tool-tint: rgba(122, 99, 255, 0.11);
}

.landing-card--random-number {
  --tool-accent: #ff9f43;
  --tool-accent-dark: #e17d15;
  --tool-tint: rgba(255, 159, 67, 0.14);
}

.landing-card--countdown-timer {
  --tool-accent: #18a0b6;
  --tool-accent-dark: #0f7f91;
  --tool-tint: rgba(24, 160, 182, 0.13);
}

.landing-card--dice-roller {
  --tool-accent: #8a63d2;
  --tool-accent-dark: #6b47b1;
  --tool-tint: rgba(138, 99, 210, 0.12);
}

.landing-card--stopwatch {
  --tool-accent: #1d9b90;
  --tool-accent-dark: #15756d;
  --tool-tint: rgba(29, 155, 144, 0.13);
}

.landing-card--yes-no-wheel {
  --tool-accent: #ff6d4d;
  --tool-accent-dark: #d84f34;
  --tool-tint: rgba(255, 109, 77, 0.13);
}

.landing-card--random-team-generator {
  --tool-accent: #4fa35f;
  --tool-accent-dark: #397a46;
  --tool-tint: rgba(79, 163, 95, 0.13);
}

.landing-card--random-letter-generator {
  --tool-accent: #ffb347;
  --tool-accent-dark: #e0881a;
  --tool-tint: rgba(255, 179, 71, 0.14);
}

.landing-card--pomodoro-timer {
  --tool-accent: #e24f45;
  --tool-accent-dark: #bc362d;
  --tool-tint: rgba(226, 79, 69, 0.14);
}

.landing-card__header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.landing-card__badge {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(180deg, var(--tool-accent) 0%, var(--tool-accent-dark) 100%);
}

.landing-card__badge--text {
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0;
}

.landing-card__title-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.landing-card__title-row h2 {
  margin: 0;
}

.landing-card__actions {
  margin-top: 1.1rem;
}

.landing-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.3rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.landing-cta:hover {
  background: linear-gradient(180deg, #e62961 0%, var(--accent-dark) 100%);
}

.landing-card--tool .landing-cta {
  background: linear-gradient(180deg, var(--tool-accent) 0%, var(--tool-accent-dark) 100%);
}

.landing-card--tool .landing-cta:hover {
  filter: brightness(0.98);
}

.landing__history {
  display: grid;
  gap: 1rem;
}

.landing--seo {
  gap: 2rem;
}

.seo-landing {
  display: grid;
  gap: 2.5rem;
}

.seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
  gap: 1.5rem;
  align-items: stretch;
}

.seo-hero__copy,
.seo-highlight,
.seo-card,
.seo-step,
.seo-faq__item,
.seo-bottom-cta {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(236, 88, 124, 0.09);
}

.seo-hero__copy {
  display: grid;
  gap: 1rem;
  padding: 2rem;
}

.seo-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(239, 47, 104, 0.12);
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.seo-hero__copy h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.95;
}

.seo-hero__lead {
  margin: 0;
  max-width: 56rem;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.seo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.seo-highlight {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  align-content: start;
}

.seo-highlight h2,
.seo-section__intro h2,
.seo-bottom-cta h2 {
  margin: 0;
}

.seo-highlight__list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
}

.seo-section {
  display: grid;
  gap: 1.25rem;
}

.seo-section__intro {
  display: grid;
  gap: 0.6rem;
  max-width: 52rem;
}

.seo-grid {
  display: grid;
  gap: 1rem;
}

.seo-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
}

.seo-card h3,
.seo-step h3,
.seo-faq__item h3 {
  margin: 0;
}

.seo-card p,
.seo-step p,
.seo-faq__item p,
.seo-bottom-cta p {
  margin: 0;
  color: var(--text-soft);
}

.seo-steps,
.seo-faq {
  display: grid;
  gap: 1rem;
}

.seo-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  align-items: start;
}

.seo-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 700;
}

.seo-faq__item {
  display: grid;
  gap: 0.7rem;
  padding: 1.5rem;
}

.seo-compare {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.seo-compare__item,
.seo-checklist__item {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(236, 88, 124, 0.08);
}

.seo-compare__item {
  display: grid;
  gap: 0.7rem;
  padding: 1.5rem;
}

.seo-compare__eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(239, 47, 104, 0.1);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.seo-compare__item h3,
.seo-checklist__item h3 {
  margin: 0;
}

.seo-compare__item p,
.seo-checklist__item p {
  margin: 0;
  color: var(--text-soft);
}

.seo-checklist {
  display: grid;
  gap: 0.9rem;
}

.seo-checklist__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  align-items: start;
}

.seo-checklist__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(239, 47, 104, 0.12);
  color: var(--accent-dark);
  font-weight: 700;
}

.seo-bottom-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1.75rem;
  align-items: center;
}

.seo-bottom-cta__actions {
  display: flex;
  justify-content: flex-end;
}

.seo-bottom-cta__actions .landing-cta {
  width: auto;
  min-width: 13rem;
  padding-inline: 1.8rem;
}

.seo-copy {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
}

.seo-copy h2 {
  margin: 0.75rem 0 0;
}

.seo-copy p {
  margin: 0;
  color: var(--text-soft);
}

.seo-links {
  display: grid;
  gap: 1rem;
}

.seo-links__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-links__item {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 14px 30px rgba(236, 88, 124, 0.08);
}

.tool-directory {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-directory__item {
  display: grid;
  gap: 0.7rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(77, 135, 255, 0.08), rgba(255, 255, 255, 0.92) 38%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(236, 88, 124, 0.08);
  text-decoration: none;
}

.tool-directory__item h3,
.tool-directory__item p {
  margin: 0;
}

.tool-directory__item p {
  color: var(--text-soft);
}

.recent-exchanges {
  display: grid;
  gap: 1rem;
}

.recent-exchanges__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.recent-exchanges__item h3,
.recent-exchanges__item p {
  margin: 0;
}

.participants-panel {
  display: grid;
  gap: 1rem;
}

.exchange-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.exchange-header--shared {
  margin-bottom: 1.5rem;
}

.exchange-header__meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.share-link {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 2rem;
}

.share-help {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
  margin-bottom: 2rem;
}

.share-help__trigger {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: min(420px, 100%);
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid rgba(239, 47, 104, 0.16);
  background: #fff;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(122, 71, 96, 0.08);
}

.share-help__trigger:hover {
  background: #fff7fa;
  border-color: rgba(239, 47, 104, 0.24);
}

.share-help__eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.share-help__title {
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.15;
}

.share-link--inline {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0;
}

.share-link__label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.share-link__button {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  box-shadow: none;
}

.share-link__button:hover {
  background: rgba(255, 255, 255, 0.96);
}

.participants-table {
  display: grid;
  gap: 0.85rem;
}

.participants-panel__form {
  margin-bottom: 1rem;
}

.participants-panel__form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
}

.participants-panel__field {
  margin-bottom: 0;
}

.participants-panel__field input {
  min-height: 3.45rem;
  border-radius: 1rem;
}

.participants-panel__form-row input[type="submit"] {
  align-self: end;
  min-height: 3.45rem;
  margin-bottom: 1rem;
}

.participants-table__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1.1rem;
  background: rgba(255, 250, 251, 0.8);
  border: 1px solid rgba(65, 40, 51, 0.08);
}

.participants-table__row--shared .card__actions {
  align-items: center;
}

.participants-panel--shared {
  gap: 1.25rem;
}

.participants-table__row h3,
.participants-table__row p {
  margin: 0;
}

.participants-table__edit,
.participants-table__edit form,
.participants-table__edit-row {
  width: 100%;
}

.participants-table__edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
}

.participants-table__edit-row .card__actions {
  align-self: end;
  margin-bottom: 1rem;
}

.create-exchange {
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.create-exchange__header {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.create-exchange__icon {
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(239, 63, 117, 0.08);
  font-size: 1.6rem;
}

.create-exchange__form {
  display: grid;
  gap: 1.25rem;
}

.create-exchange__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.create-exchange .field label {
  font-size: 1rem;
}

.create-exchange .field input[type="text"],
.create-exchange .field input[type="number"],
.create-exchange .field input[type="date"] {
  width: 100%;
  min-height: 4.15rem;
  font-size: 1.08rem;
  padding: 0.95rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(65, 40, 51, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.create-exchange .field input[type="date"] {
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
}

.create-exchange .field input[type="date"]::-webkit-calendar-picker-indicator {
  transform: scale(1.25);
  transform-origin: center;
  cursor: pointer;
}

.create-participants {
  display: grid;
  gap: 0.9rem;
}

.participant-row {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) 2.75rem;
  gap: 0.7rem;
  align-items: center;
}

.participant-row__index {
  color: var(--muted);
  font-weight: 700;
}

.participant-row__field input {
  margin: 0;
  min-height: 3.5rem;
  border-radius: 1rem;
}

.participant-row__remove {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 0.9rem;
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--border);
  box-shadow: none;
}

.participant-row__remove:hover {
  background: rgba(239, 63, 117, 0.08);
}

.create-participants__add {
  justify-self: start;
  padding: 0;
  background: transparent;
  color: var(--accent);
  border: 0;
  box-shadow: none;
}

.create-participants__add:hover {
  background: transparent;
  color: var(--accent-dark);
}

.create-exchange__submit input[type="submit"] {
  width: 100%;
  min-height: 3.4rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.create-exchange__submit input[type="submit"]:hover {
  background: linear-gradient(180deg, #e62961 0%, var(--accent-dark) 100%);
}

.hero h1,
.section-title,
.page-title {
  margin-top: 0;
}

.hero__copy p,
.muted {
  color: var(--muted);
}

.hero__actions,
.card__actions,
.inline-form,
.meta-list {
  flex-wrap: wrap;
}

.button,
button,
input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font: inherit;
  font-weight: 700;
  padding: 0.8rem 1.2rem;
  text-decoration: none;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--accent-dark);
}

.button--secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.button--danger {
  background: var(--danger);
}

.button--small {
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.form-card,
.wishlist-card,
.summary-card {
  padding: 1.25rem;
}

.card--subtle {
  background: rgba(255, 245, 248, 0.8);
}

.section-card {
  display: grid;
  gap: 1.25rem;
}

.section-card--narrow {
  max-width: 760px;
}

.section-copy p {
  margin-bottom: 0;
}

.source-switcher {
  display: grid;
  gap: 1rem;
}

.source-switcher__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.4rem;
  border: 1px solid rgba(65, 40, 51, 0.08);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.78);
}

.source-switcher__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  border-radius: 0.9rem;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  border: 0;
}

.source-switcher__tab:hover {
  background: rgba(239, 47, 104, 0.08);
  color: var(--text);
}

.source-switcher__tab--active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 18px rgba(122, 71, 96, 0.08);
}

.source-switcher__icon {
  font-size: 1rem;
  line-height: 1;
}

.source-switcher__panel {
  display: grid;
  gap: 1rem;
}

.source-switcher__panel[hidden] {
  display: none !important;
}

.catalog-search {
  margin-bottom: 0;
}

.manual-entry {
  display: grid;
  gap: 1rem;
}

.manual-entry form {
  display: grid;
  gap: 0.9rem;
}

.manual-entry .field {
  margin-bottom: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  background: var(--surface-strong);
  color: var(--accent-dark);
  font-size: 0.9rem;
}

.form-grid {
  flex-wrap: wrap;
}

.form-grid > *,
.field {
  flex: 1 1 220px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

label {
  font-weight: 700;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 0.9rem 1rem;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.participant-fields {
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.participants-list {
  display: grid;
  gap: 1rem;
}

.participants-actions {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(65, 40, 51, 0.08);
  display: flex;
  justify-content: center;
}

.catalog-grid {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.catalog-grid--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-loading {
  padding: 1rem 0;
  color: var(--muted);
  text-align: center;
}

.catalog-card {
  border: 1px solid rgba(65, 40, 51, 0.08);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.catalog-card__image-link {
  display: block;
  text-decoration: none;
}

.catalog-card__image-link:hover .catalog-card__image {
  filter: brightness(0.97);
}

.catalog-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 220px;
  object-fit: contain;
  background: #fff;
}

.catalog-card__image--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.catalog-card__body {
  padding: 1rem;
}

.catalog-card__body h3 {
  margin-top: 0;
}

.catalog-card__actions {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
}

.wishlist-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.wishlist-card {
  padding: 0;
}

.wishlist-card__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.participant-fields__header,
.participant-fields__remove {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.participant-fields__remove {
  font-size: 0.95rem;
}

.list {
  display: grid;
  gap: 1rem;
}

.list-row {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(65, 40, 51, 0.08);
}

.list-row:last-child {
  border-bottom: 0;
}

.summary-grid {
  flex-wrap: wrap;
}

.summary-card {
  min-width: 180px;
}

.summary-card strong {
  display: block;
  font-size: 1.6rem;
  margin-top: 0.4rem;
}

.alert {
  border-radius: 18px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.alert-danger {
  background: rgba(159, 45, 45, 0.12);
  color: var(--danger);
}

.toast-stack {
  position: fixed;
  top: 5rem;
  right: 1rem;
  z-index: 30;
  display: grid;
  gap: 0.75rem;
  width: min(360px, calc(100% - 2rem));
}

.app-modal {
  width: min(640px, calc(100% - 2rem));
  border: 0;
  padding: 0;
  background: transparent;
}

.app-modal::backdrop {
  background: rgba(65, 40, 51, 0.32);
  backdrop-filter: blur(4px);
}

.app-modal__content {
  background: var(--surface);
  border: 1px solid rgba(65, 40, 51, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.4rem;
  display: grid;
  gap: 1.25rem;
}

.app-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.app-modal__close {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

.app-modal__steps {
  margin: 0;
  padding-left: 1.4rem;
}

.app-modal .share-link {
  margin-bottom: 0;
}

.app-modal .share-link__label {
  margin-bottom: 0.2rem;
}

.toast {
  border-radius: 18px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(65, 40, 51, 0.08);
  box-shadow: var(--shadow);
  background: rgba(255, 250, 251, 0.96);
  backdrop-filter: blur(10px);
  animation: toast-in 160ms ease-out, toast-out 220ms ease-in 4.2s forwards;
}

.toast p {
  margin: 0;
}

.toast--notice {
  color: var(--success);
  border-color: rgba(33, 107, 72, 0.2);
}

.toast--alert {
  color: var(--danger);
  border-color: rgba(159, 45, 45, 0.2);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
  }
}

.errors-list,
.plain-list {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}

.plain-list li + li {
  margin-top: 0.35rem;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 24px;
  color: var(--muted);
}

.price {
  font-size: 1.3rem;
  font-weight: 700;
}

.mono {
  font-family: "Courier New", monospace;
}

@media (max-width: 720px) {
  .topbar__content,
  .topbar__nav,
  .hero__header,
  .section__header,
  .list-row,
  .budget-line,
  .wishlist-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .page {
    padding-top: 1.5rem;
  }

  .hero {
    padding: 1.5rem;
  }

  .landing__hero h1 {
    font-size: 2.5rem;
  }

  .topbar-dropdown__menu {
    position: static;
    min-width: 100%;
    margin-top: 0.75rem;
  }

  .landing-card__header {
    grid-template-columns: 1fr;
  }

  .landing__cards--tools,
  .tool-category-grid,
  .seo-links__grid {
    grid-template-columns: 1fr;
  }

  .exchange-header,
  .recent-exchanges__item,
  .participants-table__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .participants-panel__form-row {
    grid-template-columns: 1fr;
  }

  .create-exchange__header {
    align-items: flex-start;
  }

  .create-exchange__grid,
  .participant-row {
    grid-template-columns: 1fr;
  }

  .participant-row__index {
    display: none;
  }

  .catalog-grid--wide,
  .wishlist-grid,
  .section-card--narrow {
    grid-template-columns: 1fr;
  }

  .seo-hero,
  .seo-grid--two,
  .seo-grid--three,
  .seo-compare,
  .seo-bottom-cta {
    grid-template-columns: 1fr;
  }

  .seo-bottom-cta__actions {
    justify-content: flex-start;
  }

  .section-card--narrow {
    max-width: none;
  }

  .toast-stack {
    top: 4.5rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
}

.tool-page {
  display: grid;
  gap: 2.5rem;
}

.tool-page__intro {
  display: grid;
  gap: 1rem;
}

.tool-page__lead {
  margin: 0;
  max-width: 52rem;
  color: var(--text-soft);
  font-size: 1.04rem;
}

.tool-hero__copy {
  display: grid;
  gap: 0.9rem;
}

.tool-hero__title {
  margin: 0;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.tool-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.5rem;
  align-items: start;
}

.tool-panel--hero {
  align-items: stretch;
}

.tool-panel__wheel,
.tool-panel__controls,
.tool-result {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(236, 88, 124, 0.09);
}

.tool-panel__wheel {
  display: grid;
  padding: 1.5rem;
  align-content: center;
  justify-items: center;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96), rgba(255, 245, 248, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 244, 248, 0.92));
}

.wheel-tool {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 1rem;
  border-radius: 2rem;
}

.wheel-tool__pointer {
  position: absolute;
  top: 0.15rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 1rem solid transparent;
  border-right: 1rem solid transparent;
  border-top: 1.7rem solid var(--accent-dark);
  filter: drop-shadow(0 8px 10px rgba(207, 29, 84, 0.22));
  z-index: 2;
}

.wheel-tool__canvas {
  width: min(100%, 520px);
  height: auto;
  display: block;
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, 0.96);
  background: conic-gradient(#ef2f68, #ff8a5b, #ffd166, #5bb6a6, #4d87ff, #8f65ff, #ff6fae, #ef2f68);
  box-shadow:
    0 24px 50px rgba(239, 47, 104, 0.14),
    inset 0 0 0 1px rgba(65, 40, 51, 0.06);
}

.tool-result {
  display: grid;
  gap: 0.65rem;
  padding: 1.35rem 1.5rem;
}

.tool-result__value {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
}

.tool-panel__controls {
  display: grid;
  gap: 1.1rem;
  padding: 1.75rem;
}

.tool-panel__controls--hero {
  align-content: start;
}

.seo-section__intro--compact h2 {
  font-size: 1.35rem;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tool-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(239, 47, 104, 0.08);
  border: 1px solid rgba(239, 47, 104, 0.14);
  color: var(--accent-dark);
  font-size: 0.92rem;
  line-height: 1.2;
}

@media (max-width: 920px) {
  .tool-hero__title {
    max-width: none;
  }
}

.tool-label {
  font-weight: 700;
}

.tool-textarea {
  min-height: 18rem;
  width: 100%;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  padding: 1rem 1.05rem;
  font: inherit;
  color: var(--text);
  background: rgba(255, 250, 251, 0.95);
  resize: vertical;
}

.tool-textarea:focus {
  outline: 2px solid rgba(239, 47, 104, 0.18);
  border-color: rgba(239, 47, 104, 0.45);
}

.tool-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.tool-panel__actions .landing-cta,
.tool-panel__actions .button {
  width: auto;
  padding-inline: 1.4rem;
}

.tool-result--compact {
  margin-bottom: 0.15rem;
}

.tool-button {
  border: 0;
  cursor: pointer;
}

.tool-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.tool-button-secondary {
  min-height: 3.3rem;
}

.tool-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
}

.tool-toggle input {
  accent-color: var(--accent);
}

.tool-panel__wheel--text {
  align-content: start;
  gap: 1rem;
}

.text-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
}

.text-stat {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(65, 40, 51, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(122, 71, 96, 0.08);
}

.text-stat__label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.text-stat__value {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1;
}

.text-stat__value--small {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.text-tool-note,
.case-converter__output {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(65, 40, 51, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.text-tool-note h2,
.text-tool-note p,
.case-converter__output h2 {
  margin: 0;
}

.text-limit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.text-limit-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(239, 47, 104, 0.08);
  border: 1px solid rgba(239, 47, 104, 0.14);
  color: var(--accent-dark);
  font-size: 0.9rem;
}

.tool-textarea--output {
  min-height: 16rem;
}

.mode-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mode-button {
  min-height: 3rem;
}

.mode-button--active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.mode-button--active:hover {
  background: var(--accent-dark);
}

.tool-panel__wheel--picker {
  align-content: start;
  gap: 1rem;
}

.name-picker-result,
.name-picker-preview {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(236, 88, 124, 0.08);
}

.name-picker-result {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  min-height: 15rem;
  align-content: start;
  background:
    radial-gradient(circle at top left, rgba(255, 225, 235, 0.8), rgba(255, 255, 255, 0.96) 38%),
    rgba(255, 255, 255, 0.96);
}

.name-picker-result__value {
  margin: auto 0 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.name-picker-preview {
  display: grid;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
}

.name-picker-preview__header {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  justify-content: space-between;
}

.name-picker-preview__header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.name-picker-preview__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.name-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.52rem 0.8rem;
  border-radius: 999px;
  background: rgba(77, 135, 255, 0.1);
  border: 1px solid rgba(77, 135, 255, 0.14);
  color: #3457a8;
  font-weight: 600;
  line-height: 1.2;
}

.tool-panel__wheel--coin {
  align-content: center;
  justify-items: center;
  gap: 1.25rem;
}

.coin-tool {
  position: relative;
  width: min(100%, 18rem);
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  transform-style: preserve-3d;
  cursor: pointer;
}

.coin-tool__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  backface-visibility: hidden;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.22),
    0 24px 50px rgba(217, 45, 101, 0.18);
}

.coin-tool__face--front {
  background: radial-gradient(circle at top left, #ff9bb9, #ef2f68 62%, #c61f50);
}

.coin-tool__face--back {
  background: radial-gradient(circle at top left, #7fb0ff, #4d87ff 62%, #3457a8);
  transform: rotateY(180deg);
}

.coin-tool--heads {
  transform: rotateY(0deg);
}

.coin-tool--tails {
  transform: rotateY(180deg);
}

.coin-tool--flipping {
  animation: coin-flip-spin 1.4s ease-in-out;
}

.coin-result,
.coin-history {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(236, 88, 124, 0.08);
}

.coin-result {
  display: grid;
  gap: 0.75rem;
  padding: 1.35rem 1.5rem;
}

.coin-result__value {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.coin-history {
  display: grid;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
}

.coin-history__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.coin-history__item {
  display: inline-flex;
  align-items: center;
  padding: 0.52rem 0.8rem;
  border-radius: 999px;
  background: rgba(239, 47, 104, 0.08);
  border: 1px solid rgba(239, 47, 104, 0.14);
  color: var(--accent-dark);
  font-weight: 600;
}

.tool-panel__wheel--number {
  align-content: start;
  gap: 1rem;
}

.decision-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.8rem;
}

.decision-option {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(239, 47, 104, 0.14);
  background: rgba(255, 250, 251, 0.95);
  font-weight: 600;
  color: var(--text);
}

.decision-option input {
  accent-color: var(--accent);
}

.number-result,
.number-history {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(236, 88, 124, 0.08);
}

.number-result {
  display: grid;
  gap: 0.75rem;
  padding: 1.45rem 1.5rem;
  min-height: 15rem;
  align-content: start;
  background:
    radial-gradient(circle at top left, rgba(255, 230, 188, 0.72), rgba(255, 255, 255, 0.96) 40%),
    rgba(255, 255, 255, 0.96);
}

.number-result__value {
  margin: auto 0 0;
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.letter-result__value {
  word-break: break-word;
}

.number-history {
  display: grid;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
}

.number-controls-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.tool-panel__wheel--dice {
  align-content: start;
  gap: 1rem;
}

.dice-tool,
.dice-result,
.dice-history {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(236, 88, 124, 0.08);
}

.dice-tool {
  min-height: 15rem;
  display: grid;
  place-items: center;
  gap: 0.4rem;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(181, 153, 255, 0.28), rgba(255, 255, 255, 0.96) 42%),
    rgba(255, 255, 255, 0.96);
}

.dice-tool__type {
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(138, 99, 210, 0.1);
  color: #6b47b1;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dice-tool__value {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.dice-tool--rolling {
  animation: dice-bounce 0.9s ease;
}

.dice-result,
.dice-history {
  display: grid;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
}

.dice-result__value {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.tool-panel__wheel--timer {
  align-content: start;
  gap: 1rem;
}

.tool-panel__wheel--teams {
  align-content: start;
  gap: 1rem;
}

.team-generator-summary,
.team-generator-output {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(236, 88, 124, 0.08);
}

.team-generator-summary {
  display: grid;
  gap: 0.75rem;
  padding: 1.45rem 1.5rem;
  min-height: 11rem;
  align-content: start;
  background:
    radial-gradient(circle at top left, rgba(176, 227, 183, 0.46), rgba(255, 255, 255, 0.96) 42%),
    rgba(255, 255, 255, 0.96);
}

.team-generator-summary__value {
  margin: auto 0 0;
  font-size: clamp(1.8rem, 4.6vw, 3.2rem);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.team-generator-output {
  display: grid;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
}

.team-generator-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border-radius: 1.25rem;
  background: rgba(79, 163, 95, 0.08);
  border: 1px solid rgba(79, 163, 95, 0.16);
}

.team-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.team-card__members {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.team-member-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.52rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(79, 163, 95, 0.18);
  color: #2f6f3b;
  font-weight: 600;
  line-height: 1.2;
}

.timer-display-card,
.timer-presets {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(236, 88, 124, 0.08);
}

.timer-display-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.45rem 1.5rem;
  min-height: 15rem;
  align-content: start;
  background:
    radial-gradient(circle at top left, rgba(153, 215, 255, 0.28), rgba(255, 255, 255, 0.96) 40%),
    rgba(255, 255, 255, 0.96);
}

.timer-display-card--running {
  box-shadow:
    0 18px 40px rgba(236, 88, 124, 0.08),
    0 0 0 6px rgba(77, 135, 255, 0.08);
}

.timer-display-card--finished {
  box-shadow:
    0 18px 40px rgba(236, 88, 124, 0.08),
    0 0 0 6px rgba(91, 182, 166, 0.14);
}

.timer-display-card__time {
  margin: auto 0 0;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.timer-display-card__status {
  margin: 0;
  color: var(--text-soft);
  font-weight: 600;
}

.timer-presets {
  display: grid;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
}

.pomodoro-meta__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.pomodoro-meta__item {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border-radius: 1.1rem;
  background: rgba(77, 135, 255, 0.08);
  border: 1px solid rgba(77, 135, 255, 0.14);
}

.pomodoro-meta__item strong {
  font-size: 1.05rem;
}

.timer-presets__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.timer-preset {
  border: 1px solid rgba(77, 135, 255, 0.14);
  background: rgba(77, 135, 255, 0.09);
  color: #3457a8;
}

.timer-controls-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.tool-field {
  display: grid;
  gap: 0.45rem;
}

.tool-input {
  min-height: 3.3rem;
  width: 100%;
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--text);
  background: rgba(255, 250, 251, 0.95);
}

.tool-input:focus {
  outline: 2px solid rgba(239, 47, 104, 0.18);
  border-color: rgba(239, 47, 104, 0.45);
}

.tool-select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-soft) 50%),
    linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
  background-position:
    calc(100% - 1.2rem) calc(50% - 0.15rem),
    calc(100% - 0.9rem) calc(50% - 0.15rem);
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

.tool-textarea--medium {
  min-height: 9rem;
}

.tool-range {
  width: 100%;
  accent-color: var(--accent);
}

.tool-panel__wheel--qr,
.tool-panel__wheel--password {
  align-content: start;
  gap: 1rem;
}

.qr-preview-card,
.password-result-card {
  width: 100%;
  display: grid;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(236, 88, 124, 0.08);
}

.qr-preview-card {
  background:
    radial-gradient(circle at top left, rgba(176, 208, 255, 0.24), rgba(255, 255, 255, 0.96) 42%),
    rgba(255, 255, 255, 0.96);
}

.password-result-card {
  background:
    radial-gradient(circle at top left, rgba(255, 230, 188, 0.28), rgba(255, 255, 255, 0.96) 42%),
    rgba(255, 255, 255, 0.96);
}

.qr-preview-card h2,
.password-result-card h2,
.qr-preview-card__status {
  margin: 0;
}

.qr-preview-card__status {
  color: var(--text-soft);
  font-weight: 600;
}

.qr-preview-card__frame {
  min-height: 19rem;
  border-radius: 1.5rem;
  border: 1px dashed rgba(65, 40, 51, 0.14);
  background: rgba(255, 250, 251, 0.88);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.qr-preview-card__empty {
  margin: 0;
  max-width: 16rem;
  text-align: center;
  color: var(--text-soft);
  line-height: 1.5;
}

.qr-preview-card__image {
  width: min(100%, 20rem);
  aspect-ratio: 1;
  border-radius: 1.25rem;
  background: #fff;
  padding: 0.9rem;
  box-shadow: 0 14px 30px rgba(65, 40, 51, 0.08);
}

.password-length__row,
.password-strength__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.password-options-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.password-output {
  min-height: 8rem;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.password-strength {
  display: grid;
  gap: 0.65rem;
}

.password-meter {
  height: 0.8rem;
  border-radius: 999px;
  background: rgba(65, 40, 51, 0.08);
  overflow: hidden;
}

.password-meter__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef2f68, #ff9b62);
  transition: width 180ms ease;
}

.password-meter__fill[data-level="weak"] {
  background: linear-gradient(90deg, #ef2f68, #ff8768);
}

.password-meter__fill[data-level="mid"] {
  background: linear-gradient(90deg, #ff8a45, #ffbe5c);
}

.password-meter__fill[data-level="strong"] {
  background: linear-gradient(90deg, #5cb673, #4d87ff);
}

.password-meter__fill[data-level="max"] {
  background: linear-gradient(90deg, #3aa7a3, #3457a8);
}

@keyframes coin-flip-spin {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(1800deg);
  }
}

@keyframes dice-bounce {
  0% {
    transform: rotate(0deg) scale(1);
  }

  25% {
    transform: rotate(-10deg) scale(1.04);
  }

  50% {
    transform: rotate(12deg) scale(0.98);
  }

  75% {
    transform: rotate(-6deg) scale(1.02);
  }

  100% {
    transform: rotate(0deg) scale(1);
  }
}

@media (max-width: 920px) {
  .tool-panel {
    grid-template-columns: 1fr;
  }

  .timer-controls-grid,
  .number-controls-grid {
    grid-template-columns: 1fr;
  }

  .password-options-grid {
    grid-template-columns: 1fr;
  }

  .pomodoro-meta__grid {
    grid-template-columns: 1fr;
  }

  .team-generator-grid {
    grid-template-columns: 1fr;
  }
}
