/* The practice route has Leafy's own compact application header. */
.staging-selection .site-header,
.staging-selection .staging-banner,
.staging-selection .site-footer { display: none }
.extension-preview.selection-page {
  --dock-height: 135px;
  min-height: 100dvh;
  padding-bottom: calc(var(--dock-height) + 24px);
  background: var(--bg);
  font-size: 13px;
}
:root .extension-preview.selection-page { color-scheme: inherit }
.selection-page .leafy-heading {
  display: flex; align-items: center; gap: 16px;
  max-width: 1140px; margin: auto; min-height: 64px; padding: 0 40px;
  border-bottom: 1px solid var(--border); color: var(--muted);
}
.selection-page .leafy-logo { display: inline-flex; align-items: center }
.selection-page .leafy-logo img { width: 114px; height: 54px; object-fit: contain }
.selection-page .leafy-logo .logo-dark,
:root[data-color-mode=dark] .selection-page .leafy-logo .logo-light { display: none }
:root[data-color-mode=dark] .selection-page .leafy-logo .logo-dark { display: block }
@media(prefers-color-scheme:dark){
  :root:not([data-color-mode=light]) .selection-page .leafy-logo .logo-light { display: none }
  :root:not([data-color-mode=light]) .selection-page .leafy-logo .logo-dark { display: block }
}
.selection-page .leafy-heading>span { padding-left: 18px; border-left: 1px solid var(--border); white-space: nowrap }
.selection-page .tour-return { margin-left: auto; text-underline-offset: 3px; font-size: 12px }
.selection-page .leafy-preview-nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 4px 16px; margin-inline-start: auto; font-size: 12px;
}
.extension-preview.selection-page .leafy-preview-nav .preview-website-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px;
  border: 1px solid currentColor; border-radius: 8px; background: var(--button);
  color: var(--button-text); font-weight: 650; text-decoration: none;
}
.extension-preview.selection-page .leafy-preview-nav .preview-website-link:hover { background: var(--button-hover); }
.selection-page .selection-layout {
  display: grid; grid-template-columns: minmax(0,1fr) 320px; align-items: start; gap: 36px;
  width: min(1060px, calc(100% - 64px)); margin: 28px auto 0;
}
.selection-page .conversation { min-width: 0 }
.selection-page .conversation-heading { margin-bottom: 22px }
.selection-page .conversation-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted) }
.selection-page .conversation-meta img { width: 17px; height: 17px; object-fit: contain }
.extension-preview.selection-page .conversation-heading .conversation-title { font-family: inherit; font-weight: 600; font-size: 27px; line-height: 1.2; letter-spacing: -.7px; margin: 12px 0 7px }
.selection-page .conversation-heading p,
.selection-page .view-caption,
.selection-page .practice-note,
.selection-page .guidance,
.selection-page .package-options p { color: var(--muted) }
.selection-page .selection-controls { padding: 12px 0; border-block: 1px solid var(--border) }
.selection-page .view-search,
.selection-page .view-switch,
.selection-page .message-search,
.selection-page .selection-toolbar,
.selection-page .selection-toolbar label,
.selection-page .view-caption { display: flex; align-items: center }
.selection-page .view-search { justify-content: space-between; gap: 12px }
.selection-page .message-search { width: min(240px,48%); gap: 8px; padding: 0 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg) }
.selection-page .message-search:focus-within { outline: 2px solid var(--focus); outline-offset: 1px }
.extension-preview.selection-page .message-search input { min-width: 0; width: 100%; min-height: 38px; padding: 5px 0; background: transparent; border: none; outline: none; font-size: 12px }
.extension-preview.selection-page .message-search svg,
.extension-preview.selection-page .view-switch svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round }
.selection-page .view-switch { padding: 3px; gap: 2px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel) }
.extension-preview.selection-page .view-switch button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 77px;
  min-height: 32px; padding: 3px 7px; border: 0; border-radius: 30px; background: transparent; font-size: 12px;
}
.extension-preview.selection-page .view-switch [aria-pressed=true] { background: var(--button); color: var(--button-text); font-weight: 650 }
.extension-preview.selection-page input[type=checkbox] {
  appearance: none; display: inline-grid; place-content: center; flex: 0 0 auto; margin: 0;
  width: 17px; height: 17px; min-height: 0; padding: 0; border: 1.5px solid var(--muted); border-radius: 5px; background: var(--bg);
}
.extension-preview.selection-page input[type=checkbox]:is(:checked,:indeterminate) { border-color: var(--focus); background: var(--focus) }
.extension-preview.selection-page input[type=checkbox]:checked::before { content: ''; width: 5px; height: 9px; transform: translateY(-1px) rotate(45deg); border: solid var(--bg); border-width: 0 2px 2px 0 }
.extension-preview.selection-page input[type=checkbox]:indeterminate::before { content: ''; width: 8px; height: 2px; background: var(--bg) }
.extension-preview.selection-page input:disabled { opacity: .5 }
@media(forced-colors:active){.extension-preview.selection-page input[type=checkbox] { appearance: auto }.extension-preview.selection-page input[type=checkbox]::before { display: none }}
.selection-page .selection-toolbar { position: relative; flex-wrap: wrap; gap: 6px; margin-top: 8px }
.extension-preview.selection-page .selection-toolbar button,
.selection-page .selection-toolbar summary,
.selection-page .selection-toolbar>label,
.extension-preview.selection-page .view-caption button,
.extension-preview.selection-page .quick-shortcuts>button,
.extension-preview.selection-page #open-options,
.selection-page .dock-copy summary { min-height: 36px; padding: 7px 11px; border: 0; background: transparent; font-size: 12px; cursor: pointer }
.selection-page .selection-toolbar label { gap: 9px }
.selection-page summary { cursor: pointer; list-style: none }
.selection-page summary::-webkit-details-marker { display: none }
.selection-page summary>span[aria-hidden=true] { margin-left: 6px }
.selection-page #selected-only { margin-left: auto }
.extension-preview.selection-page #selected-only[aria-pressed=true] { background: var(--selected); box-shadow: inset 0 0 0 1px var(--selected-border) }
.selection-page .selection-menu,
.selection-page .copy-menu-body { position: absolute; z-index: 5; width: min(300px,calc(100vw - 32px)); padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); box-shadow: 0 8px 24px #15201820 }
.selection-page .selection-menu { top: 100%; left: 12% }
.selection-page .selection-menu>button,
.selection-page .copy-menu-body button { display: block; width: 100%; text-align: left }
.selection-page .range-form { display: flex; align-items: end; gap: 6px; border-top: 1px solid var(--border); padding-top: 8px }
.selection-page .range-form label { flex: 1; min-width: 0; display: grid; gap: 4px; font-size: 11px; color: var(--muted) }
.selection-page .range-form input { width: 100%; min-height: 32px; padding: 4px; border: 1px solid var(--border); border-radius: 5px; background: var(--bg) }
.selection-page #range-error { color: var(--error); font-size: 12px }
.selection-page .view-caption { justify-content: space-between; min-height: 36px; font-size: 12px }
.selection-page .message { display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: start; gap: 12px; padding: 0 8px; border-radius: 10px; border-bottom: 1px solid var(--border) }
.selection-page .message:nth-child(4n+1), .selection-page .message:nth-child(4n+2) { background: color-mix(in srgb,var(--panel) 55%,var(--bg)) }
.extension-preview.selection-page .message>input { margin-top: 12px }
.extension-preview.selection-page .message-line {
  display: grid; width: 100%; grid-template-columns: 26px 22px 73px minmax(0,1fr) 12px; align-items: center; gap: 8px;
  min-height: 40px; padding: 4px 2px 4px 0; text-align: left; border: 0; background: transparent;
}
.extension-preview.selection-page .message-line:hover:not(:disabled) { background: transparent }
.selection-page .message-number,
.selection-page .sender-name { font-size: 11px; color: var(--muted) }
.selection-page .sender-logo { display: inline-grid; place-items: center; width: 20px; height: 20px; background: var(--selected); color: var(--muted); border-radius: 5px; font-size: 11px }
.selection-page .sender-logo:has(img) { background: var(--bg); border: 1px solid var(--border) }
.selection-page .sender-logo img { width: 14px; height: 14px; object-fit: contain }
.selection-page .message-excerpt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.selection-page .message-chevron { width: 8px; height: 8px; border: solid var(--muted); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg) }
.selection-page .message-line[aria-expanded=true] .message-chevron { transform: rotate(135deg) }
.selection-page .message-body { padding: 4px 12px 16px 0; overflow-wrap: anywhere; line-height: 1.6 }
.selection-page .message-body :is(p,ul,h3,table)+* { margin-top: 9px }
.selection-page .message-body h3 { font-size: 15px }
.selection-page .message-body :is(th,td) { text-align: start; padding: 5px 8px; border-bottom: 1px solid var(--border) }
.selection-page [data-view=compact] .message-line,
.selection-page [data-view=full] .message-line { grid-template-columns: 26px 22px 1fr 12px; }
.selection-page [data-view=compact] .message-excerpt { grid-row: 2; grid-column: 1/-1; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 5px }
.selection-page [data-view=compact] button[aria-expanded=true] .message-excerpt,
.selection-page [data-view=full] :is(.message-excerpt,.message-chevron) { display: none }
.extension-preview.selection-page [data-view=full] .message-line { opacity: 1; cursor: default }
.extension-preview.selection-page .practice-note { margin-top: 18px; font-size: 12px }

.selection-page #export-rail { position: sticky; top: 12px; min-width: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); overflow: hidden }
.selection-page .export-card { max-height: max(200px,calc(100dvh - var(--dock-height) - 94px)); padding: 17px 18px 40px; overflow: auto; scrollbar-width: thin; overscroll-behavior: contain }
.selection-page .rail-caption { color: var(--muted); font-size: 11px; letter-spacing: 2px; text-transform: uppercase }
.selection-page .destination-tabs { display: flex; gap: 18px; align-items: stretch; margin: 14px 0; border-bottom: 1px solid var(--border) }
.selection-page .destination-tabs>* { display: inline-flex; align-items: center; gap: 7px; padding: 8px 0 9px; margin-bottom: -1px; text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 650 }
.selection-page .destination-tabs [aria-current] { border-bottom: 2px solid var(--focus); color: var(--text) }
.selection-page .destination-tabs img { width: 17px; height: 17px }
.selection-page .format-foldout>summary,
.selection-page .selection-options>summary { position: relative; padding: 11px 25px 11px 0; font-size: 14px; font-weight: 650 }
.selection-page .format-foldout>summary::after,
.selection-page .selection-options>summary::after,
.selection-page .select-field>span::after { content: ''; width: 7px; height: 7px; position: absolute; right: 7px; top: 50%; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none }
.selection-page details[open]>summary::after { transform: translateY(-25%) rotate(225deg) }
.selection-page .format-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin: 3px 0 12px; color: var(--muted); font-size: 12px }
.selection-page .format-heading p { flex-basis: 100% }
.extension-preview.selection-page .format-heading button,
.extension-preview.selection-page .edit-cards,
.extension-preview.selection-page #select-all-visible,
.extension-preview.selection-page #reset-visible { min-height: 34px; padding: 4px 0; border: 0; background: transparent; color: var(--muted); text-underline-offset: 3px; text-decoration: underline }
.selection-page .selection-formats { display: grid; gap: 6px }
.selection-page .selection-formats label { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg); font-weight: 600; cursor: pointer }
.selection-page .selection-formats label:has(:checked) { background: var(--selected); border-color: var(--selected-border) }
.extension-preview.selection-page .selection-formats input { margin-left: auto }
.selection-page #selection-formats { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)) }
.selection-page #selection-formats label {
  position: relative; flex-direction: column; justify-content: center; gap: 4px;
  min-height: 65px; padding: 7px 1px 4px; font-size: 10px; font-weight: 500;
}
.selection-page #selection-formats input { position: absolute; opacity: 0 }
.selection-page #selection-formats label:focus-within { outline: 2px solid var(--focus); outline-offset: 2px }
.selection-page #selection-formats label:has(:checked)::after {
  content: ''; position: absolute; top: 6px; right: 6px; width: 7px; height: 4px;
  border: solid var(--text); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg);
}
.selection-page #no-formats { grid-column: 1/-1 }
.extension-preview.selection-page .guidance { margin-top: 10px; font-size: 12px; line-height: 1.5 }
.extension-preview.selection-page .edit-cards { display: block; margin: 8px 0 0 auto; font-size: 12px }
.selection-page .package-options { margin: 0 0 12px; padding: 0 0 14px; border-bottom: 1px solid var(--border) }
.selection-page .selection-options { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border) }
.selection-page .package-options label,
.selection-page .selection-options fieldset label,
.selection-page .dock-package label { display: flex; align-items: center; gap: 8px; margin: 9px 0; }
.selection-page .package-options p { font-size: 12px }
.selection-page .selection-options fieldset { margin: 8px 0; padding: 0; border: 0 }
.selection-page .selection-options legend { font-weight: 600 }
.selection-page .select-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 }
.selection-page .select-field>span { position: relative }
.selection-page .select-field>span::after { right: 13px }
.extension-preview.selection-page .select-field select { appearance: none; padding: 7px 34px 7px 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px }
.extension-preview.selection-page #more-export-options {
  position: absolute; inset: auto 0 0; width: 100%; min-height: 40px;
  border: 0; border-radius: 0; background: var(--panel); color: var(--focus); font-size: 12px;
}
.extension-preview.selection-page #more-export-options::before {
  content: ''; position: absolute; inset: auto 0 100%; height: 24px;
  background: linear-gradient(transparent, var(--panel)); pointer-events: none;
}
.extension-preview.selection-page #more-export-options:focus-visible { outline-offset: -3px; }
.selection-page .export-card:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; border-radius: 16px }
.selection-page .export-card-actions { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; padding: 4px 24px 12px; background: var(--bg); border-top: 1px solid var(--border); box-shadow: 0 -5px 22px #15201805 }
.selection-page .dock-package { display: flex; align-items: center; flex-wrap: wrap; gap: 0 24px; padding: 4px 0; border-bottom: 1px solid var(--border); font-size: 11px }
.selection-page .export-bar-inner { display: flex; align-items: center; gap: 12px; padding: 12px 0 2px; }
.selection-page .export-bar-summary { display: grid; min-width: 140px }
.selection-page .export-bar-summary>span,
.selection-page .quick-shortcuts>span { color: var(--muted); font-size: 11px }
.selection-page .quick-shortcuts { display: flex; align-items: center; gap: 12px; margin: 0 auto }
.selection-page #quick-export-formats { display: flex; gap: 4px }
.extension-preview.selection-page #quick-export-formats button { display: grid; justify-items: center; gap: 3px; padding: 2px 3px; border: 0; background: transparent; font-size: 11px }
.selection-page .dock-copy { position: relative }
.selection-page .dock-copy summary,
.extension-preview.selection-page #open-options,
.extension-preview.selection-page .quick-shortcuts>button { color: var(--muted); white-space: nowrap }
.selection-page .copy-menu-body { right: 0; bottom: calc(100% + 10px) }
.selection-page .copy-menu-body p { color: var(--muted); font-size: 12px }
.selection-page .copy-menu-body button { margin: 5px 0 }
.extension-preview.selection-page #export-selected { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; min-width: 150px; padding-inline: 15px; border-radius: 10px }
.selection-page .download-icon { width: 16px; height: 16px; background: currentColor; mask: url("assets/popup-download.svg") center/contain no-repeat; font-size: 0 }
.extension-preview.selection-page dialog { width: min(460px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); color: var(--text); overflow: hidden }
.selection-page dialog[open] { display: flex; flex-direction: column }
.selection-page dialog::backdrop { background: #12221970 }
.selection-page .dialog-head,
.selection-page .dialog-foot { display: flex; align-items: center; gap: 16px; flex: none; padding: 12px 18px }
.selection-page .dialog-head { border-bottom: 1px solid var(--border); justify-content: space-between }
.extension-preview.selection-page .dialog-head h2 { font-family: inherit; font-size: 19px }
.extension-preview.selection-page .dialog-head button { font-size: 22px; line-height: 1; border: 0; background: transparent }
.selection-page .dialog-foot { border-top: 1px solid var(--border) }
.selection-page .dialog-foot .primary { margin-left: auto }
.selection-page .dialog-body { min-height: 0; padding: 16px 18px; overflow: auto; overscroll-behavior: contain }
.selection-page #visibility-list { margin-top: 12px }
.selection-page #options-body .export-card { max-height: none; overflow: visible; padding: 0 }
.selection-page #options-body .rail-caption { display: none }
.selection-page #options-body .destination-tabs { margin-top: 0 }

@media(max-width:1050px){
  .selection-page .selection-layout { width: calc(100% - 48px); grid-template-columns: minmax(0,1fr) 290px; gap: 24px }
  .selection-page .quick-shortcuts { gap: 5px }
  .selection-page .export-bar-inner { gap: 6px }
  .selection-page .quick-shortcuts>span { display: none }
}
@media(max-width:850px),(max-height:550px){
  .selection-page .selection-layout { display: block; width: min(704px,calc(100% - 32px)); margin-top: 20px }
  .selection-page #export-rail { display: none }
  .selection-page .export-card-actions { padding: 2px 16px 9px }
  .selection-page .dock-package { display: none }
  .selection-page .export-bar-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 10px; padding-top: 6px }
  .selection-page .export-bar-summary { grid-column: 1; grid-row: 1; min-width: 0 }
  .selection-page .quick-shortcuts { grid-column: 1; grid-row: 2; margin: 0; gap: 3px }
  .selection-page #open-options { grid-column: 2; grid-row: 1 }
  .selection-page .dock-copy { grid-column: 2; grid-row: 2 }
  .selection-page #export-selected { grid-column: 3; grid-row: 1/3 }
}
@media(max-width:620px){
  .selection-page .leafy-heading { min-height: 54px; padding: 0 14px; gap: 9px }
  .staging-selection .leafy-heading {
    flex-wrap: wrap; row-gap: 0; padding-bottom: 8px;
  }
  .selection-page .leafy-preview-nav { flex-basis: 100%; }
  .selection-page .leafy-logo img { width: 83px; height: 42px }
  .selection-page .leafy-heading>span { padding-left: 9px; font-size: 11px }
  .selection-page .tour-return { font-size: 11px }
  .selection-page .selection-layout { margin-top: 17px }
  .selection-page .conversation-heading { margin-bottom: 16px }
  .extension-preview.selection-page .conversation-heading .conversation-title { font-size: 24px; margin: 7px 0 4px }
  .selection-page .view-search { flex-wrap: wrap; gap: 8px }
  .selection-page .message-search { width: 100% }
  .selection-page .view-switch { width: fit-content }
  .extension-preview.selection-page .view-switch button { min-width: 64px }
  .selection-page .selection-toolbar { gap: 0 }
  .extension-preview.selection-page .selection-toolbar button,
  .selection-page .selection-toolbar summary,
  .selection-page .selection-toolbar>label { min-height: 34px; padding: 6px; font-size: 11px }
  .selection-page .selection-menu { left: 0; max-width: 100% }
  .selection-page .message { grid-template-columns: 18px minmax(0,1fr); gap: 6px; padding: 0 6px }
  .extension-preview.selection-page .message-line { grid-template-columns: 20px 19px 0 minmax(0,1fr) 10px; gap: 5px }
  .selection-page .sender-name { overflow: hidden }
  .selection-page [data-view=compact] .message-line,
  .selection-page [data-view=full] .message-line { grid-template-columns: 20px 19px 1fr 10px }
  .selection-page .export-card-actions { max-height: 40dvh; overflow-y: auto; overscroll-behavior: contain; padding-inline: 12px }
  .selection-page .dock-package { display: grid; justify-items: start; gap: 0 }
  .selection-page .dock-package label { margin: 0; min-height: 32px }
  .selection-page .export-bar-inner { grid-template-columns: minmax(0,1fr) auto; gap: 4px 6px }
  .selection-page .export-bar-summary { grid-column: 1; grid-row: 1; font-size: 12px }
  .selection-page .export-bar-summary>span { font-size: 10px }
  .selection-page #open-options { grid-column: 2; grid-row: 1; justify-self: end }
  .selection-page .quick-shortcuts { grid-column: 1/-1; grid-row: 3; justify-content: center }
  .selection-page .dock-copy { grid-column: 1/-1; grid-row: 4; justify-self: center }
  .selection-page .copy-menu-body { left: 0; right: auto }
  .extension-preview.selection-page #export-selected { grid-column: 1/-1; grid-row: 2; width: 100%; min-height: 46px; font-size: 13px }
  .extension-preview.selection-page #quick-export-formats button { min-width: 35px; font-size: 10px }
  .extension-preview.selection-page #quick-export-formats .format-mark { width: 19px; height: 21px }
  .selection-page .quick-shortcuts>span { display: inline; font-size: 10px }
}
@media(max-width:380px){.selection-page .quick-shortcuts>span { display: none }}

.extension-preview.selection-page #search-note { margin-top: 9px; font-size: 12px; color: var(--muted) }
.selection-page .selection-status {
  display: flex; gap: 8px; align-items: stretch; justify-content: space-between; margin-top: 5px;
  border: 1px solid var(--border); border-left: 2px solid var(--focus); background: var(--panel); border-radius: 6px;
}
.extension-preview.selection-page #selection-feedback { align-self: center; padding: 8px 12px; font-size: 12px }
.extension-preview.selection-page #dismiss-status { flex: 0 0 42px; min-height: 42px; padding: 5px; border-radius: 6px; font-size: 20px }

:root[data-format-icon-style="hybrid2"] .selection-page .format-mark[data-icon="json"]::before { background-image: url("assets/json-classic.svg"); }

/* The homepage dialog and standalone route share the same Leafy workspace. */
.leafy-preview-dialog {
  box-sizing: border-box; position: fixed; inset: 0; margin: auto;
  width: min(1240px, calc(100vw - 40px)); height: calc(100dvh - 40px);
  max-width: none; max-height: none; padding: 0; overflow: hidden; contain: layout;
  border: 1px solid var(--border); border-radius: 18px; background: var(--bg); color: var(--text);
}
.leafy-preview-dialog::backdrop { background: #101913a8; }
:root:has(.leafy-preview-dialog[open]) { overflow: hidden; }
.leafy-preview-dialog .selection-page { height: 100%; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.leafy-preview-dialog .leafy-heading { position: sticky; top: 0; z-index: 6; background: var(--bg); }
.leafy-preview-dialog .selection-page [data-close-leafy-preview] {
  display: inline-flex; align-items: center; gap: 7px;
  flex-shrink: 0; min-height: 44px; padding: 6px 12px; font-size: 13px; white-space: nowrap;
  border-color: currentColor;
}
.leafy-preview-dialog [data-close-leafy-preview]>span { font-size: 20px; line-height: 1; }
.leafy-preview-dialog .selection-page #export-rail { top: 76px; }
.leafy-preview-dialog .export-card { max-height: max(160px, calc(100dvh - var(--dock-height) - 134px)); }
.leafy-preview-dialog #options-body .export-card { max-height: none; }
.selection-page .export-card .rail-title { font-family: inherit; font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: 0; }
@media (max-width: 620px), (max-height: 550px) {
  .leafy-preview-dialog { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
}
@media (max-width: 350px) {
  .leafy-preview-dialog .leafy-heading { gap: 6px; padding-inline: 10px; }
  .leafy-preview-dialog .leafy-logo img { width: 70px; }
}
