.tvia {
  --tvia-bg: #07070d;
  --tvia-panel: #111018;
  --tvia-panel-2: #17131d;
  --tvia-ink: #f8eddf;
  --tvia-muted: #bdb4c0;
  --tvia-gold: #ddb767;
  --tvia-gold-soft: rgba(221, 183, 103, .24);
  --tvia-cyan: #63d9dc;
  --tvia-cyan-soft: rgba(99, 217, 220, .14);
  --tvia-danger: #f0a59d;
  position: relative;
  isolation: isolate;
  width: min(100%, 1080px);
  margin: 0 auto 3rem;
  color: var(--tvia-ink);
  font-family: Arial, Helvetica, sans-serif;
}
.tvia *, .tvia *::before, .tvia *::after { box-sizing: border-box; }
.tvia [hidden] { display: none !important; }
.tvia button, .tvia input, .tvia textarea { font: inherit; }
.tvia button { -webkit-tap-highlight-color: transparent; }
.tvia h2[tabindex="-1"]:focus { outline: none; }
.tvia-kicker {
  display: block;
  color: var(--tvia-cyan);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .22em;
  line-height: 1.35;
  text-transform: uppercase;
}
.tvia-primary, .tvia-secondary {
  appearance: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .02em;
  min-height: 48px;
  padding: .8rem 1.45rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, opacity .2s ease;
}
.tvia-primary {
  border: 1px solid #f0ce83;
  background: linear-gradient(135deg, #f2d48f, #c9913e);
  box-shadow: 0 12px 32px rgba(201, 145, 62, .2), inset 0 1px rgba(255, 255, 255, .45);
  color: #18100a;
}
.tvia-secondary {
  border: 1px solid rgba(221, 183, 103, .36);
  background: rgba(11, 10, 16, .74);
  color: var(--tvia-ink);
}
.tvia-primary:hover:not(:disabled), .tvia-secondary:hover:not(:disabled) { transform: translateY(-2px); }
.tvia-primary:focus-visible, .tvia-secondary:focus-visible, .tvia button:focus-visible, .tvia input:focus-visible, .tvia textarea:focus-visible {
  outline: 3px solid rgba(99, 217, 220, .65);
  outline-offset: 3px;
}
.tvia-primary:disabled { cursor: not-allowed; filter: grayscale(.35); opacity: .42; }

.tvia-hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(221, 183, 103, .34);
  border-radius: 30px;
  background: #06050a;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .44), inset 0 0 0 1px rgba(255, 255, 255, .025);
}
.tvia-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tvia-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 10, .97) 0%, rgba(5, 5, 10, .87) 35%, rgba(5, 5, 10, .2) 70%, rgba(5, 5, 10, .05) 100%),
              linear-gradient(0deg, rgba(5, 5, 10, .72), transparent 48%);
}
.tvia-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 540px;
  width: min(560px, 64%);
  padding: clamp(2rem, 5vw, 4rem);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.tvia-hero-copy h2, .tvia-workspace-head h2, .tvia-processing h2, .tvia-confirm h2, .tvia-reading-process h2, .tvia-result-head h2, .tvia-picker h2, .tvia-warning h2, .tvia-disabled h2 {
  margin: .55rem 0 .8rem;
  color: var(--tvia-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.03;
}
.tvia-hero-copy h2 { font-size: clamp(2rem, 4.3vw, 3.55rem); text-wrap: balance; }
.tvia-hero-copy > p { max-width: 490px; margin: 0; color: #d0c5ce; font-size: 1.04rem; line-height: 1.65; }
.tvia-hero-copy ul { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.35rem 0 1.6rem; padding: 0; list-style: none; }
.tvia-hero-copy li { border: 1px solid rgba(99, 217, 220, .25); border-radius: 999px; background: rgba(7, 8, 13, .6); color: #dce9e7; font-size: .77rem; padding: .42rem .72rem; }

.tvia-workspace, .tvia-confirm, .tvia-result {
  position: relative;
  padding: clamp(1.15rem, 3vw, 2.4rem);
  overflow: hidden;
  border: 1px solid rgba(221, 183, 103, .28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 4%, rgba(99, 217, 220, .09), transparent 31%),
    linear-gradient(145deg, rgba(20, 17, 26, .98), rgba(7, 7, 12, .99));
  box-shadow: 0 28px 68px rgba(0, 0, 0, .38);
}
.tvia-workspace-head, .tvia-confirm-head { max-width: 780px; margin: 0 auto 1.55rem; text-align: center; }
.tvia-workspace-head h2, .tvia-confirm-head h2 { font-size: clamp(1.8rem, 4vw, 2.85rem); }
.tvia-workspace-head p, .tvia-confirm-head p { margin: 0; color: var(--tvia-muted); line-height: 1.65; }
.tvia-form-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1rem; }
.tvia-panel {
  min-width: 0;
  padding: clamp(1rem, 2.6vw, 1.55rem);
  border: 1px solid rgba(221, 183, 103, .2);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(22, 19, 28, .92), rgba(8, 8, 13, .93));
}
.tvia-step { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 1.2rem; }
.tvia-step > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(99, 217, 220, .45);
  border-radius: 50%;
  background: var(--tvia-cyan-soft);
  color: var(--tvia-cyan);
  font-weight: 900;
}
.tvia-step h3 { margin: 0 0 .25rem; color: var(--tvia-ink); font-family: Georgia, serif; font-size: 1.25rem; font-weight: 400; }
.tvia-step p { margin: 0; color: var(--tvia-muted); font-size: .88rem; line-height: 1.45; }
.tvia-spread-options { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.tvia-spread-options label { cursor: pointer; }
.tvia-spread-options input { position: absolute; opacity: 0; pointer-events: none; }
.tvia-spread-options label > span {
  position: relative;
  display: flex;
  min-height: 126px;
  padding: .85rem .75rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid rgba(221, 183, 103, .2);
  border-radius: 16px;
  background: rgba(4, 4, 8, .55);
  text-align: center;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.tvia-spread-options input:checked + span { border-color: var(--tvia-gold); background: rgba(221, 183, 103, .1); box-shadow: 0 0 0 3px rgba(221, 183, 103, .08); }
.tvia-spread-options input:focus-visible + span { outline: 3px solid rgba(99, 217, 220, .6); outline-offset: 2px; }
.tvia-spread-options b { color: var(--tvia-ink); }
.tvia-spread-options small { margin-top: .2rem; color: var(--tvia-muted); line-height: 1.25; }
.tvia-spread-options i { margin-top: .55rem; color: var(--tvia-gold); font-family: Georgia, serif; font-size: 1.4rem; font-style: normal; letter-spacing: .15em; }
.tvia-question-label { display: block; margin-top: 1rem; }
.tvia-question-label > span { display: flex; margin-bottom: .45rem; justify-content: space-between; color: #e9ded4; font-size: .82rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.tvia-question-label small { color: var(--tvia-muted); font-weight: 400; }
.tvia-question-label textarea {
  display: block;
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(221, 183, 103, .27);
  border-radius: 14px;
  background: rgba(3, 3, 7, .72);
  color: var(--tvia-ink);
  line-height: 1.5;
  padding: .8rem .9rem;
}
.tvia-question-label textarea::placeholder { color: #817985; }
.tvia-question-note { margin: .38rem 0 0; color: #918994; font-size: .76rem; line-height: 1.4; }
.tvia-drop {
  position: relative;
  display: flex;
  min-height: 310px;
  padding: 1.2rem;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed rgba(99, 217, 220, .42);
  border-radius: 18px;
  background: radial-gradient(circle at 50% 45%, rgba(99, 217, 220, .07), transparent 45%), rgba(3, 4, 8, .6);
  cursor: pointer;
  text-align: center;
  transition: border-color .2s ease, background .2s ease;
}
.tvia-drop.is-drag { border-color: var(--tvia-cyan); background-color: rgba(99, 217, 220, .1); }
.tvia-guide { position: relative; display: flex; width: 190px; height: 112px; margin-bottom: 1rem; align-items: center; justify-content: center; gap: 12px; }
.tvia-guide i { display: block; width: 43px; height: 76px; border: 1px solid rgba(221, 183, 103, .63); border-radius: 4px; background: linear-gradient(145deg, rgba(221, 183, 103, .1), rgba(99, 217, 220, .05)); box-shadow: 0 8px 18px rgba(0, 0, 0, .4); }
.tvia-guide span { position: absolute; inset: 4px; border: 1px solid rgba(99, 217, 220, .4); clip-path: polygon(0 0, 23% 0, 23% 2px, 2px 2px, 2px 23%, 0 23%, 0 0, 100% 0, 100% 23%, calc(100% - 2px) 23%, calc(100% - 2px) 2px, 77% 2px, 77% 0, 100% 0, 100% 100%, 77% 100%, 77% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 77%, 100% 77%, 100% 100%, 0 100%, 0 77%, 2px 77%, 2px calc(100% - 2px), 23% calc(100% - 2px), 23% 100%, 0 100%); }
.tvia-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #050509; }
.tvia-drop.has-photo::after { content: 'CAMBIAR FOTO'; position: absolute; right: .7rem; bottom: .7rem; z-index: 2; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(4,4,8,.78); color: white; font-size: .68rem; font-weight: 800; letter-spacing: .1em; padding: .42rem .62rem; }
.tvia-drop.has-photo .tvia-guide, .tvia-drop.has-photo .tvia-drop-copy, .tvia-drop.has-photo .tvia-photo-actions { visibility: hidden; }
.tvia-drop-copy { display: flex; flex-direction: column; gap: .25rem; }
.tvia-drop-copy strong { color: var(--tvia-ink); font-family: Georgia, serif; font-size: 1.2rem; font-weight: 400; }
.tvia-drop-copy span { color: var(--tvia-muted); font-size: .78rem; }
.tvia-photo-actions { display: flex; gap: .55rem; margin-top: .9rem; }
.tvia-photo-actions .tvia-secondary { min-height: 42px; padding: .58rem .95rem; font-size: .82rem; }
.tvia-file-state { min-height: 1.2rem; margin: .55rem 0 0; color: var(--tvia-cyan); font-size: .76rem; text-align: center; }
.tvia-tips { display: flex; flex-wrap: wrap; gap: .4rem .65rem; margin-top: .65rem; justify-content: center; color: #aaa1ac; font-size: .73rem; }
.tvia-tips span::first-letter { color: var(--tvia-cyan); }
.tvia-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.tvia-form-error, .tvia-confirm-error { max-width: 720px; margin: 1rem auto 0; border: 1px solid rgba(240,165,157,.36); border-radius: 12px; background: rgba(116,35,40,.16); color: #ffd4cf; line-height: 1.45; padding: .75rem 1rem; text-align: center; }
.tvia-recognize { display: block; min-width: min(100%, 290px); margin: 1.2rem auto .75rem; }
.tvia-private { display: flex; max-width: 760px; margin: 0 auto; align-items: flex-start; justify-content: center; gap: .45rem; color: #918995; font-size: .75rem; line-height: 1.45; text-align: center; }
.tvia-private span { color: var(--tvia-cyan); font-size: 1rem; }

.tvia-processing, .tvia-reading-process {
  display: flex;
  min-height: 500px;
  padding: 2rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid rgba(221, 183, 103, .26);
  border-radius: 28px;
  background: radial-gradient(circle at 50% 35%, rgba(99, 217, 220, .1), transparent 37%), linear-gradient(145deg, #11101a, #050509);
  text-align: center;
}
.tvia-processing h2, .tvia-reading-process h2 { font-size: clamp(1.7rem, 4vw, 2.65rem); }
.tvia-processing > p, .tvia-reading-process > p { margin: .1rem 0; color: var(--tvia-muted); }
.tvia-elapsed { color: var(--tvia-cyan) !important; font-variant-numeric: tabular-nums; font-weight: 800; }
.tvia-scanner { position: relative; width: min(550px, 90%); height: 270px; margin-bottom: 1.5rem; overflow: hidden; border: 1px solid rgba(221, 183, 103, .4); border-radius: 18px; background: #030306; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.tvia-scan-photo { width: 100%; height: 100%; object-fit: contain; opacity: .62; }
.tvia-scan-line { position: absolute; z-index: 3; left: 4%; right: 4%; top: 8%; height: 2px; background: linear-gradient(90deg, transparent, var(--tvia-cyan), white, var(--tvia-cyan), transparent); box-shadow: 0 0 18px var(--tvia-cyan); animation: tvia-scan 2.2s ease-in-out infinite; }
.tvia-scanner > i { position: absolute; inset: 12px; border: 1px solid rgba(99, 217, 220, .5); clip-path: polygon(0 0, 16% 0, 16% 2px, 2px 2px, 2px 16%, 0 16%, 0 0, 100% 0, 100% 16%, calc(100% - 2px) 16%, calc(100% - 2px) 2px, 84% 2px, 84% 0, 100% 0, 100% 100%, 84% 100%, 84% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 84%, 100% 84%, 100% 100%, 0 100%, 0 84%, 2px 84%, 2px calc(100% - 2px), 16% calc(100% - 2px), 16% 100%, 0 100%); }
@keyframes tvia-scan { 0%,100% { top: 8%; opacity: .45; } 50% { top: 90%; opacity: 1; } }
.tvia-orbit { position: relative; display: grid; width: 150px; height: 150px; margin-bottom: 1.5rem; place-items: center; border: 1px solid rgba(221,183,103,.25); border-radius: 50%; }
.tvia-orbit::before, .tvia-orbit::after { content: ''; position: absolute; inset: 14px; border: 1px dashed rgba(99,217,220,.34); border-radius: 50%; animation: tvia-rotate 8s linear infinite; }
.tvia-orbit::after { inset: 35px; animation-direction: reverse; animation-duration: 5s; }
.tvia-orbit span { color: var(--tvia-gold); font-size: 2.2rem; text-shadow: 0 0 20px rgba(221,183,103,.6); }
.tvia-orbit i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--tvia-cyan); box-shadow: 0 0 14px var(--tvia-cyan); }
.tvia-orbit i:first-of-type { top: 18px; left: 35px; }.tvia-orbit i:last-of-type { right: 19px; bottom: 36px; }
@keyframes tvia-rotate { to { transform: rotate(360deg); } }

.tvia-detection-note { max-width: 740px; margin: 0 auto 1.2rem; color: var(--tvia-muted); font-size: .86rem; line-height: 1.5; text-align: center; }
.tvia-detected-cards { display: grid; max-width: 850px; margin: 0 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.55rem, 2vw, 1.1rem); }
.tvia-detected-cards:has(.tvia-detected-card:only-child) { max-width: 280px; grid-template-columns: 1fr; }
.tvia-detected-card { min-width: 0; padding: .9rem; border: 1px solid rgba(221,183,103,.2); border-radius: 18px; background: rgba(4,4,8,.55); text-align: center; }
.tvia-position { display: block; min-height: 2.5em; margin-bottom: .55rem; color: var(--tvia-cyan); font-size: .69rem; font-weight: 800; letter-spacing: .11em; line-height: 1.25; text-transform: uppercase; }
.tvia-card-frame { position: relative; width: min(100%, 160px); margin: 0 auto; aspect-ratio: 180/312; overflow: hidden; border: 2px solid rgba(221,183,103,.72); border-radius: 7px; background: #eee5d8; box-shadow: 0 12px 28px rgba(0,0,0,.45); }
.tvia-card-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tvia-card-frame.is-reversed img { transform: rotate(180deg); }
.tvia-detected-card h3 { min-height: 2.4em; margin: .72rem 0 .2rem; color: var(--tvia-ink); font-family: Georgia, serif; font-size: clamp(.92rem, 2vw, 1.18rem); font-weight: 400; line-height: 1.2; }
.tvia-confidence { min-height: 1.2em; margin: 0 0 .65rem; color: #958d98; font-size: .68rem; }
.tvia-orientation { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; }
.tvia-orientation button, .tvia-change-card { border: 1px solid rgba(221,183,103,.22); border-radius: 9px; background: rgba(18,16,23,.85); color: #c7bec8; cursor: pointer; font-size: .7rem; padding: .48rem .25rem; }
.tvia-orientation button.is-active { border-color: var(--tvia-cyan); background: rgba(99,217,220,.12); color: #e9ffff; }
.tvia-change-card { width: 100%; margin-top: .35rem; color: var(--tvia-gold); }
.tvia-confirm-actions { display: flex; margin-top: 1.25rem; justify-content: center; flex-wrap: wrap; gap: .65rem; }

.tvia-result-head { max-width: 800px; margin: 0 auto 2rem; text-align: center; }
.tvia-result-head h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
.tvia-result-question { display: inline-block; margin: .2rem 0 1rem; border: 1px solid rgba(99,217,220,.2); border-radius: 999px; background: rgba(99,217,220,.07); color: #d7e8e7; font-family: Georgia, serif; font-style: italic; padding: .55rem 1rem; }
.tvia-overview { margin: 0; color: #d2c8d0; font-size: 1.04rem; line-height: 1.75; }
.tvia-result-cards { display: grid; gap: 1rem; }
.tvia-result-card { display: grid; grid-template-columns: 205px 1fr; gap: 1.4rem; padding: 1.2rem; align-items: center; border: 1px solid rgba(221,183,103,.2); border-radius: 22px; background: linear-gradient(120deg, rgba(4,4,8,.82), rgba(22,18,27,.72)); }
.tvia-result-card:nth-child(even) { grid-template-columns: 1fr 205px; }
.tvia-result-card:nth-child(even) .tvia-result-card-visual { grid-column: 2; grid-row: 1; }
.tvia-result-card:nth-child(even) .tvia-result-card-copy { grid-column: 1; grid-row: 1; }
.tvia-result-card-visual { text-align: center; }
.tvia-result-card-visual > span { display: block; margin-bottom: .55rem; color: var(--tvia-cyan); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tvia-result-card-copy small, .tvia-synthesis small, .tvia-result-grid small { color: var(--tvia-gold); font-size: .66rem; font-weight: 800; letter-spacing: .16em; }
.tvia-result-card-copy h3, .tvia-synthesis h3, .tvia-result-grid h3 { margin: .25rem 0 .6rem; color: var(--tvia-ink); font-family: Georgia, serif; font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 400; }
.tvia-result-card-copy p, .tvia-synthesis p, .tvia-result-grid p { margin: 0; color: #cfc5cd; line-height: 1.72; }
.tvia-synthesis { display: grid; margin-top: 1.2rem; padding: clamp(1.25rem,3vw,2rem); grid-template-columns: auto 1fr; gap: 1rem; border: 1px solid rgba(99,217,220,.24); border-radius: 22px; background: radial-gradient(circle at 0 50%, rgba(99,217,220,.1), transparent 28%), rgba(6,7,11,.58); }
.tvia-synthesis > span { color: var(--tvia-cyan); font-size: 2rem; text-shadow: 0 0 18px rgba(99,217,220,.55); }
.tvia-result-grid { display: grid; margin-top: 1rem; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tvia-result-grid section { padding: 1.25rem; border: 1px solid rgba(221,183,103,.18); border-radius: 20px; background: rgba(5,5,9,.52); }
.tvia-result-grid b { display: grid; width: 34px; height: 34px; margin-bottom: .65rem; place-items: center; border: 1px solid rgba(221,183,103,.36); border-radius: 50%; color: var(--tvia-gold); }
.tvia-result-actions { display: flex; margin-top: 1.4rem; justify-content: center; flex-wrap: wrap; gap: .65rem; }
.tvia-share-state { min-height: 1.3rem; color: var(--tvia-cyan); font-size: .8rem; text-align: center; }
.tvia-disclaimer { max-width: 760px; margin: 1rem auto 0; color: #89818b; font-size: .72rem; line-height: 1.5; text-align: center; }

.tvia dialog { width: min(960px, calc(100vw - 1.5rem)); max-width: none; max-height: min(88vh, 850px); padding: 0; overflow: hidden; border: 1px solid rgba(221,183,103,.35); border-radius: 24px; background: #0b0a11; color: var(--tvia-ink); box-shadow: 0 34px 90px rgba(0,0,0,.72); }
.tvia dialog::backdrop { background: rgba(1,1,5,.82); backdrop-filter: blur(6px); }
.tvia-picker-card { display: flex; max-height: min(88vh,850px); padding: 1.2rem; flex-direction: column; }
.tvia-picker-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.tvia-picker-head h2 { margin-top: .25rem; font-size: clamp(1.5rem,4vw,2.25rem); }
.tvia-picker-close { width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid rgba(221,183,103,.25); border-radius: 50%; background: rgba(255,255,255,.03); color: var(--tvia-ink); cursor: pointer; font-size: 1.7rem; line-height: 1; }
.tvia-search { display: flex; margin-bottom: 1rem; align-items: center; gap: .5rem; border: 1px solid rgba(99,217,220,.25); border-radius: 13px; background: rgba(2,3,6,.7); color: var(--tvia-cyan); padding: 0 .8rem; }
.tvia-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--tvia-ink); padding: .8rem 0; }
.tvia-picker-grid { display: grid; min-height: 0; padding-right: .35rem; overflow-y: auto; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; }
.tvia-picker-grid button { display: flex; min-width: 0; padding: .45rem; align-items: center; flex-direction: column; border: 1px solid rgba(221,183,103,.17); border-radius: 10px; background: rgba(255,255,255,.025); color: #ddd3d9; cursor: pointer; }
.tvia-picker-grid button:hover:not(:disabled) { border-color: var(--tvia-cyan); background: rgba(99,217,220,.08); }
.tvia-picker-grid button:disabled { opacity: .28; cursor: not-allowed; }
.tvia-picker-grid img { display: block; width: min(100%,75px); height: auto; aspect-ratio: 90/156; object-fit: cover; border-radius: 3px; }
.tvia-picker-grid span { margin-top: .38rem; overflow-wrap: anywhere; font-size: .68rem; line-height: 1.2; text-align: center; }
.tvia-no-cards { grid-column: 1/-1; color: var(--tvia-muted); text-align: center; }
.tvia-warning { width: min(520px, calc(100vw - 1.5rem)) !important; }
.tvia-warning-card { padding: clamp(1.4rem,5vw,2.4rem); text-align: center; }
.tvia-warning-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 1rem; place-items: center; border: 1px solid rgba(240,165,157,.55); border-radius: 50%; background: rgba(240,165,157,.1); color: #ffd1cb; font-family: Georgia,serif; font-size: 2rem; }
.tvia-warning h2 { font-size: 2rem; }
.tvia-warning-message { color: #e1d5da; font-size: 1rem; line-height: 1.6; }
.tvia-warning-tip { color: #99909a; font-size: .8rem; line-height: 1.5; }
.tvia-warning-card .tvia-primary { display: block; margin: 1.2rem auto .5rem; }
.tvia-warning-close { border: 0; background: transparent; color: #aaa0aa; cursor: pointer; padding: .5rem 1rem; }
.tvia-disabled { padding: 2.5rem; border: 1px solid rgba(221,183,103,.3); border-radius: 24px; background: #0d0b12; text-align: center; }
.tvia-disabled > span { color: var(--tvia-gold); font-size: 2.5rem; }

@media (max-width: 760px) {
  .tvia { margin-bottom: 2rem; }
  .tvia-hero { min-height: 610px; border-radius: 22px; }
  .tvia-hero > img { height: 43%; object-position: center; }
  .tvia-hero-shade { background: linear-gradient(0deg, rgba(5,5,10,.99) 0%, rgba(5,5,10,.96) 58%, rgba(5,5,10,.16) 100%); }
  .tvia-hero-copy { min-height: 610px; width: 100%; padding: 1.35rem; justify-content: flex-end; align-items: center; text-align: center; }
  .tvia-hero-copy h2 { font-size: clamp(1.85rem,9vw,2.65rem); }
  .tvia-hero-copy > p { font-size: .94rem; line-height: 1.55; }
  .tvia-hero-copy ul { justify-content: center; margin: 1rem 0 1.2rem; }
  .tvia-form-grid { grid-template-columns: 1fr; }
  .tvia-workspace, .tvia-confirm, .tvia-result { padding: 1rem; border-radius: 22px; }
  .tvia-drop { min-height: 260px; }
  .tvia-detected-card { padding: .5rem .35rem; border-radius: 13px; }
  .tvia-position { min-height: 3.5em; font-size: .57rem; letter-spacing: .05em; }
  .tvia-card-frame { border-width: 1px; border-radius: 4px; }
  .tvia-detected-card h3 { font-size: .78rem; }
  .tvia-confidence { font-size: .56rem; }
  .tvia-orientation { grid-template-columns: 1fr; }
  .tvia-orientation button, .tvia-change-card { font-size: .59rem; padding: .42rem .1rem; }
  .tvia-result-card, .tvia-result-card:nth-child(even) { grid-template-columns: 105px 1fr; gap: .9rem; padding: .85rem; align-items: start; }
  .tvia-result-card:nth-child(even) .tvia-result-card-visual { grid-column: 1; grid-row: 1; }
  .tvia-result-card:nth-child(even) .tvia-result-card-copy { grid-column: 2; grid-row: 1; }
  .tvia-result-card-copy h3 { font-size: 1.25rem; }
  .tvia-result-card-copy p { font-size: .87rem; line-height: 1.6; }
  .tvia-synthesis { grid-template-columns: 1fr; }
  .tvia-result-grid { grid-template-columns: 1fr; }
  .tvia-picker-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .tvia-scanner { height: 220px; }
}

@media (max-width: 420px) {
  .tvia-primary, .tvia-secondary { width: 100%; }
  .tvia-photo-actions { width: 100%; flex-direction: column; }
  .tvia-photo-actions .tvia-secondary { width: 100%; }
  .tvia-spread-options { grid-template-columns: 1fr 1fr; }
  .tvia-spread-options label > span { min-height: 115px; padding: .6rem .35rem; }
  .tvia-spread-options small { font-size: .68rem; }
  .tvia-result-card, .tvia-result-card:nth-child(even) { grid-template-columns: 88px 1fr; }
  .tvia-picker-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .tvia *, .tvia *::before, .tvia *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
