:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Noto Sans TC",
    "PingFang TC",
    sans-serif;
  color: #203d3e;
  background: #f5f6f2;
  font-size: 15px;
  font-synthesis: none;
  --ink: #143f40;
  --muted: #718080;
  --line: #dfe5df;
  --accent: #ddedbe;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-weight: 650;
  letter-spacing: -0.045em;
  font-size: clamp(27px, 2.6vw, 38px);
  margin-bottom: 12px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.7;
}
.muted,
small {
  color: var(--muted);
}
.small,
small {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #778580;
  font-weight: 650;
  display: block;
  margin-bottom: 17px;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 20px;
  letter-spacing: 0.04em;
  font-weight: 650;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.22em;
  margin-top: 4px;
}
.primary,
.secondary {
  border-radius: 9px;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.primary {
  background: var(--ink);
  color: #fff;
}
.primary:hover {
  background: #275758;
}
.secondary {
  background: #fff;
  border: 1px solid var(--line);
}
.text {
  font-size: 13px;
  padding: 7px 0;
}
.text:hover {
  text-decoration: underline;
}
.icon {
  font-size: 21px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon:hover {
  background: #e8ede5;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.row h2 {
  margin-bottom: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.language select {
  border: 0;
  background: transparent;
  padding: 8px;
  font-size: 12px;
  width: auto;
  max-width: 155px;
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 33px 23px 22px;
}
.sidebar .brand {
  margin-bottom: 54px;
}
.sidebar nav {
  display: grid;
  gap: 9px;
}
.sidebar nav a {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 14px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}
.sidebar nav a span {
  width: 20px;
  font-size: 21px;
  line-height: 18px;
  text-align: center;
}
.sidebar nav a small {
  margin-left: auto;
}
.sidebar nav a[aria-current] {
  background: #eef2e8;
  color: var(--ink);
  font-weight: 650;
}
.sidebar-note {
  margin-top: auto;
  padding: 24px 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #719676;
}
.profile {
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  align-items: center;
}
.profile strong {
  font-size: 12px;
  display: block;
  max-width: 110px;
  overflow-wrap: anywhere;
}
.profile small {
  font-size: 10px;
}
.profile .icon {
  margin-left: auto;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0eee7;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.topbar {
  height: 80px;
  border-bottom: 1px solid var(--line);
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.topbar i {
  font-style: normal;
  margin: 0 13px;
  color: #b8c0b7;
}
.content {
  max-width: 1360px;
  margin: auto;
  padding: 42px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
.page-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.page-heading .primary {
  flex-shrink: 0;
}
.page-heading .eyebrow {
  margin-bottom: 12px;
}
.filter-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 23px 26px;
}
.segments {
  display: flex;
  background: #f0f2ed;
  border-radius: 8px;
  padding: 4px;
  max-width: 445px;
  gap: 4px;
  margin-bottom: 24px;
}
.segments button {
  flex: 1;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
}
.segments button.selected {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 5px #122a2910;
  font-weight: 600;
}
.filter-fields {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr;
  gap: 27px;
  align-items: end;
}
label {
  display: grid;
  gap: 9px;
  font-size: 12px;
  color: #657771;
}
input,
select {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  min-width: 0;
  width: 100%;
  padding: 12px 13px;
}
input:focus,
select:focus {
  outline: 2px solid #769b83;
  outline-offset: 1px;
}
.amount {
  position: relative;
}
.amount input {
  padding-right: 60px;
  font-variant-numeric: tabular-nums;
}
.amount span {
  position: absolute;
  right: 14px;
  top: 14px;
  font-size: 11px;
  color: var(--muted);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend {
  font-size: 12px;
  color: #657771;
  margin-bottom: 9px;
}
.kind {
  display: flex;
  gap: 7px;
}
.kind button {
  border: 1px solid var(--line);
  border-radius: 7px;
  flex: 1;
  padding: 12px 8px;
  font-size: 13px;
  white-space: nowrap;
}
.kind button.selected {
  background: #eef3e8;
  border-color: #a3bca1;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 27px 0 15px;
  gap: 10px;
}
.section-heading h2 {
  font-size: 18px;
  margin: 0;
  letter-spacing: 0.01em;
}
.section-heading h2 span {
  font-weight: 400;
  font-size: 13px;
}
.rate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.rate-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 21px 20px 10px;
  min-width: 0;
}
.rate-card.best {
  border-color: #839e79;
  box-shadow: 0 0 0 1px #839e7915;
  background: linear-gradient(130deg, #f5f9ed, #fff 65%);
}
.bank-name {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
}
.bank-name h3 {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.bank-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 9px;
  letter-spacing: 0.02em;
  border: 1px solid #e0e4dc;
  border-radius: 50%;
  background: #f2f4ed;
  color: #75816e;
  flex-shrink: 0;
}
.bank-monogram.bot {
  color: #785959;
  background: #f8efef;
}
.bank-monogram.mega {
  color: #8c7953;
  background: #f6f2e6;
}
.bank-monogram.fubon {
  color: #48758b;
  background: #ebf4f7;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  background: #f0f2ec;
  color: var(--muted);
  border-radius: 5px;
  font-size: 10px;
  white-space: nowrap;
}
.pill.green {
  background: #e5edcf;
  color: #4f6940;
}
.price {
  font-size: 37px;
  letter-spacing: -0.05em;
  font-weight: 550;
  margin: 27px 0 17px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.price small {
  font-size: 10px;
  letter-spacing: 0;
  margin-left: 9px;
  font-weight: 400;
}
.estimate {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  display: grid;
  gap: 7px;
}
.estimate span {
  font-size: 11px;
  color: var(--muted);
}
.estimate strong {
  font-size: 16px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.quote-time {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px 0 8px;
  font-size: 10px;
  color: #909b92;
}
.rate-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rate-bottom a {
  font-size: 10px;
  color: #78867a;
}
.rate-card.unavailable .price {
  color: var(--muted);
}
.workspace footer {
  max-width: 1360px;
  margin: auto;
  padding: 10px 42px 30px;
  color: #939d94;
  font-size: 10px;
  line-height: 1.6;
}
.rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.rule-card,
.settings-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 25px;
  border-radius: 12px;
}
.rule-card h2 {
  margin-top: 22px;
  font-size: 17px;
}
.rule-card h2 small {
  font-weight: 400;
}
.currency-tag {
  font-size: 18px;
  font-weight: 600;
}
.target-line {
  font-size: 13px;
}
.target-line strong {
  font-size: 28px;
  font-weight: 550;
  margin-left: 8px;
}
.card-actions {
  display: flex;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}
.settings-card {
  margin-bottom: 20px;
  max-width: 800px;
}
.settings-card h2 {
  font-size: 19px;
}
.settings-card p {
  font-size: 13px;
}
.settings-card .row {
  margin-bottom: 17px;
}
.help {
  background: #f3f5ef;
  padding: 13px 16px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.events {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0 25px;
}
.event {
  display: flex;
  gap: 17px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.event:last-child {
  border: 0;
}
.event p {
  font-size: 13px;
  margin-bottom: 9px;
}
.event h3 {
  margin-bottom: 9px;
}
.event-icon {
  background: #edf1e4;
  color: #778b66;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.empty {
  background: #fff;
  border: 1px dashed #cbd4c8;
  border-radius: 12px;
  padding: 60px 25px;
  text-align: center;
}
.empty > span {
  display: block;
  font-size: 42px;
  color: #93a785;
  margin-bottom: 20px;
}
.empty h2 {
  font-size: 22px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 24px;
}
.banner {
  background: #fff2e8;
  border: 1px solid #ead3bb;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 13px;
}
.error {
  color: #995b43;
  line-height: 1.6;
}
.login-shell {
  max-width: 1300px;
  margin: auto;
  padding: 0 50px;
}
.login-shell header {
  padding: 35px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.login-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 100px;
  align-items: center;
  min-height: calc(100vh - 170px);
}
.welcome h1 {
  font-size: clamp(36px, 4.2vw, 58px);
  max-width: 450px;
  line-height: 1.3;
  letter-spacing: -0.04em;
}
.welcome > p {
  max-width: 360px;
  color: var(--muted);
  font-size: 15px;
}
.abstract {
  height: 240px;
  position: relative;
  max-width: 420px;
  margin: 30px 0;
}
.orbit {
  border: 1px solid #d3ddcc;
  width: 380px;
  height: 160px;
  border-radius: 50%;
  position: absolute;
  left: -10px;
  top: 40px;
  transform: rotate(-20deg);
}
.coin {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 125px;
  height: 125px;
  border-radius: 50%;
  font-size: 56px;
  border: 1px solid #a7b7a0;
  box-shadow: 8px 8px 0 #c8d5b7;
}
.coin-one {
  background: #dceac5;
  color: #436343;
  left: 10px;
  top: 20px;
  transform: rotate(-12deg);
}
.coin-two {
  background: #244c48;
  color: #e2edc9;
  right: 30px;
  top: 80px;
  box-shadow: 7px 7px 0 #b0c0ac;
}
.exchange-mark {
  position: absolute;
  left: 176px;
  top: 90px;
  font-size: 36px;
  color: #708873;
}
.mini-label {
  position: absolute;
  left: 30px;
  bottom: 0;
  font-size: 9px;
  letter-spacing: 0.19em;
  color: #8a9783;
}
.bank-strip {
  display: flex;
  gap: 12px 19px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #849080;
  max-width: 450px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.login-card {
  background: #fff;
  padding: 39px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 70px #2c453609;
}
.login-card h2 {
  font-size: 28px;
  margin-bottom: 15px;
}
.login-card > p {
  font-size: 13px;
}
.login-card form {
  display: grid;
  gap: 19px;
  margin-top: 27px;
  margin-bottom: 26px;
}
.login-card form p {
  font-size: 12px;
  margin: 0;
}
.login-card .primary {
  width: 100%;
  justify-content: space-between;
}
.login-card small {
  font-size: 10px;
  line-height: 1.7;
  display: block;
}
.login-shell footer {
  font-size: 10px;
  color: #939d94;
  padding: 25px 0;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  width: min(560px, calc(100% - 28px));
  padding: 27px;
  color: var(--ink);
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #18343477;
  backdrop-filter: blur(3px);
}
dialog .row {
  margin-bottom: 25px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.wide {
  grid-column: 1/-1;
}
.bank-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bank-checks legend {
  margin-bottom: 13px;
}
.bank-checks label {
  display: flex;
  align-items: center;
  gap: 9px;
}
.bank-checks input {
  width: 17px;
  height: 17px;
  accent-color: var(--ink);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.form-grid + .help {
  margin-top: 22px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  max-width: calc(100% - 30px);
  width: max-content;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  background: #173f3f;
  color: #fff;
  border-radius: 9px;
  padding: 15px 22px;
  font-size: 13px;
  transition: 0.2s;
  box-shadow: 0 5px 25px #193d3d30;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1600px) {
  .content {
    padding-top: 60px;
  }
  .rate-card {
    padding: 27px 26px 13px;
  }
  .price {
    font-size: 44px;
  }
}
@media (max-width: 1150px) {
  .layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 16px 20px;
  }
  .sidebar .brand {
    font-size: 17px;
  }
  .content {
    padding: 32px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .rate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-fields {
    gap: 15px;
  }
  .login-grid {
    gap: 45px;
  }
  .login-shell {
    padding: 0 35px;
  }
  .login-card {
    padding: 30px;
  }
  .price {
    font-size: 36px;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
    padding-bottom: 68px;
  }
  .sidebar {
    height: auto;
    position: static;
    display: block;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    margin: 0;
    font-size: 18px;
  }
  .sidebar nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-top: 1px solid var(--line);
    z-index: 5;
    gap: 0;
    padding: 4px 8px calc(5px + env(safe-area-inset-bottom));
  }
  .sidebar nav a {
    flex-direction: column;
    gap: 5px;
    padding: 8px 2px;
    font-size: 10px;
    border-radius: 8px;
    text-align: center;
  }
  .sidebar nav a span {
    font-size: 20px;
  }
  .sidebar nav a small {
    display: none;
  }
  .sidebar-note,
  .profile {
    display: none;
  }
  .topbar {
    height: 54px;
    padding: 0 20px;
  }
  .content {
    padding: 25px 18px;
  }
  .page-heading {
    gap: 13px;
    align-items: flex-start;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 27px;
    line-height: 1.35;
  }
  .page-heading .primary {
    font-size: 0;
    padding: 12px;
    width: 43px;
    height: 43px;
    overflow: hidden;
  }
  .page-heading .primary::after {
    content: "＋";
    font-size: 22px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .filter-card {
    padding: 17px;
  }
  .segments {
    margin-bottom: 18px;
  }
  .segments button {
    font-size: 12px;
    padding: 10px 5px;
  }
  .filter-fields {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .kind {
    grid-column: 1/-1;
  }
  .kind legend {
    float: left;
    margin: 13px 15px 0 0;
  }
  .kind button {
    flex: 0 1 95px;
  }
  .rate-grid {
    gap: 12px;
  }
  .rate-card {
    padding: 15px 13px 8px;
  }
  .rate-card .row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 9px;
  }
  .rate-card .pill {
    font-size: 9px;
    padding: 3px 6px;
  }
  .bank-name {
    gap: 7px;
  }
  .bank-name h3 {
    font-size: 12px;
  }
  .bank-monogram {
    width: 25px;
    height: 25px;
    font-size: 8px;
  }
  .price {
    font-size: 29px;
    margin: 21px 0 15px;
  }
  .price small {
    font-size: 8px;
    margin-left: 5px;
  }
  .estimate strong {
    font-size: 13px;
  }
  .quote-time {
    font-size: 9px;
  }
  .rate-bottom a {
    font-size: 9px;
  }
  .rate-bottom .icon {
    width: 27px;
    height: 27px;
  }
  .section-heading > .small {
    font-size: 9px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .workspace footer {
    padding: 0 18px 22px;
    font-size: 9px;
  }
  .rule-grid {
    grid-template-columns: 1fr;
  }
  .login-shell {
    padding: 0 23px;
  }
  .login-shell header {
    padding: 24px 0;
  }
  .login-grid {
    display: block;
    min-height: 0;
  }
  .welcome {
    padding: 24px 0 27px;
  }
  .welcome h1 {
    font-size: 35px;
    max-width: 340px;
  }
  .welcome > p {
    font-size: 13px;
    max-width: 100%;
    margin-bottom: 0;
  }
  .abstract {
    display: none;
  }
  .bank-strip {
    margin-top: 23px;
    padding-top: 18px;
    font-size: 10px;
    gap: 10px 17px;
  }
  .login-card {
    padding: 26px;
    margin-bottom: 15px;
  }
  .login-card h2 {
    font-size: 24px;
  }
  .login-card .eyebrow {
    margin-bottom: 12px;
  }
  .login-shell footer {
    padding: 16px 0 25px;
  }
  .settings-card {
    padding: 21px;
  }
  .settings-card .row {
    align-items: flex-start;
  }
  .empty {
    padding: 42px 20px;
  }
  .events {
    padding: 0 17px;
  }
  .event {
    gap: 12px;
  }
  dialog {
    padding: 22px;
  }
  .form-grid {
    gap: 15px;
  }
  .login-shell .brand {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 760px) {
  .page-heading .primary {
    gap: 0;
  }
  .rate-card .row {
    min-height: 55px;
  }
  .kind button {
    flex: 1;
    font-size: 11px;
    white-space: normal;
  }
}
/* Readability refinements after the product design review. */
:root {
  --muted: #61706d;
}
.eyebrow,
.quote-time,
.workspace footer,
.login-shell footer,
.rate-bottom a {
  color: #61706d;
}
.text {
  min-height: 44px;
}
@media (max-width: 760px) {
  .rate-grid {
    grid-template-columns: 1fr;
  }
  .rate-card {
    padding: 20px 22px 12px;
  }
  .rate-card .row {
    min-height: 30px;
    align-items: center;
  }
  .bank-name h3 {
    font-size: 15px;
  }
  .rate-card .pill {
    font-size: 11px;
    padding: 5px 8px;
  }
  .price {
    font-size: 34px;
    margin: 20px 0 15px;
  }
  .estimate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 17px;
  }
  .estimate span {
    font-size: 12px;
  }
  .estimate strong {
    font-size: 16px;
  }
  .quote-time {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px 15px;
    font-size: 11px;
  }
  .rate-bottom a {
    font-size: 11px;
  }
  .rate-bottom .icon {
    width: 44px;
    height: 44px;
  }
}

.rule-preview {
  background: var(--surface, #f3f5ed);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.rule-preview p {
  margin: 0 0 8px;
  line-height: 1.6;
}
.rule-preview small {
  display: block;
  line-height: 1.5;
}

@media (max-width: 380px) {
  .form-grid,
  .bank-checks {
    grid-template-columns: minmax(0, 1fr);
  }
}

.defaults-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.defaults-fields .primary {
  margin-top: 1rem;
}
.rate-unit {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 1.25rem 0 0.25rem;
}
.rate-unit + .price {
  margin-top: 0;
}
