:root {
    color-scheme: light;
    --ink: #181725;
    --muted: #716f80;
    --line: rgba(43, 39, 69, .12);
    --surface: rgba(255, 255, 255, .86);
    --accent: #6758ee;
    --accent-2: #8b72ff;
    --danger: #c43c53;
    --success: #208b67;
    --shadow: 0 22px 70px rgba(48, 39, 99, .13);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #f7f6fb; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: linear-gradient(145deg, #fbfaff 0%, #f4f5ff 48%, #f9f5ff 100%); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.is-hidden { display: none !important; }
.button > i, .back-button > i, .owner-login-link > i, .folder-picker > i { flex: 0 0 auto; }

.receive-ambient { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.receive-ambient::before, .receive-ambient::after { content: ""; position: absolute; width: 38rem; height: 38rem; border-radius: 50%; filter: blur(90px); opacity: .3; }
.receive-ambient::before { top: -22rem; left: -12rem; background: #d5ceff; }
.receive-ambient::after { right: -18rem; bottom: -24rem; background: #f1cbff; }

.receive-header { position: relative; z-index: 3; width: min(1180px, calc(100% - 40px)); margin: 20px auto 0; padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid rgba(255,255,255,.78); border-radius: 999px; background: rgba(255,255,255,.68); box-shadow: 0 10px 34px rgba(48,39,99,.08); backdrop-filter: blur(20px); }
.receive-brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.receive-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 25px rgba(103, 88, 238, .27); }
.receive-brand-mark i { font-size: 18px; transform: rotate(-8deg); }
.receive-brand span:last-child { display: grid; line-height: 1.1; }
.receive-brand strong { font-size: 18px; letter-spacing: -.3px; }
.receive-brand small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.quiet-link { color: #555165; text-underline-offset: 4px; font-weight: 650; }
.receive-navigation { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.receive-navigation a { min-height: 42px; padding: 10px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #4f4b5c; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 750; transition: color .18s ease, background .18s ease, transform .18s ease; }
.receive-navigation a:hover { color: var(--accent); background: rgba(255,255,255,.8); transform: translateY(-1px); }
.receive-navigation .receive-nav-accent { color: #fff; background: linear-gradient(135deg, var(--accent), #7f68fb); box-shadow: 0 9px 19px rgba(103,88,238,.18); }
.receive-navigation .receive-nav-accent:hover { color: #fff; background: linear-gradient(135deg, #5d4de3, #765ff0); }
.receive-menu-toggle { display: none; min-height: 42px; padding: 0 15px; align-items: center; gap: 8px; color: #4f4b5c; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.78); font-weight: 750; cursor: pointer; }

.receive-shell { position: relative; z-index: 1; width: min(1080px, calc(100% - 40px)); margin: 28px auto 70px; }
.receive-loading { min-height: 55vh; display: grid; place-items: center; align-content: center; gap: 16px; color: var(--muted); }
.spinner { width: 34px; height: 34px; border: 3px solid #ddd9f3; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.receive-intro { max-width: 760px; margin: 38px auto 42px; text-align: center; }
.eyebrow { display: inline-flex; margin-bottom: 11px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
.receive-intro h1, .form-heading h1, .dashboard-head h1 { margin-bottom: 14px; font-size: clamp(32px, 5vw, 55px); line-height: 1.04; letter-spacing: -.045em; }
.receive-intro p, .form-heading p, .dashboard-head p { color: var(--muted); line-height: 1.65; font-size: 17px; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.choice-card { position: relative; min-height: 330px; overflow: hidden; padding: 34px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(18px); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.choice-card > * { position: relative; z-index: 1; }
.choice-card::after { content: ""; position: absolute; z-index: 0; width: 170px; height: 170px; right: -82px; top: -88px; border-radius: 50%; background: rgba(103, 88, 238, .08); filter: blur(2px); pointer-events: none; }
.choice-card:hover { transform: translateY(-3px); border-color: rgba(103, 88, 238, .22); box-shadow: 0 28px 82px rgba(48, 39, 99, .16); }
.choice-primary { background: linear-gradient(150deg, rgba(255,255,255,.94), rgba(242,239,255,.92)); }
.choice-icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 38px; color: var(--accent); border: 1px solid rgba(103, 88, 238, .1); border-radius: 18px; background: linear-gradient(145deg, #f2f0ff, #e9e5ff); box-shadow: 0 12px 28px rgba(103, 88, 238, .14); font-size: 23px; }
.choice-nearby .choice-icon { color: #167aa0; border-color: rgba(22, 122, 160, .11); background: linear-gradient(145deg, #eefbff, #e1f5fb); box-shadow: 0 12px 28px rgba(22, 122, 160, .12); }
.choice-nearby::after { background: rgba(31, 158, 195, .08); }
.choice-scan .choice-icon { color: #a3477f; border-color: rgba(163, 71, 127, .1); background: linear-gradient(145deg, #fff2fa, #f9e8f4); box-shadow: 0 12px 28px rgba(163, 71, 127, .11); }
.choice-scan::after { background: rgba(192, 82, 149, .07); }
.choice-card h2 { margin-bottom: 10px; font-size: 27px; letter-spacing: -.03em; }
.choice-card p { max-width: 430px; margin-bottom: 26px; color: var(--muted); line-height: 1.6; }
.choice-card .button { margin-top: auto; }
.compact-card { grid-column: 1 / -1; min-height: auto; flex-direction: row; align-items: center; gap: 20px; }
.compact-card .choice-icon { flex: 0 0 auto; margin: 0; }
.compact-card h2 { margin-bottom: 5px; font-size: 21px; }
.compact-card p { margin: 0; }
.compact-card .button { margin: 0 0 0 auto; }
.owner-login-link { margin: 26px auto 0; padding: 10px 14px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 12px; color: #565263; background: transparent; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; transition: color .18s ease, background .18s ease; }
.owner-login-link:hover { color: var(--accent); background: rgba(103, 88, 238, .06); }

.button { min-height: 48px; padding: 12px 19px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 14px; text-decoration: none; font-weight: 750; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.button > i { font-size: .94em; }
.choice-card > .button { min-width: 190px; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(.985); }
.button:focus-visible, .back-button:focus-visible, .owner-login-link:focus-visible { outline: 3px solid rgba(103, 88, 238, .25); outline-offset: 3px; }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button.primary { color: #fff; background: linear-gradient(135deg, var(--accent), #7966fa); box-shadow: 0 12px 24px rgba(103,88,238,.22); }
.button.primary:hover { box-shadow: 0 15px 30px rgba(103,88,238,.3); }
.button.secondary { color: #4c426f; border-color: #d9d3f3; background: #f4f2ff; }
.button.secondary:hover { color: #5143ac; border-color: #c9c0f3; background: #efecff; box-shadow: 0 10px 22px rgba(80, 65, 160, .1); }
.button.ghost { color: #4d4a59; border-color: var(--line); background: rgba(255,255,255,.68); }
.button.ghost:hover { color: var(--accent); border-color: rgba(103, 88, 238, .2); background: rgba(255,255,255,.92); box-shadow: 0 10px 22px rgba(48, 39, 99, .08); }
.button.danger { color: var(--danger); border-color: rgba(196,60,83,.2); background: rgba(196,60,83,.06); }
.button.wide { width: 100%; }

.form-view { width: min(650px, 100%); margin: 24px auto; padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.back-button { margin: 0 0 30px; padding: 7px 9px; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; color: #5f5a70; background: transparent; font-weight: 700; cursor: pointer; transition: color .18s ease, background .18s ease; }
.back-button:hover { color: var(--accent); background: rgba(103, 88, 238, .06); }
.form-heading { margin-bottom: 28px; }
.form-heading h1 { font-size: clamp(30px, 6vw, 44px); }
.form-heading p { margin-bottom: 0; font-size: 16px; }
.centered { text-align: center; }
.receive-form { display: grid; gap: 18px; }
.upload-detailed-fields { display: grid; gap: 18px; }
.receive-form label { position: relative; display: grid; gap: 8px; color: #373442; font-size: 14px; font-weight: 750; }
.field-note { position: absolute; right: 0; color: #8a8694; font-size: 12px; font-weight: 500; }
.receive-form input:not([type=file]), .receive-form textarea, .share-box input, .manual-scan input { width: 100%; border: 1px solid #dcd9e7; border-radius: 14px; outline: 0; color: var(--ink); background: rgba(255,255,255,.9); transition: border .18s, box-shadow .18s; }
.receive-form input:not([type=file]), .share-box input, .manual-scan input { height: 51px; padding: 0 15px; }
.receive-form textarea { padding: 14px 15px; resize: vertical; }
.receive-form input:focus, .receive-form textarea:focus, .share-box input:focus, .manual-scan input:focus { border-color: #9287ed; box-shadow: 0 0 0 4px rgba(103,88,238,.1); }
.form-status { min-height: 20px; margin: -2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.form-status.error { color: var(--danger); }
.form-status.success { color: var(--success); }
.visually-hidden { position: fixed !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }

.upload-picker { display: grid; gap: 9px; }
.file-drop { min-height: 140px; place-items: center; align-content: center; padding: 20px; border: 1.5px dashed #bcb5df; border-radius: 18px; background: #f9f8ff; text-align: center; cursor: pointer; }
.file-drop:hover, .file-drop.is-dragging { border-color: var(--accent); background: #f3f0ff; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop-icon { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 3px; color: var(--accent); border-radius: 12px; background: #eae6ff; font-size: 24px; }
.file-drop small { color: var(--muted); font-weight: 500; }
.folder-picker { width: max-content; max-width: 100%; margin: 0 auto; padding: 6px 9px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 10px; color: #716b7d; background: transparent; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; transition: color .18s, background .18s; }
.folder-picker:hover, .folder-picker:focus-visible { color: var(--accent); background: rgba(103,88,238,.07); outline: 0; }
.upload-progress { padding: 16px; border-radius: 16px; background: #f5f3fc; }
.receive-resume { display: grid; gap: 8px; padding: 16px; border: 1px solid #93c5fd; border-radius: 16px; background: #eff6ff; }
.receive-resume p { margin: 0; color: var(--muted); }
.receive-resume .stack-actions { margin-top: 4px; }
.receive-consent { display: flex !important; grid-template-columns: none !important; flex-direction: row !important; gap: 10px !important; align-items: flex-start; }
.receive-consent input { width: auto !important; margin-top: 3px; }
.progress-top { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 13px; }
.progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #ded9ef; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #9e7df7); transition: width .2s; }
.privacy-note { margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; text-align: center; }
.quick-upload { width: min(610px, 100%); }
.quick-upload .form-heading { text-align: center; }
.quick-upload .form-heading h1 { font-size: clamp(32px, 7vw, 48px); }
.quick-upload .file-drop { min-height: 210px; border-width: 2px; background: linear-gradient(145deg, #fbfaff, #f2efff); }
.quick-upload .file-drop-icon { width: 50px; height: 50px; margin-bottom: 8px; border-radius: 16px; font-size: 30px; }
.quick-upload .file-drop strong { font-size: 17px; }

.success-orb { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 22px; color: #fff; border-radius: 22px; background: linear-gradient(135deg, #2ba779, #68c39f); font-size: 28px; box-shadow: 0 13px 28px rgba(43,167,121,.23); }
.share-box { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 22px 0; }
.share-box input { min-width: 0; }
.share-qr, .live-qr { width: 224px; min-height: 224px; margin: 26px auto; padding: 12px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.share-qr img, .share-qr canvas, .live-qr img, .live-qr canvas { max-width: 100%; height: auto !important; }
.stack-actions { display: grid; gap: 15px; margin-top: 25px; }
.centered-link { display: block; text-align: center; }
.waiting-pill { width: max-content; max-width: 100%; margin: 0 auto 18px; padding: 10px 15px; display: flex; align-items: center; gap: 9px; color: #5b5570; border-radius: 999px; background: #f0edff; font-size: 13px; font-weight: 700; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(103,88,238,.35); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(103,88,238,0); } 100% { box-shadow: 0 0 0 0 rgba(103,88,238,0); } }

#view-dashboard { width: 100%; }
.dashboard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin: 38px 0 28px; }
.dashboard-head h1 { font-size: clamp(34px, 6vw, 53px); }
.dashboard-head p { margin: 0; }
.dashboard-actions { display: flex; justify-content: flex-end; gap: 10px; flex: 0 0 auto; flex-wrap: wrap; }
.dashboard-summary { margin-bottom: 17px; padding: 16px 19px; display: flex; justify-content: space-between; gap: 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.62); color: var(--muted); font-size: 13px; }
.submission-list { display: grid; gap: 14px; }
.submission-card { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 12px 36px rgba(48,39,99,.07); }
.submission-card.is-deleted { opacity: .62; }
.submission-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.submission-top h2 { margin-bottom: 5px; font-size: 20px; }
.submission-meta { color: var(--muted); font-size: 12px; }
.submission-message { margin: 15px 0 0; padding: 13px 15px; color: #555160; border-radius: 13px; background: #f6f4fa; white-space: pre-wrap; }
.file-list { display: grid; gap: 9px; margin-top: 16px; }
.file-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #e6e3ed; border-radius: 13px; background: rgba(255,255,255,.75); }
.file-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.file-state { color: var(--muted); font-size: 11px; }
.file-state.downloaded { color: var(--success); }
.file-state.exhausted { color: var(--danger); }
.file-limit-label { padding: 7px 9px; color: var(--danger); border-radius: 9px; background: rgba(196,60,83,.07); font-size: 10px; font-weight: 750; white-space: nowrap; }
.file-row .button { min-height: 36px; padding: 8px 11px; border-radius: 10px; font-size: 12px; }
.empty-state { padding: 60px 24px; border: 1px dashed #cac5db; border-radius: 24px; color: var(--muted); background: rgba(255,255,255,.52); text-align: center; }
.empty-state strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 20px; }
.sender-files { display: grid; gap: 10px; margin: 24px 0; }

.scanner-dialog { width: min(520px, calc(100% - 24px)); max-height: min(88vh, 820px); max-height: min(88dvh, 820px); overflow-y: auto; overscroll-behavior: contain; padding: 25px; border: 0; border-radius: 25px; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgba(20,15,48,.3); }
.scanner-dialog::backdrop { background: rgba(20,17,35,.65); backdrop-filter: blur(7px); }
.scanner-dialog h2 { margin-bottom: 7px; }
.scanner-dialog > p { color: var(--muted); }
.scanner-close { position: absolute; top: 13px; right: 13px; width: 38px; height: 38px; border: 0; border-radius: 12px; color: #5a5665; background: #f1eff5; font-size: 24px; cursor: pointer; }
.camera-frame { position: relative; aspect-ratio: 1 / .82; overflow: hidden; border-radius: 20px; background: #191722; }
.camera-frame video { width: 100%; height: 100%; object-fit: cover; }
.camera-frame::after { content: ""; position: absolute; inset: 18%; border: 2px solid rgba(255,255,255,.9); border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(10,8,18,.25); }
.scan-line { position: absolute; z-index: 2; left: 20%; right: 20%; top: 50%; height: 2px; background: #9d8cff; box-shadow: 0 0 12px #9d8cff; animation: scan 2s ease-in-out infinite; }
@keyframes scan { 0%,100% { transform: translateY(-70px); } 50% { transform: translateY(70px); } }
.scanner-actions { display: grid; gap: 9px; margin-top: 13px; }
.scanner-actions > .button { width: 100%; }
.manual-scan { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 0; }

.receive-addon-dialog { width: min(500px, calc(100% - 24px)); padding: 30px; border: 0; border-radius: 25px; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgba(20,15,48,.3); }
.receive-addon-dialog::backdrop { background: rgba(20,17,35,.58); backdrop-filter: blur(7px); }
.receive-addon-dialog h2 { margin: 9px 42px 8px 0; font-size: clamp(25px, 5vw, 34px); }
.receive-addon-dialog > p { margin: 0; color: var(--muted); line-height: 1.55; }
.receive-addon-summary { margin: 21px 0 18px; padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #e4e0f2; border-radius: 16px; background: linear-gradient(135deg, #faf9ff, #f1eeff); }
.receive-addon-summary span { color: #5f5a70; font-size: 13px; }
.receive-addon-summary strong { flex: 0 0 auto; color: var(--accent); font-size: 21px; }
.receive-addon-form { display: grid; gap: 13px; }
.receive-addon-form label { display: grid; gap: 8px; color: #373442; font-size: 13px; font-weight: 750; }
.receive-addon-form input { width: 100%; height: 51px; padding: 0 15px; border: 1px solid #dcd9e7; border-radius: 14px; outline: 0; color: var(--ink); background: #fff; }
.receive-addon-form input:focus { border-color: #9287ed; box-shadow: 0 0 0 4px rgba(103,88,238,.1); }
.receive-addon-note { display: block; margin-top: 15px; color: #8a8694; font-size: 11px; line-height: 1.5; text-align: center; }

@media (max-width: 760px) {
    .receive-header, .receive-shell { width: min(100% - 24px, 1080px); }
    .receive-header { margin-top: 12px; padding: 11px; flex-wrap: wrap; border-radius: 25px; }
    .receive-menu-toggle { display: inline-flex; margin-left: auto; }
    .receive-navigation { display: none; width: 100%; padding-top: 10px; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
    .receive-navigation.is-open { display: grid; }
    .receive-navigation a { width: 100%; background: rgba(255,255,255,.72); }
    .receive-navigation .receive-nav-accent { grid-column: 1 / -1; }
    .receive-shell { margin-top: 8px; }
    .receive-intro { margin: 30px auto 27px; text-align: left; }
    .receive-intro h1 { font-size: 38px; }
    .choice-grid { grid-template-columns: 1fr; }
    .choice-card { min-height: 270px; padding: 25px; border-radius: 23px; }
    .compact-card { grid-column: auto; min-height: auto; display: grid; grid-template-columns: auto 1fr; }
    .choice-card > .button { width: 100%; }
    .compact-card .button { grid-column: 1 / -1; }
    .form-view { padding: 24px 18px; border-radius: 23px; }
    .share-box { grid-template-columns: 1fr; }
    .share-box .button { width: 100%; }
    .dashboard-head { align-items: stretch; flex-direction: column; }
    .dashboard-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
    .dashboard-actions .danger { grid-column: 1 / -1; }
    .dashboard-summary { flex-direction: column; }
    .submission-card { padding: 18px; }
    .file-row { grid-template-columns: minmax(0, 1fr) auto; }
    .file-state { grid-column: 1; }
    .manual-scan { grid-template-columns: 1fr; }
    .receive-addon-dialog { padding: 24px 18px; border-radius: 22px; }
    .receive-addon-summary { align-items: flex-start; flex-direction: column; gap: 7px; }
}

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

/* i18n + resilient QR scanner additions */
.receive-navigation .fs-language-switcher { flex: 0 0 auto; }
.receive-navigation .fs-language-switcher > summary { min-height: 42px; border-radius: 999px; }
.scanner-image-choice { display: grid; gap: 7px; margin-top: 13px; }
.scanner-image-choice small { color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; }
.camera-frame .scan-region-highlight,
.camera-frame .scan-region-highlight-svg { z-index: 2; }
html[dir="rtl"] .field-note { right: auto; left: 0; }
html[dir="rtl"] .scanner-close { right: auto; left: 13px; }
@media(max-width:900px) {
    .receive-navigation .fs-language-switcher { width: 100%; grid-column: 1 / -1; }
    .receive-navigation .fs-language-switcher > summary { width: 100%; justify-content: center; background: rgba(255,255,255,.72); }
    .receive-navigation .fs-language-menu { width: 100%; min-width: 0; }
}


.access-mode-block { display: grid; gap: 9px; margin: 0 0 12px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.62); }
.access-mode-title { color: var(--ink); font-size: 13px; font-weight: 700; }
.access-mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.access-mode-option { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border: 1px solid #dcd9e7; border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .18s, box-shadow .18s, background .18s; }
.receive-form .access-mode-option { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; color: var(--ink); font-size: 13px; font-weight: 400; }
.receive-form .access-mode-option input[type=radio] { flex: 0 0 16px; width: 16px; min-width: 16px; height: 16px; margin: 2px 0 0; padding: 0; accent-color: #6d5dfc; }
.access-mode-option input { flex: 0 0 auto; margin: 2px 0 0; }
.access-mode-option span { display: grid; gap: 2px; min-width: 0; }
.access-mode-option strong { font-size: 13px; line-height: 1.25; }
.access-mode-option small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.access-mode-option:has(input:checked) { border-color: #9287ed; background: #f7f5ff; box-shadow: 0 0 0 3px rgba(103,88,238,.08); }
.access-mode-note { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; }
.created-view { width: min(880px, 100%); margin: 24px auto; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 32px; background: var(--surface); box-shadow: var(--shadow); }
.created-hero { display: grid; justify-items: center; gap: 7px; margin-bottom: 22px; text-align: center; }
.created-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 4px; border-radius: 18px; color: #fff; font-size: 22px; background: linear-gradient(135deg,#6d5dfc,#a99cff); box-shadow: 0 12px 26px rgba(109,93,252,.28); }
.created-hero h1 { margin: 0; font-size: clamp(24px, 4vw, 34px); line-height: 1.15; }
.created-hero p { max-width: 560px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.created-label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.created-share-card { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 22px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg,#fcfbff,#f6f3ff); }
.created-share-main .share-box { margin: 9px 0 10px; }
#created-magic-note { position: static; margin: 8px 0 0; }
.created-qr-wrap { display: grid; justify-items: center; gap: 8px; }
.created-qr-wrap .share-qr { margin: 0; width: 100%; max-width: 240px; }
.created-qr-wrap small { color: var(--muted); font-size: 11px; text-align: center; }
.created-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 20px 0; }
.created-step { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.created-step span { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-bottom: 8px; border-radius: 50%; background: #efeaff; color: #6d5dfc; font-size: 12px; font-weight: 800; }
.created-step strong { display: block; margin-bottom: 4px; font-size: 13px; }
.created-step p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.created-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid #e4dfff; border-radius: 16px; background: #f4f2ff; color: #4a4566; }
.created-note i { margin-top: 2px; color: #6d5dfc; }
.created-note strong { display: block; margin-bottom: 3px; font-size: 13px; }
.created-note p { margin: 0; color: #6b6685; font-size: 12px; line-height: 1.45; }
.created-actions { display: grid; gap: 10px; margin-top: 20px; }
.receive-how-title { margin: 22px 0 0; font-size: 14px; letter-spacing: .2px; }
.receive-how { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 18px 0 6px; }
.receive-how-step { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.62); }
.receive-how-step span { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-bottom: 7px; border-radius: 50%; background: #efeaff; color: #6d5dfc; font-size: 11px; font-weight: 800; }
.receive-how-step strong { display: block; margin-bottom: 3px; font-size: 13px; }
.receive-how-step p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.page-hint { display: flex; gap: 9px; align-items: flex-start; margin: 0 0 14px; padding: 11px 13px; border: 1px solid #e4dfff; border-radius: 14px; background: #f7f5ff; color: #5f5a7a; font-size: 12px; line-height: 1.45; }
.page-hint i { margin-top: 2px; color: #6d5dfc; }
.dashboard-help { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.qr-session-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; }
.dashboard-qr-panel { display: grid; justify-items: center; gap: 8px; margin: 14px 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: #fbfaff; }
.dashboard-qr-panel .share-qr { margin: 0; width: 100%; max-width: 220px; }
.dashboard-qr-panel small { color: var(--muted); font-size: 11px; text-align: center; }
@media(max-width:680px) { .created-share-card { grid-template-columns: 1fr; } .created-qr-wrap { order: -1; } .created-steps { grid-template-columns: 1fr; } .receive-how { grid-template-columns: 1fr; } }
.created-share-grid { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 18px; align-items: center; margin: 20px 0; }
.created-share-grid .share-box { margin: 0; }
.created-share-grid .share-qr { margin: 0; width: 100%; max-width: 240px; }
#share-created-native { margin-top: 10px; }
@media(max-width:680px) { .created-share-grid { grid-template-columns: 1fr; } .created-share-grid .share-qr { margin: 16px auto 0; } }
@media(max-width:520px) { .access-mode-options { grid-template-columns: 1fr; } }
