.dispute-stake-emojis-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.stake-emojis {
  font-size: 22px;
  margin-left: 8px;
}
@import url("https://fonts.googleapis.com/css2?family=Vollkorn:wght@600;700;800&display=swap");

:root {
  --bg: rgb(10, 10, 10);
  --bg-gradient: rgb(10, 10, 10);
  --surface: #141821;
  --surface-soft: #1b2336;
  --surface-soft-2: #101520;
  --text: #f1f4fb;
  --muted: #a0a8bc;
  --line: rgba(94, 126, 201, 0.45);
  --line-strong: #4a65b3;
  --open: #3dd57f;
  --pending: #f2b15d;
  --in-progress: #7d73ff;
  --cancelled: #d76f79;
  --finished: #8d96ab;
  --danger: #d86d75;
  --primary: #7f74ff;
  --home-accent: #8b86f0;
  --home-accent-strong: #7e79eb;
  --home-accent-deep: #6f6adf;
  --radius: 20px;
}

:root[data-theme="light"] {
  --bg: #f5f7fc;
  --bg-gradient: linear-gradient(180deg, #f3f6ff 0%, #edf2fc 100%);
  --surface: #ffffff;
  --surface-soft: #edf1ff;
  --surface-soft-2: #f6f8ff;
  --text: #20273a;
  --muted: #68718a;
  --line: #d6dff3;
  --line-strong: #b8c8ea;
  --open: #1e9d56;
  --pending: #e59a3d;
  --in-progress: #5f60ee;
  --cancelled: #cb5b67;
  --finished: #7b859a;
  --danger: #c64d60;
  --primary: #6264ea;
  --home-accent: #6f6de0;
  --home-accent-strong: #6562d6;
  --home-accent-deep: #5855c8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-gradient);
  color: var(--text);
  min-height: 100vh;
  transition: background 0.32s ease, color 0.32s ease;
}

#app {
  min-height: 100vh;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
[role="button"],
.action,
.emoji-btn,
.stake-btn,
.stake-emoji,
.chip-btn,
.theme-toggle,
.date-input-native {
  cursor: default;
}

.page {
  max-width: 1060px;
  margin: 0 auto;
  padding: 46px 18px 76px;
  display: grid;
  gap: 38px;
}

.page.cards-page {
  gap: 14px;
}

.page.create-page {
  gap: 14px;
}

.page > * {
  width: 100%;
}

.title {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  text-align: center;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  font-weight: 700;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  color: var(--home-accent);
  -webkit-text-fill-color: currentColor;
  text-shadow: 0 8px 22px rgba(120, 115, 229, 0.24);
}

:root[data-theme="dark"] .title.title-cool {
  color: var(--home-accent);
  text-shadow: 0 8px 22px rgba(120, 115, 229, 0.24);
}

:root[data-theme="dark"] .title.title-royal {
  color: var(--home-accent);
  text-shadow: 0 8px 22px rgba(120, 115, 229, 0.24);
}

:root[data-theme="light"] .title.title-cool {
  color: var(--home-accent);
  text-shadow: 0 5px 14px rgba(111, 109, 224, 0.18);
}

:root[data-theme="light"] .title.title-royal {
  color: var(--home-accent);
  text-shadow: 0 5px 14px rgba(111, 109, 224, 0.18);
}

.page-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.topbar-side {
  min-height: 1px;
}

.topbar-center {
  justify-self: center;
}

.topbar-center.topbar-center-left {
  justify-self: start;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.topbar-right {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-logout {
  border: 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft-2) 100%);
  color: var(--muted);
  border-radius: 999px;
  min-height: 42px;
  min-width: 78px;
  padding: 0 14px;
}

.topbar-account {
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  padding: 0 6px;
}

:root[data-theme="light"] .topbar-account {
  color: #4f63a1;
}

.topbar-logout:hover {
  color: #f1f4fb;
  background: linear-gradient(180deg, #2d3f76, #243460);
}

:root[data-theme="light"] .topbar-logout {
  color: #4f63a1;
  background: linear-gradient(180deg, #eef2fb 0%, #e5ebf8 100%);
}

:root[data-theme="light"] .topbar-logout:hover {
  color: #2a3555;
  background: linear-gradient(180deg, #dce7ff, #cfddfb);
}

.theme-toggle {
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  height: 42px;
  width: 78px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  box-shadow: none;
  outline: none;
  transition: none;
}

.theme-toggle:hover {
  transform: none;
  box-shadow: none;
}

.theme-toggle-track {
  width: 64px;
  height: 28px;
  background: #2b3250;
  border-radius: 999px;
  padding: 0;
  position: relative;
  transition: none;
}

:root[data-theme="light"] .theme-toggle-track {
  background: #c9d2eb;
}

.theme-toggle-thumb {
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 5px;
  top: 3px;
  transform: translateX(0);
  transition: none;
  z-index: 0;
}

.theme-toggle.is-light .theme-toggle-thumb {
  transform: translateX(32px);
}

.theme-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  position: absolute;
  top: 3px;
  z-index: 1;
  font-size: 12px;
  line-height: 1;
  transition: none;
}

.theme-icon.sun {
  left: 37px;
  transform: translateY(-0.5px);
}

.theme-icon.moon {
  left: 5px;
  transform: translateY(-0.5px);
}

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft-2) 100%);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(4, 8, 18, 0.34), inset 0 1px 0 rgba(110, 140, 214, 0.14);
  transition: box-shadow 0.24s ease, border-color 0.24s ease;
}

.mosaic {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.counter-card {
  min-height: 114px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft-2) 100%);
  box-shadow: inset 0 1px 0 rgba(130, 148, 205, 0.15);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px 10px;
}

:root[data-theme="light"] .counter-card {
  border: 1px solid #d8e0f3;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.counter-label {
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
}

.counter-card.total .counter-label {
  color: #95a7ff;
}

.counter-card.active .counter-label {
  color: #67d690;
}

.counter-card.completed .counter-label {
  color: #f1b56a;
}

.counter-value {
  margin-top: 4px;
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  color: var(--text);
}

.carousel {
  margin-top: 12px;
  background: linear-gradient(135deg, #121a31, #16203b);
  border: 1px solid var(--line);
  color: #edf2ff;
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 12px;
  border-radius: 14px;
}

.carousel-text {
  margin-top: 34px;
  text-align: center;
  font-size: clamp(15px, 1.95vw, 22px);
  line-height: 1.34;
  opacity: 1;
  transition: opacity 0.26s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}

.carousel-text.is-fading {
  opacity: 0;
}

.carousel-author {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  color: #a9b6d6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-style: normal;
  letter-spacing: 0;
}

.carousel-fact {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #8ea0c8;
  font-family: inherit;
}

.carousel-fact-main {
  display: block;
  font-family: inherit;
  font-size: inherit;
  color: #b8c7e8;
}

.row-buttons {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-actions {
  margin-top: 34px;
  width: min(430px, 100%);
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cards-nav-actions {
  margin-top: 0;
  grid-template-columns: 1fr;
}

.cards-header {
  margin-top: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.cards-home-btn {
  min-height: 42px;
  min-width: 78px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft-2) 100%);
  color: var(--muted);
  box-shadow: none;
  transition: none;
}

.cards-home-btn:hover {
  transform: none;
  filter: none;
  box-shadow: none;
  color: #8ea8ff;
  background: linear-gradient(180deg, #1a2744 0%, #16203a 100%);
}

:root[data-theme="light"] .cards-home-btn {
  color: #4f63a1;
  background: linear-gradient(180deg, #eef2fb 0%, #e5ebf8 100%);
}

:root[data-theme="light"] .cards-home-btn:hover {
  color: #3f4da4;
  background: linear-gradient(180deg, #e2e9ff 0%, #d8e2fb 100%);
}

.cards-content {
  display: grid;
  gap: 10px;
}

.cards-filters-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.cards-home-wrap {
  justify-self: start;
}

.cards-filters-spacer {
  min-height: 1px;
}

.cards-filters-wrap {
  justify-self: center;
  display: flex;
  justify-content: center;
}

.cards-filters {
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  justify-content: center;
  gap: 12px;
  width: min(320px, 100%);
}

.cards-filter-btn {
  border: 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft-2) 100%);
  color: var(--muted);
  border-radius: 999px;
  min-height: 34px;
  padding: 6px 12px;
  position: relative;
  outline: none;
  box-shadow: none;
}

.cards-home-btn {
  min-height: 34px;
  min-width: 52px;
  padding: 6px 10px;
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1;
}

.cards-filter-btn:focus,
.cards-filter-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

.cards-filter-btn.is-active {
  color: #1b2338;
  background: linear-gradient(180deg, #2d3f76, #243460);
}

.cards-filter-btn.filter-active.is-active {
  color: #1b2338;
  background: linear-gradient(135deg, var(--pending) 0%, var(--open) 100%);
}

.cards-filter-btn.filter-completed.is-active {
  color: #1b2338;
  background: linear-gradient(135deg, var(--finished) 0%, var(--cancelled) 100%);
}

.cards-filter-label {
  display: inline-flex;
}

.cards-filter-badge {
  position: absolute;
  top: -7px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff6f7a;
  color: #ffffff;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
}

:root[data-theme="light"] .cards-filter-btn {
  color: #4f63a1;
  background: linear-gradient(180deg, #eef2fb 0%, #e5ebf8 100%);
}

:root[data-theme="light"] .cards-filter-btn.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, #dce7ff, #cfddfb);
}

:root[data-theme="light"] .cards-filter-btn.filter-active.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pending) 0%, var(--open) 100%);
}

:root[data-theme="light"] .cards-filter-btn.filter-completed.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--finished) 0%, var(--cancelled) 100%);
}

:root[data-theme="light"] .cards-filter-badge {
  background: #d94a62;
}

.auth-page {
  align-content: center;
}

.auth-card {
  width: min(540px, 100%);
  margin: 0 auto;
}

.auth-title {
  margin: 0;
  text-align: center;
  font-size: 32px;
  color: var(--in-progress);
}

.auth-switch {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.auth-tab {
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 42px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft-2) 100%);
  color: var(--muted);
}

.auth-tab.is-active {
  color: #f1f4fb;
  border-color: transparent;
  background: linear-gradient(180deg, #2d3f76, #243460);
}

.auth-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.auth-error {
  margin-top: 8px;
  text-align: center;
  color: var(--cancelled);
  font-size: 14px;
}

.auth-actions {
  margin-top: 12px;
}

.auth-actions .action {
  min-width: 220px;
}

.home-actions .action,
.home-actions .action.primary,
.home-actions .action.secondary {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #1a2131 0%, #151c2c 100%);
  color: #9ea7ff;
  font-size: 17px;
  font-weight: 400;
  box-shadow: 0 8px 18px rgba(7, 14, 31, 0.24);
  transition: none;
}

.home-actions .action::after,
.home-actions .action.primary::after,
.home-actions .action.secondary::after {
  display: none;
}

.home-actions .action:hover,
.home-actions .action.primary:hover,
.home-actions .action.secondary:hover {
  transform: none;
  filter: none;
  box-shadow: 0 8px 18px rgba(7, 14, 31, 0.24);
  color: #ffffff;
  background: linear-gradient(180deg, #2d3f76, #243460);
}

.home-actions .action:hover::after,
.home-actions .action.primary:hover::after,
.home-actions .action.secondary:hover::after {
  display: none;
}

:root[data-theme="light"] .home-actions .action,
:root[data-theme="light"] .home-actions .action.primary,
:root[data-theme="light"] .home-actions .action.secondary {
  background: linear-gradient(180deg, #eef2fb 0%, #e5ebf8 100%);
  color: #4f63a1;
}

:root[data-theme="light"] .home-actions .action:hover,
:root[data-theme="light"] .home-actions .action.primary:hover,
:root[data-theme="light"] .home-actions .action.secondary:hover {
  background: linear-gradient(180deg, #c7d8ff, #b9ccff);
  color: #2a3555;
}

.action {
  border: 0;
  border-radius: 12px;
  padding: 11px 20px;
  font-size: 17px;
  cursor: default;
  color: #f2f6ff;
  background: linear-gradient(180deg, #334975 0%, #293d65 52%, #233457 100%);
  transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
  box-shadow: 0 8px 18px rgba(7, 14, 31, 0.32);
}

.action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(7, 14, 31, 0.38);
  filter: brightness(1.06);
}

.action.primary {
  background: linear-gradient(180deg, #3b5696 0%, #304780 52%, #273a69 100%);
  color: #f2f6ff;
}

.action.secondary {
  background: linear-gradient(180deg, #334975 0%, #293d65 52%, #233457 100%);
  color: #f2f6ff;
}

.action.ghost {
  background: linear-gradient(180deg, #334975 0%, #293d65 52%, #233457 100%);
  color: #f2f6ff;
}

.action.danger {
  background: linear-gradient(180deg, #334975 0%, #293d65 52%, #233457 100%);
  color: #f2f6ff;
}

:root[data-theme="light"] .action,
:root[data-theme="light"] .action.primary,
:root[data-theme="light"] .action.secondary,
:root[data-theme="light"] .action.ghost,
:root[data-theme="light"] .action.danger {
  color: #f2f6ff;
  background: linear-gradient(180deg, #556fb5, #3f5fa9);
}

.section-title {
  margin: 0 0 14px;
  font-size: 28px;
  text-align: center;
}

.create-page-title {
  font-size: 24px;
}

.form-layout {
  display: grid;
  gap: 12px;
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
}

.form-layout > .row-buttons {
  margin-top: 0;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  font-size: 18px;
  color: var(--muted);
}

.input,
.textarea,
.select {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface-soft-2), var(--surface));
  min-height: 52px;
  padding: 10px 14px;
  font-size: 18px;
  width: 100%;
  color: var(--text);
}

.textarea {
  min-height: 110px;
  resize: vertical;
}

.block-title {
  margin: 0 0 18px;
  font-size: 30px;
  text-align: center;
  color: var(--in-progress);
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.emoji-btn {
  border: 0;
  background: linear-gradient(180deg, #20283b 0%, #1b2335 100%);
  border-radius: 16px;
  min-height: 92px;
  font-size: 38px;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
}

.emoji-btn.selected {
  background: linear-gradient(180deg, #2d3f76, #243460);
}

.emoji-label {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 17px;
  color: #9ea7ff;
  font-weight: 400;
  font-family: inherit;
  white-space: nowrap;
}

.inline-muted {
  margin-top: 10px;
  font-size: 18px;
  color: var(--muted);
}

.create-block {
  --create-content-inline: 4px;
  padding: 20px 18px 18px;
  border-radius: 18px;
  background: rgb(20, 20, 20);
  border: 1px solid transparent;
  box-shadow: 0 14px 30px rgba(5, 9, 20, 0.36), inset 0 1px 0 rgba(148, 173, 237, 0.12);
  transition: none;
  overflow: hidden;
}

.create-block.is-invalid-flash {
  animation: create-invalid-flash 500ms ease-in-out;
}

.create-block + .create-block {
  margin-top: 0;
}

.create-actions {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
}

.deadline-layout {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding-inline: var(--create-content-inline);
}

.deadline-row {
  display: grid;
  grid-template-columns: 260px 260px;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.deadline-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.deadline-action-cell .action.secondary {
  width: 220px;
  min-width: 220px;
  min-height: 58px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.deadline-action-cell .action.secondary:active,
.deadline-action-cell .action.secondary.is-pressed {
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(180deg, #2d3f76, #243460);
}

.stake-col {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.stake-row {
  display: grid;
  grid-template-columns: repeat(3, 58px);
  align-items: center;
  gap: 10px;
  width: max-content;
  justify-content: center;
}

.stake-box {
  min-height: 56px;
  min-width: 58px;
  width: 58px;
  background: transparent;
  border-radius: 14px;
  font-size: 26px;
  line-height: 1.06;
  font-weight: 400;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stake-btn {
  width: 58px;
  min-height: 58px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #eceff8;
  font-size: 37px;
  line-height: 1;
  transition: background-color 120ms ease, color 120ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.create-actions .action,
.create-actions .action.primary,
.create-actions .action.secondary,
.create-actions .action.ghost {
  border-radius: 16px;
  background: linear-gradient(180deg, #1a2131 0%, #151c2c 100%);
  color: #9ea7ff;
  font-size: 17px;
  font-weight: 400;
  box-shadow: 0 8px 18px rgba(7, 14, 31, 0.24);
  transition: none;
}

.create-actions .action::after,
.create-actions .action.primary::after,
.create-actions .action.secondary::after,
.create-actions .action.ghost::after {
  display: none;
}

.create-actions .action:hover,
.create-actions .action.primary:hover,
.create-actions .action.secondary:hover,
.create-actions .action.ghost:hover {
  transform: none;
  filter: none;
  box-shadow: 0 8px 18px rgba(7, 14, 31, 0.24);
  color: #ffffff;
  background: linear-gradient(180deg, #2d3f76, #243460);
}

.stake-btn.is-plus {
  transform: none;
}

.stake-btn.is-minus {
  transform: none;
}

.stake-btn:hover {
  opacity: 1;
}

.stake-btn:active,
.stake-btn.is-pressed {
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(180deg, #2d3f76, #243460);
}

.stake-btn:disabled {
  opacity: 0.34;
  cursor: default;
}

.stake-btn:disabled:hover {
  transform: none;
  opacity: 0.34;
}

.stake-box.is-count-animating {
  animation: stake-count-pulse 260ms ease-out;
}

.date-display.is-count-animating {
  animation: stake-count-pulse 260ms ease-out;
}

@keyframes stake-count-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.93;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.stake-emoji-grid {
  display: grid;
  grid-template-columns: repeat(3, 58px);
  gap: 10px;
  width: max-content;
  justify-content: center;
}

.stake-emoji {
  border: 0;
  border-radius: 14px;
  min-height: 58px;
  width: 58px;
  background: transparent;
  font-size: 37px;
  cursor: default;
  justify-self: center;
}

.stake-emoji.selected {
  background: #2d3f76;
}

.day-col {
  display: grid;
  gap: 10px;
  align-content: center;
  justify-items: center;
  text-align: center;
  align-self: center;
  width: 100%;
}

.date-picker-wrap {
  position: relative;
  width: 220px;
  max-width: 220px;
}

.create-block .block-title {
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.05;
  color: #7873e5;
}

.create-block .action.secondary {
  background: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  color: #ecf0f9;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.06;
  justify-content: center;
  text-align: center;
  padding: 4px 0;
}

.create-block .action.secondary:hover {
  transform: none;
  border-color: transparent;
  opacity: 0.9;
}

.create-block .inline-muted {
  font-size: 34px;
  margin: 0;
  color: #ecf0f9;
}

.create-block .input,
.create-block .textarea,
.create-block .select,
.create-block .form-field label {
  font-size: 14px;
}

.block-details .input,
.block-details .textarea {
  border: 0;
  box-shadow: none;
  background: linear-gradient(180deg, #20283b 0%, #1b2335 100%);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 1px;
  color: #ffffff;
  text-align: center;
}

.block-details .input::placeholder,
.block-details .textarea::placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.52);
}

.block-details .input:focus::placeholder,
.block-details .textarea:focus::placeholder {
  color: transparent;
}

.block-details .form-field + .form-field {
  margin-top: 12px;
}

.block-details .form-field {
  padding-inline: var(--create-content-inline);
}

.block-details .textarea {
  min-height: 68px;
  max-height: 68px;
  padding-top: 24px;
  padding-bottom: 24px;
  resize: none;
}

.create-block .emoji-label {
  font-size: 17px;
}

.create-block .input,
.create-block .textarea,
.create-block .select {
  min-height: 44px;
}

.date-display {
  max-width: 220px;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ecf0f9;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.06;
  text-align: center;
  white-space: nowrap;
  padding: 3px 0;
  min-height: 34px;
  box-shadow: none;
  cursor: default;
}

.date-display.is-placeholder {
  opacity: 0.62;
}

.date-display:focus {
  outline: none;
}

.date-input-native {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: default;
}

.block-emoji {
  display: grid;
  gap: 12px;
}

.block-emoji .block-title {
  margin-bottom: 0;
}

.block-emoji .emoji-grid {
  gap: 12px;
  padding-inline: var(--create-content-inline);
}

.block-emoji .emoji-label {
  font-size: 15px;
}

:root[data-theme="light"] .create-block {
  background: linear-gradient(180deg, #eef2fb 0%, #e5ebf8 100%);
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(99, 120, 167, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

:root[data-theme="light"] .create-block.is-invalid-flash {
  animation: create-invalid-flash-light 500ms ease-in-out;
}

.opponent-panel.is-invalid-flash {
  animation: opponent-invalid-flash 500ms ease-in-out;
}

@keyframes create-invalid-flash {
  0%,
  100% {
    box-shadow: 0 14px 30px rgba(5, 9, 20, 0.36), inset 0 1px 0 rgba(148, 173, 237, 0.12);
  }
  14%,
  54% {
    box-shadow: 0 14px 30px rgba(5, 9, 20, 0.36), inset 0 0 0 1px rgba(120, 115, 229, 0.92), inset 0 1px 0 rgba(148, 173, 237, 0.12);
  }
  32%,
  72% {
    box-shadow: 0 14px 30px rgba(5, 9, 20, 0.36), inset 0 1px 0 rgba(148, 173, 237, 0.12);
  }
}

@keyframes create-invalid-flash-light {
  0%,
  100% {
    box-shadow: 0 12px 24px rgba(99, 120, 167, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  }
  14%,
  54% {
    box-shadow: 0 12px 24px rgba(99, 120, 167, 0.2), inset 0 0 0 1px rgba(111, 109, 224, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  }
  32%,
  72% {
    box-shadow: 0 12px 24px rgba(99, 120, 167, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  }
}

@keyframes opponent-invalid-flash {
  0%,
  100% {
    border-color: var(--line);
  }
  14%,
  54% {
    border-color: rgba(120, 115, 229, 0.92);
  }
  32%,
  72% {
    border-color: var(--line);
  }
}

:root[data-theme="light"] .opponent-panel.is-invalid-flash {
  animation: opponent-invalid-flash-light 500ms ease-in-out;
}

@keyframes opponent-invalid-flash-light {
  0%,
  100% {
    border-color: var(--line);
  }
  14%,
  54% {
    border-color: rgba(111, 109, 224, 0.9);
  }
  32%,
  72% {
    border-color: var(--line);
  }
}

:root[data-theme="light"] .create-block .block-title {
  color: #6f6de0;
}

:root[data-theme="light"] .create-block .action.secondary,
:root[data-theme="light"] .create-block .inline-muted {
  color: #2a3555;
  background: transparent;
  box-shadow: none;
}

:root[data-theme="light"] .date-display {
  color: #2a3555;
}

:root[data-theme="light"] .stake-btn {
  color: #2a3555;
}

:root[data-theme="light"] .stake-btn:active,
:root[data-theme="light"] .stake-btn.is-pressed {
  color: #2a3555;
  background: linear-gradient(180deg, #c7d8ff, #b9ccff);
}

:root[data-theme="light"] .deadline-action-cell .action.secondary:active,
:root[data-theme="light"] .deadline-action-cell .action.secondary.is-pressed {
  color: #2a3555;
  background: linear-gradient(180deg, #c7d8ff, #b9ccff);
}

:root[data-theme="light"] .emoji-btn {
  background: linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%);
  color: #2a3555;
}

:root[data-theme="light"] .emoji-btn.selected {
  background: linear-gradient(180deg, #c7d8ff, #b9ccff);
}

:root[data-theme="light"] .create-actions .action,
:root[data-theme="light"] .create-actions .action.primary,
:root[data-theme="light"] .create-actions .action.secondary,
:root[data-theme="light"] .create-actions .action.ghost {
  background: linear-gradient(180deg, #eef2fb 0%, #e5ebf8 100%);
  color: #4f63a1;
}

:root[data-theme="light"] .block-details .input,
:root[data-theme="light"] .block-details .textarea {
  background: linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%);
  color: #2a3555;
}

:root[data-theme="dark"] .block-details .input,
:root[data-theme="dark"] .block-details .textarea {
  font-weight: 300;
}

:root[data-theme="light"] .block-details .input::placeholder,
:root[data-theme="light"] .block-details .textarea::placeholder {
  color: rgba(42, 53, 85, 0.48);
}

:root[data-theme="light"] .create-actions .action:hover,
:root[data-theme="light"] .create-actions .action.primary:hover,
:root[data-theme="light"] .create-actions .action.secondary:hover,
:root[data-theme="light"] .create-actions .action.ghost:hover {
  background: linear-gradient(180deg, #c7d8ff, #b9ccff);
  color: #2a3555;
}

:root[data-theme="light"] .emoji-label {
  color: #4f63a1;
}

:root[data-theme="light"] .stake-emoji.selected {
  background: #b9ccff;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.create-toolbar {
  justify-content: center;
  margin-bottom: 0;
}

.dispute-list {
  display: grid;
  gap: 12px;
}

.dispute-card {
  display: grid;
  grid-template-columns: 4px 1fr;
  border-radius: 18px;
  background: rgb(20, 20, 20);
  border: 1px solid transparent;
  box-shadow: 0 14px 30px rgba(5, 9, 20, 0.36), inset 0 1px 0 rgba(148, 173, 237, 0.12);
  transition: none;
  overflow: hidden;
}

.dispute-card:hover {
  border-color: var(--card-status-color, var(--line-strong));
}

.dispute-card.is-finish-decision-open:hover {
  border-color: transparent;
}

:root[data-theme="light"] .dispute-card {
  background: linear-gradient(180deg, #eef2fb 0%, #e5ebf8 100%);
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(99, 120, 167, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

:root[data-theme="light"] .dispute-card:hover {
  border-color: var(--card-status-color, var(--line-strong));
}

:root[data-theme="light"] .dispute-card.is-finish-decision-open:hover {
  border-color: transparent;
}

.status-strip {
  width: 4px;
}

.dispute-body {
  padding: 20px 18px 18px;
}

.dispute-headline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.dispute-type-line {
  color: var(--muted);
  font-size: 16px;
}

.dispute-top {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.dispute-title {
  margin: 0;
  font-size: 29px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.04;
}

.status-tag {
  font-size: 16px;
  font-weight: 400;
  background: transparent;
  line-height: 1;
  text-align: right;
}

.dispute-meta {
  margin-top: 12px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-size: 16px;
}

.dispute-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--muted);
}

.dispute-info-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
  margin-top: 4px;
}

.dispute-stake-line,
.dispute-deadline-line,
.dispute-participants-line {
  font-size: 16px;
  color: var(--muted);
  text-align: left;
}

.dispute-participants-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.dispute-participant-winner {
  color: #41da9a;
  font-weight: 700;
}

.dispute-participant-draw {
  font-size: 16px;
  line-height: 1;
}

.dispute-participant-invited.is-pending {
  color: var(--pending);
}

.dispute-stake-emojis {
  font-size: 16px;
  line-height: 1;
}

.dispute-meta strong {
  color: #ffca58;
  font-weight: 700;
}

.invited-name {
  font-weight: 700;
}

.card-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.card-actions .chip-btn {
  min-width: 122px;
  min-height: 42px;
  justify-content: center;
}

.card-actions.owner-open-actions {
  display: flex;
  visibility: hidden;
  pointer-events: none;
}

.card-actions.owner-completed-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  margin-top: 16px;
}

.dispute-card:hover .card-actions.owner-open-actions {
  visibility: visible;
  pointer-events: auto;
}

.progress-panel {
  margin-top: 12px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.progress-people {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.progress-person {
  border-radius: 16px;
  padding: 12px;
  text-align: center;
}

.progress-person.is-accent {
  background: #1a243c;
}

.progress-name {
  font-size: 17px;
  font-weight: 700;
  color: #edf2ff;
}

.progress-email {
  margin-top: 4px;
  font-size: 14px;
  color: #9ba5bd;
}

.progress-center {
  font-size: 17px;
  font-weight: 700;
  color: #f2f4fc;
}

.progress-panel.is-decision-mode .progress-person,
.progress-panel.is-decision-mode .progress-center {
  border: 0;
}

.progress-panel.is-decision-mode .progress-people {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 50%;
  min-width: 360px;
  margin: 0 auto;
}

.progress-panel.is-decision-mode .progress-person.selectable,
.progress-panel.is-decision-mode .progress-center.selectable {
  background: rgba(115, 176, 255, 0.1);
  color: #73b0ff;
  min-height: 42px;
  border-radius: 999px;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: default;
  user-select: none;
}

.progress-panel.is-decision-mode .progress-person.selectable .progress-name {
  display: block;
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  color: inherit;
}

.progress-panel.is-decision-mode .progress-person.selectable .progress-name,
.progress-panel.is-decision-mode .progress-center.selectable {
  cursor: default;
  user-select: none;
}

.progress-panel.is-decision-mode .progress-center.selectable {
  font-size: 16px;
}

.progress-panel.is-decision-mode .progress-person.selectable.selected,
.progress-panel.is-decision-mode .progress-center.selectable.selected {
  background: rgba(115, 176, 255, 0.2);
  color: #73b0ff;
}

.card-actions.finish-decision-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.card-actions.finish-decision-actions .chip-btn {
  min-width: 112px;
  min-height: 40px;
  padding: 8px 16px;
  font-size: 16px;
}

:root[data-theme="light"] .dispute-participant-winner {
  color: #1f9665;
}

:root[data-theme="light"] .progress-panel.is-decision-mode .progress-person.selectable,
:root[data-theme="light"] .progress-panel.is-decision-mode .progress-center.selectable {
  background: rgba(98, 100, 234, 0.08);
  color: #4d52c5;
}

:root[data-theme="light"] .progress-panel.is-decision-mode .progress-person.selectable.selected,
:root[data-theme="light"] .progress-panel.is-decision-mode .progress-center.selectable.selected {
  background: rgba(98, 100, 234, 0.16);
  color: #4d52c5;
}

.progress-cancel {
  margin-top: 12px;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  color: #ff7b86;
  background: linear-gradient(90deg, rgba(96, 23, 35, 0.55), rgba(73, 20, 31, 0.55));
  cursor: default;
}

.progress-finish-wrap {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.progress-finish {
  min-width: 142px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  color: #41da9a;
  background: linear-gradient(180deg, rgba(23, 82, 61, 0.55), rgba(16, 62, 47, 0.55));
  cursor: default;
}

.finished-panel {
  margin-top: 16px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.finished-copy-btn {
  min-width: 122px;
  min-height: 42px;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 16px;
  font-weight: 400;
  box-shadow: none;
  cursor: default;
}

.finished-copy-btn:hover {
  cursor: default;
}

.chip-btn {
  border: 0;
  outline: none;
  border-radius: 999px;
  min-height: 42px;
  padding: 9px 18px;
  cursor: default;
  font-size: 16px;
  transition: filter 0.22s ease, background-color 0.22s ease, color 0.22s ease;
  box-shadow: none;
}

.chip-btn:hover {
  transform: none;
  box-shadow: none;
  filter: contrast(1.2);
}

.chip-btn.soft {
  background: linear-gradient(180deg, #e9efff, #d9e4ff);
  color: #285aaf;
}

:root[data-theme="dark"] .chip-btn.soft {
  background: linear-gradient(180deg, #1b2a4d, #15213d);
  color: #73b0ff;
}

.chip-btn.soft.edit-btn {
  background: #f3bf7f;
  color: #3a250c;
}

:root[data-theme="light"] .chip-btn.soft.edit-btn {
  background: rgba(236, 168, 70, 0.18);
  color: #9f6418;
}

:root[data-theme="light"] .chip-btn.soft.edit-btn:hover {
  background: rgba(236, 168, 70, 0.26);
  color: #9f6418;
  filter: none;
}

.chip-btn.warn {
  background: rgba(146, 40, 54, 0.35);
  color: #ff7c89;
}


:root[data-theme="dark"] .chip-btn.warn.delete-btn {
  background: rgb(70, 42, 48);
  color: rgb(204, 87, 91);
}

:root[data-theme="dark"] .chip-btn.warn.delete-btn:hover,
:root[data-theme="dark"] .chip-btn.warn.delete-btn.confirm-btn:hover {
  background: rgb(90, 54, 62);
  color: rgb(224, 101, 106);
  filter: none;
}


:root[data-theme="dark"] .chip-btn.soft.edit-btn {
  background: rgb(95, 76, 26);
  color: rgb(245, 186, 50);
}

:root[data-theme="dark"] .chip-btn.soft.edit-btn:hover,
:root[data-theme="dark"] .chip-btn.soft.edit-btn.confirm-btn:hover {
  background: rgb(120, 96, 32);
  color: rgb(255, 210, 100);
  filter: none;
}

:root[data-theme="dark"] .chip-btn.soft.edit-btn:hover {
  filter: contrast(1.2);
}


:root[data-theme="dark"] .chip-btn.soft.opponent-btn {
  background: rgba(115, 176, 255, 0.1);
  color: #73b0ff;
  border: 0;
  min-height: 42px;
  padding: 9px 18px;
}

:root[data-theme="dark"] .chip-btn.soft.opponent-btn:hover,
:root[data-theme="dark"] .chip-btn.soft.opponent-btn.confirm-btn:hover {
  background: rgba(115, 176, 255, 0.22);
  color: #a3d1ff;
  filter: none;
}

:root[data-theme="dark"] .chip-btn.soft.opponent-btn:hover {
  background: rgba(115, 176, 255, 0.2);
  color: #73b0ff;
  border: 0;
  filter: none;
}

:root[data-theme="light"] .chip-btn.warn.delete-btn {
  background: rgba(203, 91, 103, 0.16);
  color: #a94658;
}

:root[data-theme="light"] .chip-btn.warn.delete-btn:hover {
  background: rgba(203, 91, 103, 0.24);
  color: #a94658;
  filter: none;
}

:root[data-theme="light"] .chip-btn.soft.opponent-btn {
  background: rgba(98, 100, 234, 0.08);
  color: #4d52c5;
  border: 0;
  min-height: 42px;
  padding: 9px 18px;
}

:root[data-theme="light"] .chip-btn.soft.opponent-btn:hover {
  background: rgba(98, 100, 234, 0.18);
  color: #4d52c5;
  border: 0;
  filter: none;
}


:root[data-theme="dark"] .chip-btn.soft.opponent-btn.accept-btn {
  background: rgba(33, 108, 78, 0.45);
  color: #44de9c;
}

:root[data-theme="dark"] .chip-btn.soft.opponent-btn.accept-btn:hover,
:root[data-theme="dark"] .chip-btn.soft.opponent-btn.accept-btn.confirm-btn:hover {
  background: rgba(33, 108, 78, 0.62);
  color: #7fffd4;
  filter: none;
}

:root[data-theme="dark"] .chip-btn.soft.opponent-btn.accept-btn:hover {
  background: rgba(33, 108, 78, 0.56);
  color: #44de9c;
  filter: none;
}

:root[data-theme="light"] .chip-btn.soft.opponent-btn.accept-btn {
  background: rgba(33, 108, 78, 0.24);
  color: #2a8d67;
}

:root[data-theme="light"] .chip-btn.soft.opponent-btn.accept-btn:hover {
  background: rgba(33, 108, 78, 0.16);
  color: #2a8d67;
  filter: none;
}

.chip-btn.confirm-btn,
.chip-btn.confirm-btn:hover,
.chip-btn.confirm-btn:focus,
.chip-btn.confirm-btn:active {
  transition: none;
  box-shadow: none;
  transform: none;
  filter: none;
  cursor: default;
}


:root[data-theme="light"] .chip-btn.warn.delete-btn.confirm-btn:hover {
  background: rgba(203, 91, 103, 0.24);
  color: #a94658;
}

.chip-btn.success {
  background: rgba(33, 108, 78, 0.4);
  color: #44de9c;
}

:root[data-theme="dark"] .chip-btn.success.save-btn:hover,
:root[data-theme="dark"] .chip-btn.success.save-btn.confirm-btn:hover {
  background: rgba(33, 108, 78, 0.62);
  color: #7fffd4;
  filter: none;
}

.opponent-panel {
  margin-top: 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.opponent-panel.edit-panel {
  --create-content-inline: 0;
  margin-top: 20px;
  background: rgb(20, 20, 20);
  border: 0;
  box-shadow: none;
  border-radius: 16px;
  padding: 0;
}

:root[data-theme="light"] .opponent-panel.edit-panel {
  background: linear-gradient(180deg, #eef2fb 0%, #e5ebf8 100%);
}

.edit-table {
  display: grid;
  grid-template-columns: 252px 256px 190px 220px;
  row-gap: 8px;
  column-gap: 20px;
  align-items: start;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}

.edit-col {
  display: grid;
  gap: 8px;
  align-content: start;
}

.edit-col-date {
  justify-items: end;
}

.edit-panel .form-field + .form-field {
  margin-top: 0;
}

.edit-panel .form-field {
  padding-inline: var(--create-content-inline);
  max-width: none;
  margin-inline: 0;
}

.edit-panel .input,
.edit-panel .textarea,
.edit-panel .select {
  border: 1px solid rgba(148, 173, 237, 0.22);
  border-radius: 12px;
  box-shadow: none;
  background: linear-gradient(180deg, #1f283b 0%, #192235 100%);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0.02em;
  color: #f1f4fb;
  text-align: center;
  min-height: 38px;
  padding-left: 12px;
  padding-right: 12px;
  display: block;
  margin: 0;
}

:root[data-theme="light"] .edit-panel .input,
:root[data-theme="light"] .edit-panel .textarea,
:root[data-theme="light"] .edit-panel .select {
  border-color: #d8e0f3;
  background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
  color: #2a3555;
}

.edit-panel .textarea {
  min-height: 58px;
  max-height: 58px;
  line-height: 1.2;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: none;
}

.edit-col-main .input,
.edit-col-main .textarea {
  min-height: 58px;
  max-height: 58px;
  text-align: center;
  border: 0;
}

.edit-col-main .input {
  line-height: 58px;
  padding-top: 0;
  padding-bottom: 0;
}

.edit-panel .date-picker-wrap {
  width: 220px;
  max-width: 220px;
  margin: 0;
}

.edit-panel .date-input-native {
  width: 100%;
}

.edit-date-display {
  color: #f1f4fb;
  font-size: 16px;
  min-height: 58px;
  height: 58px;
  width: 220px;
  padding: 0 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #1f283b 0%, #192235 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

:root[data-theme="light"] .edit-date-display {
  color: #2a3555;
  background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
}

.edit-date-actions {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 220px;
}

.edit-panel .edit-quick-btn.action.secondary {
  min-height: 58px;
  height: 58px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 400;
  padding: 0 10px;
  color: #f1f4fb;
  background: linear-gradient(180deg, #1f283b 0%, #192235 100%);
  box-shadow: none;
  text-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  transition: none;
  transform: none;
  cursor: default;
  white-space: pre-line;
}

.edit-panel .edit-quick-btn.action.secondary:hover {
  color: #f1f4fb;
  background: linear-gradient(180deg, #1f283b 0%, #192235 100%);
  box-shadow: none;
  text-shadow: none;
  transform: none;
  filter: none;
}

:root[data-theme="light"] .edit-panel .edit-quick-btn.action.secondary {
  color: #2a3555;
  background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
  border: 1px solid #d8e0f3;
}

:root[data-theme="light"] .edit-panel .edit-quick-btn.action.secondary:hover {
  color: #2a3555;
  background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
  box-shadow: none;
  text-shadow: none;
  transform: none;
  filter: none;
}

.edit-panel .action,
.edit-panel .chip-btn,
.edit-panel .edit-emoji-btn,
.edit-panel .edit-date-display,
.edit-panel .input,
.edit-panel .textarea,
.edit-panel .select {
  box-shadow: none;
  text-shadow: none;
}

.edit-panel .input,
.edit-panel .textarea,
.edit-panel .select,
.edit-panel .edit-quick-btn.action.secondary,
.edit-panel .chip-btn {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.06;
}

.edit-panel .input,
.edit-panel .textarea,
.edit-panel .select,
.edit-panel .edit-emoji-btn,
.edit-panel .edit-date-display,
.edit-panel .date-input-native,
.edit-panel .edit-quick-btn.action.secondary {
  cursor: default;
}

.edit-col-date .edit-date-display,
.edit-col-date .edit-panel .edit-quick-btn.action.secondary,
.edit-col-date .edit-quick-btn.action.secondary {
  transition: none;
  cursor: default;
}

.edit-col-date .edit-date-display:hover,
.edit-col-date .edit-date-display:focus,
.edit-col-date .edit-date-display:active {
  color: inherit;
  background: linear-gradient(180deg, #1f283b 0%, #192235 100%);
  filter: none;
}

:root[data-theme="light"] .edit-col-date .edit-date-display:hover,
:root[data-theme="light"] .edit-col-date .edit-date-display:focus,
:root[data-theme="light"] .edit-col-date .edit-date-display:active {
  color: #2a3555;
  background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
  filter: none;
}

.edit-col-date .edit-quick-btn.action.secondary:hover,
.edit-col-date .edit-quick-btn.action.secondary:focus,
.edit-col-date .edit-quick-btn.action.secondary:active {
  color: #f1f4fb;
  background: linear-gradient(180deg, #2d3f76, #243460);
  border-color: transparent;
  filter: none;
}

:root[data-theme="light"] .edit-col-date .edit-quick-btn.action.secondary {
  color: #2a3555;
  border-color: #d8e0f3;
  background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
  filter: none;
}

:root[data-theme="light"] .edit-col-date .edit-quick-btn.action.secondary:hover,
:root[data-theme="light"] .edit-col-date .edit-quick-btn.action.secondary:focus,
:root[data-theme="light"] .edit-col-date .edit-quick-btn.action.secondary:active {
  color: #2a3555;
  border-color: #aebee5;
  background: linear-gradient(180deg, #dce7ff, #cfddfb);
  filter: none;
}

.edit-inline-row {
  display: grid;
}

.edit-emoji-line {
  display: grid;
  grid-template-columns: repeat(4, 58px);
  gap: 8px;
  width: max-content;
  margin: 0;
}

.edit-food-line {
  grid-template-columns: repeat(3, 58px);
  row-gap: 8px;
  column-gap: 8px;
}

.edit-emoji-btn {
  border: 0;
  border-radius: 12px;
  width: 58px;
  min-height: 58px;
  background: linear-gradient(180deg, #1f283b 0%, #192235 100%);
  color: #f1f4fb;
  font-size: 37px;
  line-height: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.edit-panel .form-field,
.edit-panel .input,
.edit-panel .textarea,
.edit-panel .select,
.edit-date-display,
.edit-panel .edit-quick-btn.action.secondary,
.edit-emoji-btn {
  text-align: center;
}

.edit-emoji-btn.selected {
  background: linear-gradient(180deg, #2d3f76, #243460);
}

:root[data-theme="light"] .edit-emoji-btn {
  background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
  color: #2a3555;
  border: 1px solid #d8e0f3;
}

:root[data-theme="light"] .edit-emoji-btn.selected {
  border-color: #aebee5;
  background: linear-gradient(180deg, #dce7ff, #cfddfb);
}

.edit-panel-actions {
  margin-top: 20px;
  gap: 8px;
}

.edit-panel-actions .chip-btn {
  min-height: 40px;
  padding: 8px 16px;
}

@media (max-width: 1180px) {
  .edit-table {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .edit-col-date .date-picker-wrap {
    margin: 0;
  }
}

@media (max-width: 820px) {
  .edit-table {
    grid-template-columns: 1fr;
  }

  .edit-col {
    justify-items: center;
  }

  .edit-panel .form-field {
    width: 100%;
    max-width: 560px;
  }

  .edit-panel .date-picker-wrap {
    margin: 0 auto;
  }

  .edit-emoji-line {
    margin: 0 auto;
  }
}

.chip-btn.success.save-btn {
  background: rgba(33, 108, 78, 0.52);
  color: #44de9c;
}

.chip-btn.success.save-btn:hover {
  background: rgba(33, 108, 78, 0.4);
  color: #44de9c;
  filter: none;
}

:root[data-theme="light"] .chip-btn.success.save-btn {
  background: rgba(33, 108, 78, 0.24);
  color: #2a8d67;
}

:root[data-theme="light"] .chip-btn.success.save-btn:hover {
  background: rgba(33, 108, 78, 0.16);
  color: #2a8d67;
  filter: none;
}

.user-list {
  display: grid;
  gap: 6px;
  width: min(100%, calc(50% + 128px));
  max-height: 220px;
  overflow: auto;
  justify-items: stretch;
  margin: 0;
}

.opponent-panel .card-actions {
  margin-top: 18px;
  width: 256px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: nowrap;
}

.opponent-search-wrap {
  position: relative;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(115, 176, 255, 0.28);
}

.opponent-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
  opacity: 0.82;
}

.opponent-search-input {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  padding: 0 34px 0 30px;
  background: rgb(20, 20, 20);
  color: #73b0ff;
  font-size: 14px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.opponent-search-input::-webkit-search-cancel-button,
.opponent-search-input::-webkit-search-decoration,
.opponent-search-input::-webkit-search-results-button,
.opponent-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.opponent-search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  background: rgba(115, 176, 255, 0.26);
  color: #73b0ff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.opponent-search-wrap.has-value .opponent-search-clear {
  opacity: 1;
  pointer-events: auto;
}

.opponent-search-clear[hidden] {
  display: none !important;
}

.opponent-search-clear:hover {
  background: rgba(115, 176, 255, 0.4);
  color: #73b0ff;
  filter: none;
}

:root[data-theme="light"] .opponent-search-input {
  background: linear-gradient(180deg, #eef2fb 0%, #e5ebf8 100%);
  color: #4d52c5;
  border: 0;
}

:root[data-theme="light"] .opponent-search-clear {
  background: rgba(98, 100, 234, 0.22);
  color: #4d52c5;
}

:root[data-theme="light"] .opponent-search-clear:hover {
  background: rgba(98, 100, 234, 0.34);
  color: #4d52c5;
  filter: none;
}

:root[data-theme="light"] .opponent-search-wrap {
  border-color: rgba(98, 100, 234, 0.34);
}

.user-row {
  border-radius: 12px;
  border: 0;
  width: 100%;
  background: transparent;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #73b0ff;
  font-size: 16px;
  text-align: left;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.user-row-name {
  display: block;
  width: 100%;
  text-align: left;
}

.user-row:hover {
  background: rgba(115, 176, 255, 0.14);
  color: #73b0ff;
  border: 0;
  filter: none;
}

.user-row.selected {
  background: rgba(115, 176, 255, 0.22);
  color: #73b0ff;
}

.user-list.has-selection .user-row:not(.selected) {
  color: var(--muted);
}

:root[data-theme="light"] .user-row {
  color: #4d52c5;
  border: 0;
  background: transparent;
}

:root[data-theme="light"] .user-row:hover {
  background: rgba(98, 100, 234, 0.14);
  color: #4d52c5;
}

:root[data-theme="light"] .user-row.selected {
  background: rgba(98, 100, 234, 0.2);
  color: #4d52c5;
}

:root[data-theme="light"] .user-list.has-selection .user-row:not(.selected) {
  color: var(--muted);
}

.chip-btn.opponent-btn.is-disabled,
.chip-btn.opponent-btn:disabled {
  opacity: 0.42;
  filter: none;
  cursor: default;
}

.opponent-search-empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 10px 0;
}

.center-user {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  padding: 14px;
}

.empty {
  text-align: center;
  font-size: 24px;
  color: var(--muted);
  padding: 28px 0;
}

.status-open {
  color: var(--open);
}

.status-pending {
  color: var(--pending);
}

.status-in-progress {
  color: var(--in-progress);
}

.status-cancelled {
  color: var(--cancelled);
}

.status-finished {
  color: var(--finished);
}

@media (max-width: 980px) {
  .block-title {
    font-size: 30px;
  }

  .dispute-type-line,
  .status-tag {
    font-size: 18px;
  }

  .dispute-title {
    font-size: 34px;
  }

  .dispute-meta,
  .chip-btn {
    font-size: 16px;
  }
}

@media (max-width: 820px) {
  .mosaic {
    grid-template-columns: 1fr;
  }

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

  .deadline-layout {
    gap: 14px;
  }

  .deadline-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .deadline-action-cell .action.secondary {
    min-width: 0;
    width: 100%;
  }

  .create-block .block-title {
    font-size: 25px;
  }

  .create-block .action.secondary,
  .create-block .inline-muted {
    font-size: 21px;
  }

  .date-display {
    font-size: 18px;
  }

  .carousel-text,
  .home-actions {
    margin-top: 24px;
  }

  .home-actions {
    grid-template-columns: 1fr;
  }

  .cards-header {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .cards-home-btn {
    margin-right: 0;
  }

  .cards-filters-row {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 8px;
  }

  .cards-home-wrap {
    justify-self: start;
  }

  .cards-filters-wrap {
    justify-self: stretch;
  }

  .cards-filters {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .topbar-right {
    justify-self: center;
  }

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

  .create-actions {
    margin-top: 0;
  }

  .date-display {
    max-width: 100%;
  }

  .create-block {
    padding: 16px 14px;
  }

  .dispute-title {
    font-size: 30px;
  }

  .dispute-meta {
    font-size: 15px;
  }

  .chip-btn {
    font-size: 16px;
  }

  .progress-people {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .auth-actions .action {
    min-width: 0;
    width: 100%;
  }

  .user-list {
    width: 100%;
  }

  .opponent-panel .card-actions {
    margin-top: 18px;
  }

  .finished-panel {
    justify-content: center;
  }
}
