/* Send Tools. Colours come from Public Tools' --pt-* variables, which the theme maps to light and dark. */
.se { --se-surface: var(--color-surface, #fff); display: grid; gap: 1rem; margin: 0 0 2.5rem; min-width: 0; }
.se [hidden] { display: none !important; }
.se *, .se *::before, .se *::after { box-sizing: border-box; }
.se svg { flex: none; }
.se .se-ico, .se .pt-btn svg { width: 1.1rem; height: 1.1rem; }
.se .pt-input, .se .pt-select { min-height: 2.75rem; }
.se .pt-field { margin: 0; }
.se .pt-btn--lg { min-height: 3rem; padding: .7rem 1.4rem; font-size: 1rem; }
.se-muted { color: var(--pt-muted); font-weight: 400; }
.se-small { font-size: .875rem; }
.se-help { margin: .3rem 0 0; font-size: .8125rem; color: var(--pt-muted); }
.se-mono { font-family: var(--pt-mono); }
.se-h { margin: 0; font-size: 1.125rem; font-weight: 700; color: var(--pt-ink); line-height: 1.3; }
.se-h3 { margin: .5rem 0 .25rem; font-size: 1rem; font-weight: 700; color: var(--pt-ink); }
.se-h:focus, .se-h:focus-visible { outline: none; }
.se-card { display: grid; gap: 1rem; padding: 1.25rem; border: 1px solid var(--pt-line); border-radius: var(--pt-radius); background: var(--se-surface); min-width: 0; }
.se-card > * { min-width: 0; margin: 0; }
.se-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.se-actions--end { align-self: end; }
.se-status:empty { display: none; }
.se-status { margin: 0; font-size: .9rem; }
.se-narrow { max-width: 16rem; }
.se-linkbtn { appearance: none; background: none; border: 0; padding: .25rem 0; font: inherit; font-size: .875rem; font-weight: 600; color: var(--pt-accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.se-linkbtn:focus-visible { outline: 2px solid var(--pt-accent); outline-offset: 2px; border-radius: 3px; }
.se-error { margin: .4rem 0 0; color: var(--pt-error); font-size: .875rem; font-weight: 600; }
.se-danger { color: var(--pt-error) !important; }

/* Drop zone */
.se-drop { position: relative; display: grid; justify-items: center; gap: .35rem; padding: 2.25rem 1rem; text-align: center; cursor: pointer; border: 2px dashed var(--pt-line-strong); border-radius: var(--pt-radius); background: var(--pt-soft); color: var(--pt-text); transition: border-color .15s, background-color .15s; }
.se-drop:hover, .se-drop.is-over { border-color: var(--pt-accent); background: var(--pt-accent-soft); }
.se-drop:focus-within { box-shadow: var(--pt-focus); border-color: var(--pt-accent); }
.se-drop--sm { padding: 1.5rem 1rem; }
.se-drop .se-drop__icon { width: 2.5rem; height: 2.5rem; color: var(--pt-accent); }
.se-drop__title { font-size: 1.05rem; font-weight: 700; color: var(--pt-ink); overflow-wrap: anywhere; }
.se-drop__hint { font-size: .875rem; color: var(--pt-muted); }
.se-drop__more { margin: -.5rem 0 0; text-align: center; }

/* File list */
.se-picked { display: grid; gap: .9rem; }
.se-picked__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.se-picked__total { font-size: .875rem; color: var(--pt-muted); font-variant-numeric: tabular-nums; }
.se-files { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--pt-line); border-radius: var(--pt-radius-sm); max-height: 22rem; overflow: auto; }
.se-files--dl { max-height: none; }
.se-files { grid-template-columns: minmax(0, 1fr); }
.se-file { min-width: 0; }
.se-file { display: flex; align-items: center; gap: .65rem; min-height: 2.75rem; padding: .45rem .75rem; border-top: 1px solid var(--pt-line); }
.se-file:first-child { border-top: 0; }
.se-file > .se-ico { width: 1.25rem; height: 1.25rem; color: var(--pt-muted); }
.se-file__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pt-ink); font-size: .9375rem; }
.se-file__size { flex: none; font-size: .8125rem; color: var(--pt-muted); font-variant-numeric: tabular-nums; }
.se-file__rm { flex: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: .4rem; background: none; color: var(--pt-muted); cursor: pointer; }
.se-file__rm:hover { background: var(--pt-soft); color: var(--pt-error); }
.se-file__rm:focus-visible { outline: 2px solid var(--pt-accent); outline-offset: 1px; }
.se-file--more { color: var(--pt-muted); font-size: .875rem; justify-content: center; }
.se-meter { height: .4rem; border-radius: 999px; background: var(--pt-line); overflow: hidden; margin-top: -.4rem; }
.se-meter span { display: block; height: 100%; width: 0; background: var(--pt-accent); transition: width .2s; }
.se-meter.is-over span { background: var(--pt-error); }
.se-warn { margin: 0; padding: .6rem .8rem; border-radius: var(--pt-radius-sm); background: var(--pt-error-soft); color: var(--pt-error); font-size: .875rem; font-weight: 600; }

/* Options */
.se-opts { display: grid; gap: .9rem; }
.se-opts__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .9rem; align-items: end; }
.se-pass { display: flex; gap: .5rem; }
.se-pass .pt-input { flex: 1 1 auto; min-width: 0; }
.se-terms { margin: 0; font-size: .8125rem; color: var(--pt-muted); }
.se-terms a { color: var(--pt-accent); }
.se .pt-textarea { min-height: 4.5rem; resize: vertical; }

/* Progress */
.se-bar { height: .75rem; border-radius: 999px; background: var(--pt-line); overflow: hidden; }
.se-bar span { display: block; height: 100%; width: 0; background: var(--pt-accent); border-radius: inherit; transition: width .25s ease; }
.se-progress { gap: .6rem; }
.se-progress__line { margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: baseline; font-variant-numeric: tabular-nums; }

/* Done */
.se-done__top, .se-dl__head, .se-ask { display: flex; gap: .9rem; align-items: flex-start; }
.se-done__top p, .se-dl__head p { margin: .2rem 0 0; }
.se-done__badge, .se-dl__badge { flex: none; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; background: var(--pt-accent-soft); color: var(--pt-accent); }
.se-done__badge { background: var(--pt-ok-soft); color: var(--pt-ok); }
.se-done__badge .se-ico, .se-dl__badge .se-ico { width: 1.5rem; height: 1.5rem; }
.se-linkrow { display: flex; gap: .5rem; }
.se-linkrow .pt-input { flex: 1 1 auto; min-width: 0; }
.se-link { font-family: var(--pt-mono); font-size: .9rem; }
.se-share { display: flex; flex-wrap: wrap; gap: .4rem; }
.se-qr { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.se-qr canvas { width: 9rem; height: 9rem; border-radius: .5rem; border: 1px solid var(--pt-line); background: #fff; image-rendering: pixelated; }
.se-qr__text { display: grid; gap: .35rem; margin: 0; font-size: .9rem; }
.se-qr__text p { margin: 0; }

/* Notes */
.se-note { display: flex; gap: .55rem; align-items: flex-start; margin: 0; padding: .7rem .85rem; border-radius: var(--pt-radius-sm); background: var(--pt-soft); color: var(--pt-text); font-size: .875rem; }
.se-note .se-ico { width: 1.2rem; height: 1.2rem; margin-top: .05rem; color: var(--pt-muted); }
.se-note--ok { background: var(--pt-ok-soft); color: var(--pt-ok); font-weight: 600; }
.se-note--ok .se-ico { color: var(--pt-ok); }
.se-note--warn { background: var(--pt-warn-soft); color: var(--pt-warn); font-weight: 600; }
.se-note--warn .se-ico { color: var(--pt-warn); }
.se-private { display: flex; gap: .5rem; align-items: flex-start; margin: 0; font-size: .8125rem; color: var(--pt-muted); }
.se-private .se-ico { width: 1rem; height: 1rem; color: var(--pt-ok); margin-top: .1rem; }

/* Recent */
.se-recent__list { list-style: none; margin: 0; padding: 0; display: grid; }
.se-recent__item { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; padding: .7rem 0; border-top: 1px solid var(--pt-line); }
.se-recent__item:first-child { border-top: 0; padding-top: 0; }
.se-recent__main { display: grid; gap: .1rem; min-width: 0; flex: 1 1 14rem; }
.se-recent__title { font-weight: 700; color: var(--pt-ink); overflow-wrap: anywhere; }
.se-recent__info { font-size: .8125rem; color: var(--pt-muted); }
.se-recent__acts { display: flex; flex-wrap: wrap; gap: .4rem; }

/* Download page */
.se-dl .se-card { gap: 1.1rem; }
.se-msg { margin: 0; padding: .85rem 1rem; border-left: 3px solid var(--pt-accent); border-radius: 0 var(--pt-radius-sm) var(--pt-radius-sm) 0; background: var(--pt-soft); }
.se-msg figcaption { font-size: .8125rem; font-weight: 600; color: var(--pt-muted); margin-bottom: .25rem; }
.se-msg blockquote, .se-msg__quote { margin: 0; color: var(--pt-ink); white-space: pre-wrap; overflow-wrap: anywhere; font-style: normal; }
.se-msg__quote { padding: .6rem .85rem; border-left: 3px solid var(--pt-accent); background: var(--pt-soft); border-radius: 0 var(--pt-radius-sm) var(--pt-radius-sm) 0; }
.se-lock { justify-items: start; }
.se-lock__icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 999px; background: var(--pt-accent-soft); color: var(--pt-accent); }
.se-lock__icon .se-ico { width: 1.5rem; height: 1.5rem; }
.se-lock__form { display: grid; gap: .4rem; width: 100%; max-width: 28rem; }
.se-report { border: 1px solid var(--pt-line); border-radius: var(--pt-radius); background: var(--se-surface); }
.se-report summary { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; cursor: pointer; font-size: .875rem; font-weight: 600; color: var(--pt-muted); list-style: none; }
.se-report summary::-webkit-details-marker { display: none; }
.se-report summary .se-ico { width: 1rem; height: 1rem; }
.se-report[open] summary { border-bottom: 1px solid var(--pt-line); }
.se-report__form { display: grid; gap: .6rem; padding: 1rem; }
.se-report__reasons { display: grid; gap: .35rem; border: 0; margin: 0; padding: 0; }
.se-radio, .se-check { display: inline-flex; align-items: center; gap: .5rem; min-height: 2rem; font-size: .9375rem; color: var(--pt-text); cursor: pointer; }
.se-radio input, .se-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--pt-accent); }
.se-promo { display: flex; gap: .5rem; align-items: center; justify-content: center; margin: 0; font-size: .9rem; color: var(--pt-muted); text-align: center; }
.se-promo .se-ico { color: var(--pt-accent); }
.se-ask__note { margin: .5rem 0 0; white-space: pre-wrap; color: var(--pt-text); }
.se-ask p { margin: 0; }
.se-upload { gap: .8rem; }
.se-upload__head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: flex-start; justify-content: space-between; }
.se-upload__head .se-h3 { margin: 0; }
.se-upload__head p { margin: .1rem 0 0; }
.se-empty { color: var(--pt-muted); text-align: center; }
.se-gone { display: grid; gap: 1rem; justify-items: start; margin: 0 0 2rem; }
.se-gone__text { margin: 0; color: var(--pt-text); max-width: 40rem; }

/* Secret */
.se-secret__text { font-family: var(--pt-mono); font-size: .9375rem; min-height: 8rem; }

/* Tabs (checksum, zip) */
.se-seg { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .25rem; border-radius: .65rem; background: var(--pt-soft); border: 1px solid var(--pt-line); justify-self: start; }
.se-seg [role="tab"] { appearance: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 2.5rem; padding: .4rem .9rem; border: 0; border-radius: .45rem; background: none; font: inherit; font-size: .9375rem; font-weight: 600; color: var(--pt-muted); cursor: pointer; }
.se-seg [role="tab"][aria-selected="true"] { background: var(--se-surface); color: var(--pt-ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .15); }
.se-seg [role="tab"]:focus-visible { outline: none; box-shadow: var(--pt-focus); }
.se-algs { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; border: 0; margin: 0; padding: 0; }
.se-algs legend { width: 100%; margin-bottom: .25rem; }

/* Checksum results */
.se-hashes { display: grid; gap: .6rem; margin: 0; }
.se-hash { display: grid; gap: .2rem; padding: .6rem .75rem; border: 1px solid var(--pt-line); border-radius: var(--pt-radius-sm); }
.se-hash__alg { font-size: .8125rem; font-weight: 700; color: var(--pt-muted); }
.se-hash__val { display: flex; gap: .5rem; align-items: center; margin: 0; }
.se-hash__val code { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; word-break: break-all; font-size: .875rem; color: var(--pt-ink); background: none; padding: 0; }
.se-hash.is-match { border-color: var(--pt-ok); background: var(--pt-ok-soft); }
.se-hash.is-miss { border-color: var(--pt-error); background: var(--pt-error-soft); }
.se-verdict { margin: 0; padding: .75rem .9rem; border-radius: var(--pt-radius-sm); font-weight: 700; background: var(--pt-soft); color: var(--pt-ink); }
.se-verdict.is-match { background: var(--pt-ok-soft); color: var(--pt-ok); }
.se-verdict.is-miss { background: var(--pt-error-soft); color: var(--pt-error); }
.se-zdone { display: grid; gap: .75rem; }

/* Phones */
@media (max-width: 40rem) {
  .se .pt-input, .se .pt-select, .se .pt-textarea { font-size: 16px; }
  .se-card { padding: 1rem; }
  .se-drop { padding: 1.75rem .75rem; }
  .se-linkrow { flex-direction: column; }
  .se-linkrow .pt-btn { width: 100%; }
  .se-actions .pt-btn--lg { flex: 1 1 100%; }
  .se-hash__val { flex-direction: column; align-items: stretch; }
  .se-seg { justify-self: stretch; }
  .se-seg [role="tab"] { flex: 1 1 auto; justify-content: center; }
}
