:root{--ink:#152946;--muted:#425b78;--line:#cbdcf0;--primary:#075fc6;color:var(--ink);font-synthesis:none;background:#edf5ff;font-family:Inter,system-ui,sans-serif;line-height:1.5}*{box-sizing:border-box}body{background:radial-gradient(at top,#d5e8ff 0,#0000 38rem);min-height:100vh;margin:0}.shell{width:min(100% - 2rem,36rem);margin-inline:auto;padding-block:clamp(1.25rem,4vh,3rem) 2.5rem}.home-shell{width:min(100% - 2rem,54rem);padding-block-start:clamp(2rem,9vh,5.5rem)}header{margin-bottom:1.25rem}.app-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.375rem 1rem;display:flex}.brand,.language-control{align-items:center;gap:.625rem;display:inline-flex}.brand{color:var(--ink);border-radius:.5rem;text-decoration:none}.brand:hover{color:var(--primary)}.brand img{border-radius:25%;flex:none;box-shadow:0 3px 8px #163b7024}.language-control{border:1px solid var(--line);color:var(--muted);background:#ffffffde;border-radius:.75rem;gap:.375rem;padding-inline:.625rem .375rem}.language-select{min-height:42px;color:var(--ink);background:0 0;border:0;padding-inline:.25rem;font:600 .875rem/1.2 Inter,system-ui,sans-serif}.language-select:focus{outline:none}.language-control:has(.language-select:focus-visible:not([data-pointer-focus])){outline-offset:3px;outline:2px solid #334155}h1,h2,h3,p{margin:0}h1{letter-spacing:-.045em;font-size:clamp(1.625rem,6vw,2rem)}.home-shell h1{font-size:clamp(1.75rem,7vw,2.75rem)}.tagline{color:var(--muted);margin-block:.875rem 0;font-size:clamp(1rem,2.5vw,1.2rem)}.home-shell header{margin-bottom:1.75rem}.card{border:1px solid var(--line);background:#fff;border-radius:1.125rem;gap:1rem;padding:clamp(1rem,4vw,1.5rem);display:grid;box-shadow:0 10px 28px #2449800b}.mode-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.mode-card{flex-direction:column;gap:.75rem;padding:clamp(1rem,5vw,1.75rem);display:flex}.mode-card h2{letter-spacing:-.025em;font-size:1.35rem}.mode-icon{color:#075fc6;background:#deedff;border-radius:.875rem;place-items:center;width:3rem;height:3rem;display:grid}.qr-mode .mode-icon{color:#473b9c;background:#eeebff}.mode-description{color:var(--muted)}.mode-note{color:var(--muted);font-size:.875rem}.mode-actions{margin-block-start:auto;padding-block-start:.375rem}@media (width<=39rem){.mode-grid{grid-template-columns:1fr}}@media (width<=23rem){.app-heading{column-gap:.625rem}.brand img{width:2.25rem;height:2.25rem}.brand h1{font-size:1.5rem}.language-control{gap:.25rem;padding-inline:.375rem .25rem}}.card-heading,.actions{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.card-heading{justify-content:space-between}.connection-heading{grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:.75rem;display:grid}.connection-status{color:var(--muted);grid-column:1/-1}.connection-status p{margin-top:.5rem}.is-connected .connection-status{grid-column:1}.is-connected>button{grid-area:1/2/span 2}.connected-badge{color:#205d40;background:#eaf7ef;border-radius:1rem;align-items:center;gap:.375rem;padding:.125rem .5rem;font-size:.8125rem;font-weight:600;display:inline-flex}.connected-badge:before{content:"";background:currentColor;border-radius:50%;width:.375rem;height:.375rem}h2{font-size:1.125rem}form,label,.code{gap:.75rem;display:grid}label{gap:.375rem;font-weight:600}textarea,input,button{font:inherit}textarea,input{width:100%;min-width:0;color:inherit;background:#fff;border:1px solid #879cb8;border-radius:.5rem;padding:.625rem .75rem;font-weight:400}textarea{resize:vertical;font-family:ui-monospace,monospace}textarea[readonly]{background:#f3f7fc}button{background:var(--primary);color:#fff;cursor:pointer;border:1px solid #0000;border-radius:.5rem;justify-content:center;justify-self:start;align-items:center;gap:.375rem;min-height:44px;padding:.5rem .875rem;font-weight:600;display:inline-flex}button.secondary{color:#104e97;background:#eaf3ff;border-color:#c8dcf5}button:enabled:hover{filter:brightness(.92)}button:disabled{opacity:.55;cursor:default}:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.error{color:#982d28;overflow-wrap:anywhere}.pairing{gap:.75rem;display:grid}.pairing-hint{background:#eaf3ff;border:1px solid #c8dcf5;border-radius:.5rem;gap:.25rem;padding:.75rem 1rem;display:grid}.pairing-hint-label{color:#104e97;font-size:.875rem;font-weight:600}.pairing-qr{width:min(100%,24rem);height:auto;image-rendering:pixelated;justify-self:center;display:block}@media (height<=800px){.transfer-shell{padding-block-start:1.25rem}.transfer-shell .pairing-qr{width:min(100%,22rem)}}.camera-preview{background:#132742;border-radius:.5rem;position:relative;overflow:hidden}.camera-preview video{object-fit:contain;width:100%;max-height:22rem;display:block}summary{cursor:pointer}.manual-code{margin-top:.75rem}.app-footer{border-block-start:1px solid var(--line);color:var(--muted);flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.5rem 1.25rem;margin-block-start:1.25rem;padding-block-start:1rem;font-size:.875rem;display:flex}.app-footer p{flex:22rem}.app-footer a{color:var(--primary);text-underline-offset:.18em;align-items:center;gap:.375rem;font-weight:600;display:inline-flex}.file-transfer{overflow-wrap:anywhere;gap:.75rem;display:grid}.file-transfer h3{font-size:1rem}.file-progress progress{width:100%;accent-color:var(--primary)}.file-send-status{align-items:center;gap:.5rem;display:flex}.file-send-spinner{flex:none;animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(1turn)}}@media (prefers-reduced-motion:reduce){.file-send-spinner{animation:none}}.file-list{gap:.375rem;margin:0;padding-inline-start:1.5rem;display:grid}.file-transfer a{color:#104e97}
