/* SV Transfer's card: clear, light glass over the flag's cobalt and its
   moving current (Esco, 2026-09-29: "all the way see-through ... a little
   bit of bend ... a lighter mood"). The technique is FlowOps Book's glass
   spec of 2026-09-16 ("Book, In Glass"): an SVG lens -- feTurbulence noise
   driving an feDisplacementMap -- inside backdrop-filter, a light blur and
   a touch of saturation, a hairline rim brighter on top. Here the pane has
   almost no fill of its own, so it reads as glass rather than a panel, and
   the type is white on the blue behind it. Controls sit ON the glass as
   near-opaque white objects, so what a person types is always dark on white.

   The lens (#lens) is an inline <svg> on each page that loads this file.
   Chromium bends the backdrop through it; WebKit (iOS Safari) ignores a
   url() inside backdrop-filter and draws the same pane without the bend,
   which is the fallback, not a fault. Loaded after enviar.css / public.css.
   Colours from /tokens.css only. */

/* The hidden attribute always wins (bug fixed 2026-10-02, seen live): a
   class that sets display -- .field { display: block } in enviar.css -- beat
   the browser's own [hidden] rule, so /enviar/ kept showing "Su correo" and
   the robot check to a signed-in Sender. Every public page loads this file;
   /t/page.css and /panel/panel.css carry the same line. */
[hidden] {
  display: none !important;
}

.card {
  --glass-blur: 2px;
  --glass-sat: 125%;
  --text: white;
  --muted: rgb(255 255 255 / 0.82);
  --line: rgb(255 255 255 / 0.3);
  --paper: rgb(255 255 255 / 0.14);

  color-scheme: dark;
  color: white;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.06));
  backdrop-filter: url(#lens) blur(var(--glass-blur)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid rgb(255 255 255 / 0.28);
  border-top-color: rgb(255 255 255 / 0.6);
  /* Edge from a hairline and an inset top highlight; the drop shadow is
     tinted with the cobalt, never black. */
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.35) inset,
    0 0 0 0.5px rgb(255 255 255 / 0.2) inset,
    0 30px 70px -28px color-mix(in srgb, var(--key-deep) 70%, black);
  /* Only for legibility over the current's white band. */
  text-shadow: 0 1px 1px color-mix(in srgb, var(--key-deep) 35%, transparent);
}

/* Objects on the glass: white, so they read as held by it. */
.card input[type="text"],
.card input[type="email"],
.card textarea,
.card .link-box input {
  background: rgb(255 255 255 / 0.96);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 11px 14px;
  min-height: 44px;
  color: color-mix(in srgb, black 88%, var(--key));
  text-shadow: none;
  box-shadow: inset 0 1px 2px color-mix(in srgb, var(--key-deep) 18%, transparent);
}
.card input::placeholder,
.card textarea::placeholder { color: #667089; } /* about 4.6:1 on the white */
/* A cobalt ring inside a white halo: shows on the glass and on the white. */
.card input:focus-visible,
.card textarea:focus-visible {
  outline: none;
  border-color: transparent;
  box-shadow:
    inset 0 1px 2px color-mix(in srgb, var(--key-deep) 18%, transparent),
    0 0 0 2px var(--key),
    0 0 0 5px rgb(255 255 255 / 0.75);
  transition: none;
}

.card .primary,
.card .download-all {
  background: white;
  color: var(--key);
  text-shadow: none;
}
.card .primary {
  min-height: 48px;
  border-radius: 14px;
  box-shadow:
    inset 0 -1px 0 color-mix(in srgb, var(--key) 14%, transparent),
    0 1px 2px color-mix(in srgb, var(--key-deep) 30%, transparent),
    0 10px 24px -10px color-mix(in srgb, var(--key-deep) 70%, transparent);
}
@media (hover: hover) {
  .card .primary:not(:disabled):hover { background: color-mix(in srgb, white 94%, var(--key-pale)); }
}
.card .primary:not(:disabled):active {
  box-shadow:
    inset 0 -1px 0 color-mix(in srgb, var(--key) 14%, transparent),
    0 1px 2px color-mix(in srgb, var(--key-deep) 30%, transparent);
}
/* Disabled: a quiet outlined well, not a faded white button. */
.card .primary:disabled {
  background: rgb(255 255 255 / 0.2);
  color: rgb(255 255 255 / 0.62);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22);
}
.card .primary:focus-visible,
.card .secondary:focus-visible,
.card .link:focus-visible,
.card .add-more:focus-within,
.card .remove:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.card .secondary {
  min-height: 48px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.45);
  color: white;
}
.card .link {
  color: white;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgb(255 255 255 / 0.5);
}
@media (hover: hover) {
  .card .link:hover { text-decoration-color: white; }
}
.card .fine a { color: white; }
/* Legal pages are long reading: a deeper cobalt under the glass (92%) keeps
   white text and links >= 4.5:1 even where the backdrop is at its lightest
   (measured 4.8:1 over pure white, 5.4:1 over --key). */
.card.prose {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.06)),
    color-mix(in srgb, color-mix(in srgb, var(--key-deep) 80%, black) 92%, transparent);
}
/* Legal pages: the card is itself .prose, so the link rule is .card.prose a.
   White, underlined, and the same white visited (never purple). */
.card.prose a,
.card.prose a:visited {
  color: white;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: rgb(255 255 255 / 0.7);
}
.card.prose a:hover { text-decoration-thickness: 2px; text-decoration-color: white; }
.card.prose a:focus-visible { outline: 2px solid white; outline-offset: 2px; border-radius: 3px; }
.card .sub { color: rgb(255 255 255 / 0.8); }
.card .fine { color: rgb(255 255 255 / 0.78); }
.card .drop-hint { color: rgb(255 255 255 / 0.75); }
.card .field > span { color: rgb(255 255 255 / 0.88); }
.card .field em { color: rgb(255 255 255 / 0.66); }

/* Segmented controls: a white thumb that slides to the choice (260 ms, no
   overshoot). Without :has() the thumb is not drawn and the chosen button
   keeps its own white fill (the @supports block below). */
.card .segmented {
  position: relative;
  isolation: isolate;
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.24);
  box-shadow: inset 0 1px 2px color-mix(in srgb, var(--key-deep) 25%, transparent);
}
.card .segmented button {
  position: relative;
  z-index: 1;
  color: rgb(255 255 255 / 0.9);
  text-shadow: none;
}
.card .segmented button[aria-checked="true"] {
  background: white;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--key-deep) 25%, transparent);
  color: color-mix(in srgb, black 88%, var(--key));
}
.card .segmented button:focus-visible { outline: 2px solid white; outline-offset: -2px; }
.card .segmented button[aria-checked="true"]:focus-visible { outline-color: var(--key); }
.card .segmented::before { content: none; }
@supports selector(:has(*)) {
  .card .segmented { --n: 2; --i: 0; }
  .card .segmented.days { --n: 3; }
  .card .segmented::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc((100% - 6px) / var(--n));
    border-radius: 11px;
    background: white;
    box-shadow:
      0 1px 2px color-mix(in srgb, var(--key-deep) 25%, transparent),
      0 4px 10px -4px color-mix(in srgb, var(--key-deep) 35%, transparent);
    transform: translateX(calc(var(--i) * 100%));
    transition: transform 260ms cubic-bezier(0.3, 0.7, 0.2, 1);
  }
  .card .segmented.days::before { width: 34px; transform: translateX(calc(var(--i) * 34px)); }
  .card .segmented:has(> :nth-child(2)[aria-checked="true"]) { --i: 1; }
  .card .segmented:has(> :nth-child(3)[aria-checked="true"]) { --i: 2; }
  .card .segmented button[aria-checked="true"] { background: transparent; box-shadow: none; }
}
.card .expiry-cap { color: rgb(255 255 255 / 0.88); }

/* The drop box: a fine SVG dash (the browser's dashed border is coarse),
   with a soft highlight on its top edge. */
.card .drop {
  border: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='.5' y='.5' width='100%25' height='100%25' style='width:calc(100%25 - 1px);height:calc(100%25 - 1px)' rx='15.5' fill='none' stroke='white' stroke-opacity='.55' stroke-dasharray='6 6'/%3E%3C/svg%3E"),
    rgb(255 255 255 / 0.06);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12);
}
.card .drop:hover,
.card .drop.over,
.card .dropzone.over .drop {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='.5' y='.5' width='100%25' height='100%25' style='width:calc(100%25 - 1px);height:calc(100%25 - 1px)' rx='15.5' fill='none' stroke='white' stroke-opacity='1' stroke-dasharray='6 6'/%3E%3C/svg%3E"),
    rgb(255 255 255 / 0.14);
}
.card .plus,
.card .check { background: white; color: var(--key); text-shadow: none; }
.card .plus { box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--key-deep) 60%, transparent); }
.card .hint { color: rgb(255 255 255 / 0.85); }
.card .error { color: color-mix(in srgb, #ffd2d2 80%, white); }
.card .progress { background: rgb(255 255 255 / 0.2); }
.card .progress-fill { background: white; }
/* The file box as a list, and the per-file progress (2026-10-01): white on
   the glass, like the empty box and the overall bar. */
.card .filebox {
  border-color: rgb(255 255 255 / 0.4);
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12);
}
.card .dropzone.over .filebox { background: rgb(255 255 255 / 0.14); border-color: white; }
.card .files li { border-bottom-color: rgb(255 255 255 / 0.16); }
.card .files li:last-child { border-bottom: 0; }
.card .add-more { color: white; }
.card .qr-caption { color: rgb(255 255 255 / 0.85); }
.card .add-more span { background: white; color: var(--key); }
.card .files li.complete .file-status { color: white; font-weight: 600; }
.card .files li.failed .file-status { color: color-mix(in srgb, #ffd2d2 80%, white); }
.card .reasons input { accent-color: white; }

/* No transparency wanted: the same card, solid. */
@media (prefers-reduced-transparency: reduce) {
  .card { background: var(--key-deep); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* -- FLOWOPS-SIGNATURE -------------------------------------------------

########################################################################################################################
#                                                                                                                      #
#                                                                                                                      #
#                                                                                                                      #
#                                                                                                                      #
                                                                                                                    ##
                             ####                                                                                   ##
                             ####            ####                                                                   ##
                                             ####                                                                   ##
  ######   #######     ##########   ######  ##########     ######   ##  ##    ##   ###    ###   ### ######    #    ###
#####    ########### ############ ####  ###############   #######      ##      ### ###     ##   ###     ##  ##      ##
 ###### ####     #######     ############### ####   #### ####  #####  ###      ### ###     ##   ###     ##  ##      ##
    ########     #######     ########        ####    #######       ### ##      ### ###     ##   ###     ##  ##      ##
#################### ############ ########## ######   #####   ##   ##  ###    ###  ####   ###   ###     ##  ####    ##
 ######     #####       ########     #####     ####   ####                            ##                       ##
                                                     ####
                                                   #####
#                                                                                                                      #
#                                                                                                                      #
#                                                                                                                      #
#                                                                                                                      #
########################################################################################################################


                                              #                #              #
                                                    #                      #

                                  Built by Esco and Claude.

*/

.card .field-head .count.over { color: color-mix(in srgb, #ffd2d2 80%, white); }
