:root {
  color-scheme: light;
  --page: #f6f7f3;
  --surface: #ffffff;
  --surface-soft: #eef0ea;
  --ink: #171916;
  --muted: #686c65;
  --line: #d7dad2;
  --line-strong: #aeb2a8;
  --red: #d83b31;
  --red-soft: #f8dfdc;
  --green: #176e57;
  --green-soft: #dcefe7;
  --yellow: #af7200;
  --yellow-soft: #fff0c3;
  --blue: #2d68b6;
  --blue-soft: #e0ebf8;
  --purple: #7754a0;
  --purple-soft: #eee5f7;
  --cyan: #147383;
  --cyan-soft: #dceff2;
  --orange: #ae591c;
  --orange-soft: #f7e5d5;
  --shadow: 0 20px 55px rgba(28, 31, 25, 0.13);
  --display: "Songti SC", "STSong", "Noto Serif SC", serif;
  --body: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #151714;
  --surface: #20231e;
  --surface-soft: #2a2d27;
  --ink: #f4f6ef;
  --muted: #adb2a8;
  --line: #3a3e37;
  --line-strong: #61665b;
  --red: #ef574d;
  --red-soft: #4a2522;
  --green: #59b697;
  --green-soft: #173d31;
  --yellow: #efbf4d;
  --yellow-soft: #4c3c16;
  --blue: #79a9e9;
  --blue-soft: #1e3858;
  --purple: #b998d4;
  --purple-soft: #3a2c47;
  --cyan: #65bac7;
  --cyan-soft: #193b41;
  --orange: #e69b65;
  --orange-soft: #4a301f;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.55;
}

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

button,
select,
a {
  cursor: pointer;
}

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

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 95%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--red);
  color: #ffffff;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 900;
  transform: rotate(-3deg);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.15;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.topnav {
  display: flex;
  align-self: stretch;
}

.topnav a {
  position: relative;
  display: inline-flex;
  min-width: 76px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.topnav a::after {
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 3px;
  background: transparent;
  content: "";
}

.topnav a:hover,
.topnav a.is-active {
  color: var(--ink);
}

.topnav a.is-active::after {
  background: var(--red);
}

.topnav span {
  margin-left: 4px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
}

.icon-button:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

#themeButton {
  justify-self: end;
}

main {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 28px;
}

.overview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: end;
  padding: 54px 0 36px;
  border-bottom: 1px solid var(--line-strong);
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 14%, transparent);
}

.overview h1 {
  margin: 10px 0 4px;
  font-family: var(--display);
  font-size: 44px;
  line-height: 1.15;
}

.overview p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(3, 118px);
  margin: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.overview-stats div {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.overview-stats div:last-child {
  border-right: 0;
}

.overview-stats dt {
  font-family: var(--display);
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
}

.overview-stats dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.category-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading h2 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.2;
}

.section-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.category-nav {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.category-button {
  display: grid;
  min-width: 0;
  min-height: 76px;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  gap: 4px;
  align-items: center;
  padding: 13px 10px 11px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
}

.category-button:last-child {
  border-right: 0;
}

.category-button:hover {
  background: var(--surface-soft);
}

.category-button.is-active {
  background: var(--ink);
  color: var(--page);
}

.category-button svg {
  width: 18px;
  height: 18px;
}

.category-button span {
  grid-column: 1 / -1;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-button small {
  align-self: start;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.category-button.is-active small {
  color: color-mix(in srgb, var(--page) 72%, transparent);
}

.daily-pick {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 190px;
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}

.daily-pick-image {
  position: relative;
  min-height: 190px;
  overflow: hidden;
}

.daily-pick-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.daily-pick-image small {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 6px;
  border-radius: 3px;
  background: rgba(15, 17, 14, 0.74);
  color: #ffffff;
  font-size: 9px;
}

.daily-pick-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 30px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.daily-pick h2 {
  margin: 10px 0 6px;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.22;
}

.daily-pick p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.daily-pick-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 750;
}

.button svg {
  width: 15px;
  height: 15px;
}

.button-primary {
  background: var(--red);
  color: #ffffff;
}

.button-primary:hover {
  background: color-mix(in srgb, var(--red) 84%, #000000);
}

.button-secondary {
  border-color: var(--line-strong);
  background: transparent;
}

.button-secondary:hover {
  border-color: var(--ink);
  background: var(--surface-soft);
}

.save-featured.is-saved,
.save-button.is-saved {
  border-color: var(--red);
  background: var(--red);
  color: #ffffff;
}

.status {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  padding: 0 7px;
  border-radius: 99px;
  font-family: var(--body);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.status-live {
  background: var(--green-soft);
  color: var(--green);
}

.status-ending {
  background: var(--red-soft);
  color: var(--red);
}

.status-check {
  background: var(--yellow-soft);
  color: var(--yellow);
}

.status-ended {
  background: var(--surface-soft);
  color: var(--muted);
}

.workspace {
  padding: 28px 0 68px;
}

.filterbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 178px 148px auto 38px;
  gap: 10px;
  align-items: end;
  padding: 14px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.search-field {
  position: relative;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-field input,
.select-field select,
.results-actions select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  outline: none;
  background: var(--surface);
}

.search-field input {
  padding: 0 12px 0 38px;
}

.select-field {
  display: grid;
  gap: 4px;
}

.select-field span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.select-field select,
.results-actions select {
  padding: 0 30px 0 10px;
  font-size: 12px;
}

.search-field input:focus,
.select-field select:focus,
.results-actions select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 12%, transparent);
}

.check-field {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 4px;
  white-space: nowrap;
  cursor: pointer;
}

.check-field input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--red);
}

.check-field span {
  color: var(--muted);
  font-size: 11px;
}

.results-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 15px;
  border-bottom: 2px solid var(--ink);
}

.results-toolbar h2 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 25px;
}

.results-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.results-actions > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.results-actions select {
  width: 145px;
  height: 36px;
}

.activity-list {
  display: grid;
}

.deal-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 360px 84px;
  gap: 18px;
  align-items: center;
  min-height: 164px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-strong);
}

.deal-row.is-ended {
  opacity: 0.62;
}

.category-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 5px;
}

.category-mark svg {
  width: 18px;
  height: 18px;
}

.tone-draw,
.tone-jackpot {
  background: var(--red-soft);
  color: var(--red);
}

.tone-invoice,
.tone-local {
  background: var(--green-soft);
  color: var(--green);
}

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

.tone-shopping {
  background: var(--yellow-soft);
  color: var(--yellow);
}

.tone-ai {
  background: var(--ink);
  color: var(--page);
}

.tone-points {
  background: var(--purple-soft);
  color: var(--purple);
}

.tone-trial {
  background: var(--cyan-soft);
  color: var(--cyan);
}

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

.deal-main {
  min-width: 0;
}

.source-label {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 3px;
}

.source-label svg {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  color: var(--green);
}

.deal-main h3 {
  margin: 10px 0 5px;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.3;
}

.deal-main h3 button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-align: left;
}

.deal-main h3 button:hover {
  color: var(--red);
}

.deal-main > p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.deal-facts {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr 0.7fr;
  min-width: 0;
  margin: 0;
  border-left: 1px solid var(--line);
}

.deal-facts div {
  min-width: 0;
  padding: 5px 15px;
  border-right: 1px solid var(--line);
}

.deal-facts dt {
  color: var(--muted);
  font-size: 9px;
}

.deal-facts dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 750;
}

.deal-facts dd.urgent {
  color: var(--red);
}

.deal-actions {
  display: flex;
  gap: 6px;
  justify-content: end;
}

.detail-button:hover {
  border-color: var(--red);
  color: var(--red);
}

.empty-state {
  padding: 64px 20px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.empty-state svg {
  width: 30px;
  height: 30px;
  color: var(--red);
}

.empty-state h3 {
  margin: 12px 0 5px;
  font-family: var(--display);
  font-size: 22px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.method {
  padding: 48px 0 66px;
  border-top: 2px solid var(--ink);
}

.method ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.method li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 5px 9px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.method li:last-child {
  border-right: 0;
}

.method li svg {
  grid-row: 1 / 3;
  width: 18px;
  height: 18px;
  color: var(--red);
}

.method li strong {
  font-size: 13px;
}

.method li span {
  color: var(--muted);
  font-size: 11px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
}

footer > div {
  display: grid;
  gap: 5px;
}

footer > div:last-child {
  text-align: right;
}

footer p {
  margin: 0;
}

footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer a:hover {
  color: var(--ink);
}

dialog {
  width: min(680px, calc(100% - 32px));
  max-height: min(820px, calc(100vh - 36px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(12, 13, 11, 0.66);
  backdrop-filter: blur(3px);
}

.dialog-shell {
  position: relative;
  max-height: inherit;
  overflow-y: auto;
  padding: 38px;
}

.dialog-close {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 16px;
}

.dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-right: 44px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.dialog-shell h2 {
  margin: 16px 0 8px;
  padding-right: 38px;
  font-family: var(--display);
  font-size: 29px;
  line-height: 1.28;
}

.dialog-lead {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dialog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.dialog-grid div {
  padding: 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dialog-grid dt {
  color: var(--muted);
  font-size: 9px;
}

.dialog-grid dd {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 750;
}

.dialog-section {
  margin-top: 24px;
}

.dialog-section h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 17px;
}

.steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 42px;
  padding: 2px 0 14px 38px;
  border-left: 1px solid var(--line);
  counter-increment: step;
  font-size: 12px;
}

.steps li:last-child {
  border-left-color: transparent;
}

.steps li::before {
  position: absolute;
  top: 0;
  left: -12px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--red);
  content: counter(step);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
}

.warning-box {
  display: grid;
  grid-template-columns: 19px 1fr;
  gap: 9px;
  margin-top: 22px;
  padding: 13px;
  border-left: 3px solid var(--yellow);
  background: var(--yellow-soft);
  color: color-mix(in srgb, var(--ink) 82%, var(--yellow));
  font-size: 11px;
}

.warning-box svg {
  width: 16px;
  height: 16px;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  max-width: calc(100vw - 44px);
  padding: 11px 14px;
  border-radius: 5px;
  background: var(--ink);
  color: var(--page);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1080px) {
  .category-nav {
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
  }

  .category-button,
  .category-button:nth-child(5n),
  .category-button:nth-child(-n + 5) {
    border: 0;
  }

  .deal-row {
    grid-template-columns: 40px minmax(0, 1fr) 84px;
  }

  .deal-facts {
    grid-column: 2 / -1;
    grid-row: 2;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-rows: 60px 48px;
    min-height: 108px;
    padding: 0 18px;
    background: var(--page);
    backdrop-filter: none;
  }

  .topnav {
    position: static;
    grid-row: 2;
    grid-column: 1 / -1;
    width: calc(100% + 36px);
    height: 48px;
    margin-left: -18px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }

  .topnav a {
    flex: 1;
  }

  .topnav a::after {
    right: 24px;
    left: 24px;
  }

  main {
    padding: 0 18px;
  }

  .overview {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 38px 0 28px;
  }

  .overview h1 {
    font-size: 36px;
  }

  .overview-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-section {
    padding: 28px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 8px;
    text-align: left;
  }

  .category-nav {
    display: flex;
    gap: 8px;
    margin-right: -18px;
    padding-right: 18px;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    scrollbar-width: none;
  }

  .category-nav::-webkit-scrollbar {
    display: none;
  }

  .category-button,
  .category-button:nth-child(5n),
  .category-button:nth-child(-n + 5) {
    width: 104px;
    min-width: 104px;
    min-height: 68px;
    border: 1px solid var(--line);
    border-radius: 5px;
  }

  .daily-pick {
    grid-template-columns: 1fr;
  }

  .daily-pick-image {
    min-height: 132px;
    max-height: 132px;
  }

  .daily-pick-copy {
    padding: 20px;
  }

  .daily-pick h2 {
    font-size: 22px;
  }

  .filterbar {
    grid-template-columns: 1fr 1fr 38px;
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .check-field {
    grid-column: 1 / 3;
  }

  .results-toolbar {
    display: block;
  }

  .results-actions {
    justify-content: space-between;
    margin-top: 13px;
  }

  .deal-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 22px 0;
  }

  .deal-main h3 {
    font-size: 19px;
  }

  .deal-facts {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 3px;
  }

  .deal-facts div {
    padding: 8px 10px;
  }

  .deal-actions {
    grid-column: 1 / -1;
  }

  .method {
    padding: 42px 0 54px;
  }

  .method ol {
    grid-template-columns: 1fr;
  }

  .method li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .method li:last-child {
    border-bottom: 0;
  }

  footer {
    display: grid;
    padding: 20px 18px;
  }

  footer > div:last-child {
    text-align: left;
  }

  .dialog-shell {
    padding: 34px 22px;
  }

  .dialog-shell h2 {
    font-size: 25px;
  }
}

@media (max-width: 430px) {
  .brand small {
    display: none;
  }

  .overview p:last-child {
    font-size: 13px;
  }

  .overview-stats div {
    padding: 14px 10px;
  }

  .overview-stats dt {
    font-size: 27px;
  }

  .daily-pick-actions {
    width: 100%;
  }

  .daily-pick-actions .button {
    flex: 1;
  }

  .filterbar {
    grid-template-columns: 1fr 38px;
  }

  .select-field {
    grid-column: 1 / -1;
  }

  .check-field {
    grid-column: 1;
  }

  .results-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .results-actions select {
    width: 100%;
  }

  .deal-facts {
    grid-template-columns: 1fr;
  }

  .deal-facts div {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .deal-facts div:last-child {
    border-bottom: 0;
  }

  .deal-facts dd {
    margin: 0;
  }

  .dialog-grid {
    grid-template-columns: 1fr;
  }
}
