:root {
  color-scheme: light;
  --bg: #f7f7f9;
  --surface: #fff;
  --soft: #f6f6f8;
  --ink: #1f2025;
  --muted: #5c5e69;
  --faint: #737581;
  --line: #dfdfe5;
  --inner: #e8e8ec;
  --cta: #232329;
  --ctaink: #fff;
  --focus: #7065bd;
  --tint: #eeeaf8;
  --tint-ink: #55477f;
  --error: #9e3346;
  --errorbg: #fcf0f2;
  --rad: 13px;
  --shadow: 0 2px 4px #20203204;
  --art: url("./assets/cover.webp");
}
:root.dark {
  color-scheme: dark;
  --bg: #111216;
  --surface: #1c1d22;
  --soft: #23242a;
  --ink: #f0f0f4;
  --muted: #b6b6c1;
  --faint: #a0a1ac;
  --line: #393a43;
  --inner: #32333c;
  --cta: #ececf2;
  --ctaink: #1b1c22;
  --focus: #bdacff;
  --tint: #332e45;
  --tint-ink: #cdb6f8;
  --error: #ffafbd;
  --errorbg: #38252d;
  --shadow: none;
}
* {
  box-sizing: border-box;
}
html {
  min-width: 280px;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    "Helvetica Neue",
    -apple-system,
    BlinkMacSystemFont,
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button[disabled] {
  cursor: not-allowed;
  opacity: 0.43;
}
button,
input,
textarea,
select {
  touch-action: manipulation;
}
button {
  background: none;
  border: 0;
  padding: 0;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
button,
select {
  transition:
    background 0.13s ease,
    border-color 0.13s ease,
    box-shadow 0.13s ease;
}
svg {
  display: block;
  flex-shrink: 0;
}
button svg,
span[data-icon] {
  flex-shrink: 0;
}
span[data-icon] {
  display: inline-flex;
  align-items: center;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1:focus {
  outline: 0;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.035em;
  line-height: 1.3;
  font-weight: 650;
}
h3 {
  letter-spacing: -0.025em;
}
[hidden] {
  display: none !important;
}
.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;
}
.top {
  flex-shrink: 0;
  min-height: 70px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  max-width: 1192px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  min-height: inherit;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 31px;
  font-weight: 750;
  letter-spacing: -2.05px;
  line-height: 1;
}
.brand-symbol {
  position: relative;
  width: 31px;
  height: 32px;
  display: inline-block;
  isolation: isolate;
}
.brand-symbol i {
  width: 19px;
  height: 15px;
  border: 2.8px solid var(--ink);
  background: var(--surface);
  transform: rotate(-30deg) skewX(25deg);
  border-radius: 3px;
  position: absolute;
  left: 5px;
  top: 12px;
}
.brand-symbol i:nth-child(2) {
  top: 8px;
}
.brand-symbol i:nth-child(3) {
  top: 4px;
  background: var(--ink);
}
.nav-divider,
.tool-divider {
  height: 22px;
  width: 1px;
  background: var(--line);
}
nav {
  display: flex;
  align-self: stretch;
  gap: 24px;
}
nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 520;
}
nav button[aria-current] {
  color: var(--ink);
  font-weight: 650;
}
nav button[aria-current]::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ink);
  border-radius: 3px 3px 0 0;
}
nav button:hover,
.help-button:hover {
  color: var(--ink);
}
.top-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-btn,
.help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 540;
  min-height: 35px;
}
.icon-btn {
  width: 35px;
}
.icon-btn:hover,
.quiet:hover {
  background: var(--soft);
  color: var(--ink);
}
.help-button {
  padding: 0 5px;
}
.tool-divider {
  height: 18px;
}
main,
footer {
  width: 100%;
  max-width: 1192px;
  margin-inline: auto;
  padding-inline: 40px;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-block: clamp(24px, 4vh, 48px);
}
main > .view {
  margin-block: auto;
  min-width: 0;
}
footer {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  padding-block: 18px max(18px, env(safe-area-inset-bottom));
}
.language-select select {
  min-height: 34px;
  width: 64px;
  padding: 4px 27px 4px 10px;
  background: var(--surface);
}
.language-select::after {
  right: 12px;
}
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.page-title {
  font-size: clamp(32px, 3.55vw, 48px);
  letter-spacing: -0.063em;
  line-height: 1.1;
  font-weight: 650;
}
.page-lead,
.flow-lead {
  color: var(--muted);
  font-size: 15px;
  margin-top: 9px;
}
.primary,
.secondary,
.quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 580;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
}
.primary {
  color: var(--ctaink);
  background: var(--cta);
  border-color: var(--cta);
  box-shadow: 0 1px 2px #0002;
}
.primary:hover {
  filter: brightness(1.18);
}
.dark .primary:hover {
  filter: brightness(0.9);
}
.secondary {
  border-color: var(--line);
  background: var(--surface);
}
.secondary:hover {
  background: var(--soft);
  border-color: var(--faint);
}
.quiet {
  font-weight: 530;
  color: var(--muted);
  min-height: 34px;
  padding: 6px 9px;
}
.create-link {
  padding: 12px 19px;
}
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(310px, 1fr);
  gap: 22px;
  align-items: start;
}
.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  box-shadow: var(--shadow);
}
.section-head {
  min-height: 60px;
  padding: 15px 23px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--inner);
}
.section-icon {
  color: var(--muted);
}
.card-body {
  padding: 21px 23px 23px;
}
.label,
.field > span:first-child,
.field > label,
.field > strong,
.fields label,
.field-label {
  font-size: 14px;
  font-weight: 590;
  line-height: 1.35;
}
.labelbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}
.optional,
.muted {
  color: var(--muted);
}
.optional {
  font-size: 12px;
  font-weight: 450;
}
.template-bar {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.template-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 36px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 550;
  background: var(--surface);
}
.template-chip:hover {
  background: var(--soft);
  color: var(--ink);
}
.template-chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--soft);
  color: var(--ink);
  box-shadow: inset 0 0 0 0.35px var(--ink);
}
.template-chip svg {
  width: 15px;
  height: 15px;
}
.formrule,
.rule-line {
  border-top: 1px solid var(--inner);
}
.formrule {
  margin: 20px 0;
}
.field,
.fields {
  display: flex;
  flex-direction: column;
}
.field {
  gap: 8px;
  min-width: 0;
}
.fields {
  gap: 15px;
}
.input,
select,
textarea,
.field input:not([type="checkbox"]),
.flow-panel input {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
  min-height: 41px;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.45;
  min-width: 0;
}
.input::placeholder,
textarea::placeholder {
  color: var(--faint);
  opacity: 1;
}
textarea {
  resize: vertical;
  min-height: 98px;
}
.control {
  position: relative;
  display: flex;
  align-items: center;
}
.control input {
  padding-right: 82px !important;
}
.inside {
  position: absolute;
  right: 5px;
  display: flex;
  align-items: center;
  gap: 1px;
}
.inside .icon-btn {
  width: 31px;
  min-height: 30px;
}
.secret-row input[type="password"] {
  letter-spacing: 0.14em;
}
.fieldheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fieldheader .icon-btn {
  width: 24px;
  min-height: 22px;
}
.add-field {
  margin: 12px 0 -3px -6px;
  color: var(--muted);
  font-size: 13px;
}
.add-field svg {
  width: 15px;
  height: 15px;
}
.dropzone {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 15px 10px;
  border: 1px dashed #bcbcc6;
  border-radius: 9px;
  background: var(--soft);
  font-size: 14px;
  min-height: 59px;
}
.dropzone > span:last-child {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.dropzone b {
  font-weight: 570;
}
.dropzone small {
  font-size: 13px;
  color: var(--muted);
}
.dropzone:hover,
.dropzone.drag {
  border-color: var(--focus);
  background: var(--tint);
}
.dropicon {
  color: var(--muted);
}
.file-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  padding: 9px 2px 0;
}
.file-row b {
  overflow-wrap: anywhere;
  min-width: 0;
}
.file-row small {
  color: var(--muted);
  white-space: nowrap;
}
.file-row button {
  margin-left: auto;
}
.cover {
  height: 162px;
  position: relative;
  background: #171820 var(--art) 50% 51% / cover no-repeat;
}
.cover-caption {
  position: absolute;
  left: 15px;
  top: 14px;
  border: 1px solid #7a798054;
  background: #14141be0;
  color: #f5f5f7;
  font-size: 11px;
  letter-spacing: 0.015em;
  font-weight: 530;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cover-caption svg {
  width: 13px;
  height: 13px;
}
.rules-card .section-head {
  min-height: 54px;
  padding: 14px 20px;
}
.rules-card .card-body {
  padding: 16px 20px 18px;
}
.rule-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.select-wrap {
  position: relative;
  display: block;
}
.select-wrap:after {
  content: "";
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 45%;
  width: 6px;
  height: 6px;
  border: solid var(--muted);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-50%) rotate(45deg);
}
select {
  appearance: none;
  padding-right: 29px;
  cursor: pointer;
}
.rule-line {
  margin: 17px 0 13px;
}
.switch-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.switch-line b {
  display: block;
  font-size: 14px;
  font-weight: 580;
}
.switch-line small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 21px;
  flex: none;
}
.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.track,
.thumb {
  position: absolute;
  border-radius: 50px;
}
.track {
  inset: 0;
  background: #a4a4af;
}
.thumb {
  width: 15px;
  height: 15px;
  top: 3px;
  left: 3px;
  background: white;
  box-shadow: 0 1px 2px #0003;
  transition: transform 0.15s;
}
.switch input:checked ~ .track {
  background: var(--tint-ink);
}
.switch input:checked ~ .thumb {
  transform: translateX(15px);
}
.switch input:focus-visible ~ .track {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
#accessField {
  margin-top: 12px;
}
.button-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.kicker {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: var(--muted);
}
.flow-shell {
  max-width: 660px;
  margin: 6px auto 0;
}
.flow-icon,
.model-icon {
  height: 43px;
  width: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tint);
  color: var(--tint-ink);
  border-radius: 11px;
}
.flow-title {
  font-size: clamp(29px, 4vw, 38px);
  letter-spacing: -0.055em;
  line-height: 1.12;
}
.flow-panel {
  margin: 16px 0;
}
.flow-fields {
  display: grid;
  gap: 12px;
}
.field-value {
  overflow-wrap: anywhere;
}
.info-line {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.info-line svg {
  flex: none;
}
.callout,
.error {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}
.callout {
  background: var(--soft);
  border: 1px solid var(--inner);
  color: var(--muted);
}
.error {
  background: var(--errorbg);
  color: var(--error);
  margin-top: 12px;
}
.code,
code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.91em;
}
#flow .primary,
#flow .secondary {
  margin-block: 2px;
}
#flow input[readonly] {
  font-family: "SFMono-Regular", Consolas, monospace;
}
#flow h2 {
  margin-bottom: 3px;
}
dialog {
  width: min(430px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 70px #1112;
}
dialog::backdrop {
  background: #15151e68;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.modal-head h2 {
  font-size: 21px;
}
.modal-copy {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}
.modal-copy p + p {
  margin-top: 10px;
}
#modalContent > .field {
  margin-bottom: 14px;
}
#modalContent .button-row {
  justify-content: flex-end;
  margin-top: 18px;
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  max-width: min(90%, 650px);
  width: max-content;
  padding: 10px 16px;
  background: var(--cta);
  color: var(--ctaink);
  font-size: 14px;
  border-radius: 9px;
  box-shadow: 0 4px 14px #19182229;
  pointer-events: none;
}
#toast:empty {
  display: none;
}
@media (min-width: 1450px) {
  .cover {
    height: 180px;
  }
}
@media (max-width: 880px) {
  .work-grid {
    grid-template-columns: minmax(0, 1.42fr) minmax(285px, 1fr);
    gap: 14px;
  }
  .top-inner,
  main,
  footer {
    padding-inline: 22px;
  }
  .section-head,
  .card-body {
    padding-inline: 17px;
  }
  .template-bar {
    gap: 5px;
  }
  .template-chip {
    padding-inline: 8px;
  }
  .dropzone > span:last-child {
    display: block;
  }
  .dropzone small {
    margin-left: 4px;
  }
}
@media (max-width: 710px) {
  .top { min-height: 60px; }
  .top-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 8px;
    padding-top: 6px;
  }
  nav {
    grid-row: 2;
    grid-column: 1 / -1;
    gap: 20px;
    min-height: 44px;
  }
  nav button { min-height: 44px; }
  .top-tools { grid-column: 2; grid-row: 1; }
  body.recipient-mode .top-inner { padding-block: 0; }
  .brand {
    font-size: 26px;
  }
  .brand-symbol {
    transform: scale(0.87);
    width: 27px;
  }
  .top-tools {
    gap: 5px;
  }
  .top-inner,
  main,
  footer {
    padding-inline: 16px;
  }
  .nav-divider,
  .tool-divider,
  .help-button > span:last-child {
    display: none;
  }
  .title-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 18px;
  }
  main {
    padding-top: 27px;
  }
  .page-lead {
    font-size: 14px;
  }
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cover {
    height: 145px;
  }
  .primary,
  .secondary {
    min-height: 42px;
  }
  .create-link {
    min-height: 39px;
    padding: 9px 12px;
  }
  .card-body {
    padding: 16px;
  }
  .section-head {
    min-height: 50px;
  }
  .formrule {
    margin: 16px 0;
  }
  .top-tools .icon-btn, .top-tools .help-button {
    min-width: 36px;
    min-height: 44px;
  }
  .input, textarea, .field input:not([type=checkbox]), .flow-panel input,
  .field select { font-size: 16px; }
  .language-select select { min-height: 40px; }
  .page-title {
    font-size: 34px;
  }
  .modal-head .icon-btn {
    min-width: 35px;
  }
}
@media (max-width: 420px) {
  nav button > [data-icon] {
    display: none;
  }
  .top-inner {
    gap: 12px;
  }
  nav {
    gap: 12px;
  }
  nav button {
    font-size: 13px;
  }
  .top-tools {
    gap: 1px;
  }
  .template-chip {
    font-size: 12px;
  }
  .brand {
    gap: 5px;
  }
  .dropzone small {
    display: inline;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

:root {
  --accent: var(--tint-ink);
  --danger: var(--error);
}
#flow .flow-icon {
  margin-bottom: 15px;
}
#flow .flow-lead {
  margin-bottom: 22px;
}
#flow .flow-panel .card-body {
  padding: 23px;
}
#flow .flow-hint {
  margin: 8px 0 21px;
  font-size: 13px;
}
#flow .copy-row {
  display: flex;
  gap: 8px;
}
#flow .copy-row input {
  flex: 1;
  min-width: 0;
}
#flow .info-line {
  justify-content: space-between;
  border-bottom: 1px solid var(--inner);
  padding: 11px 0;
  gap: 15px;
}
#flow .info-line > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
#flow .info-line strong {
  color: var(--ink);
  text-align: right;
  font-size: 13px;
}
#flow .callout,
#flow form,
#flow .flow-panel .button-row {
  margin-top: 18px;
}
#flow form .primary {
  margin-top: 12px;
}
#flow .field-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 5px 6px 5px 12px;
  border-radius: 8px;
  min-height: 42px;
}
#flow .flow-value-text {
  white-space: pre-wrap;
}
#flow .flow-value-tools {
  display: flex;
  gap: 4px;
}
#flow .flow-value-button {
  padding: 6px;
}
#flow .flow-danger {
  color: var(--error);
}
#flow .flow-footer {
  margin-top: 18px;
}
.field [aria-invalid="true"],
.input[aria-invalid="true"] {
  border-color: var(--error);
}
#models select.input {
  appearance: auto;
}
.field .select-wrap select {
  font-weight: 400;
}
#modalContent select {
  font-weight: 400;
}
@media (max-width: 480px) {
  .top-inner {
    gap: 10px;
  }
  .top-tools .help-button {
    padding-inline: 2px;
  }
  .brand {
    font-size: 25px;
  }
  #flow .flow-panel .card-body {
    padding: 16px;
  }
  #flow .copy-row {
    flex-wrap: wrap;
  }
}
@media (max-width: 359px) {
  .top-inner {
    padding-inline: 10px;
    gap: 8px;
  }
  .top-tools {
    gap: 0;
  }
  nav {
    gap: 9px;
  }
  .brand-symbol {
    display: none;
  }
}

#flow .gate-shell {
  max-width: 560px;
}
#flow .gate-cover {
  height: 155px;
  border-radius: 12px;
  margin-bottom: 23px;
  background-size: cover;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.history-item {
  display: grid;
  grid-template-columns: 44px minmax(130px, 1fr) minmax(
      140px,
      0.95fr
    ) 100px 88px;
  gap: 17px;
  align-items: center;
  min-height: 88px;
  padding: 17px 22px;
}

.history-item + .history-item {
  border-top: 1px solid var(--inner);
}

.history-icon {
  display: inline-grid;
  place-items: center;
  color: var(--tint-ink);
  background: var(--tint);
  border-radius: 10px;
  width: 40px;
  height: 40px;
}

.history-label,
.history-expiry {
  display: grid;
  gap: 3px;
}

.history-label span,
.history-expiry span {
  color: var(--muted);
  font-size: 13px;
}

.history-label strong,
.history-expiry strong {
  font-size: 14px;
  font-weight: 630;
}

.history-item .secondary {
  justify-self: end;
}

.history-empty {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 62px 24px;
}

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

.status {
  width: fit-content;
  border: 1px solid var(--inner);
  background: var(--soft);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 640;
  white-space: nowrap;
}

.status-active {
  border-color: transparent;
  background: var(--tint);
  color: var(--tint-ink);
}

.masked-link {
  border: 1px solid var(--inner);
  background: var(--soft);
  color: var(--muted);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  min-height: 43px;
}

@media (max-width: 640px) {
  .history-item {
    grid-template-columns: 36px minmax(120px, 1fr) auto;
    gap: 10px;
    padding: 15px;
  }

  .history-item .history-icon {
    width: 34px;
    height: 34px;
  }

  .history-expiry {
    grid-column: 2;
    grid-row: 2;
  }

  .history-item .secondary {
    grid-column: 3;
    grid-row: 2;
  }
}


.rule-options {
  margin-top: 16px;
}
.rule-option {
  border-top: 1px solid var(--inner);
  padding-block: 12px;
}
.rule-option:last-child {
  padding-bottom: 0;
}
.rule-option .rule-details {
  margin-top: 12px;
}
.rule-details textarea {
  min-height: 72px;
}
.rule-hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
#modal {
  width: min(550px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
}
#modalContent .modal-copy h3 {
  color: var(--ink);
  font-size: 16px;
  margin-top: 14px;
}
#modalContent .modal-copy ol {
  padding-left: 22px;
}
#modalContent .modal-copy li + li {
  margin-top: 7px;
}
body.recipient-mode .nav-divider,
body.recipient-mode .top nav {
  display: none;
}
body.recipient-mode main {
  max-width: 860px;
}
body.recipient-mode .flow-shell {
  margin-inline: auto;
}
#flow .recipient-shell {
  max-width: 620px;
}
#flow .recipient-art,
#flow .recipient-shell .gate-cover {
  border-radius: var(--rad);
  overflow: hidden;
  margin-bottom: 23px;
}
#flow .recipient-context {
  padding: 12px 14px;
  margin-block: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}
#flow .recipient-context p {
  font-size: 13px;
  margin-top: 6px;
}
#flow .recipient-section {
  margin-block: 16px;
}
#flow .flow-value-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 420px) {
  .top-inner, main, footer { padding-inline: 14px; }
  .language-select select { width: 54px; padding-left: 7px; }
  .top-tools .icon-btn, .top-tools .help-button { min-width: 34px; }
}
