/* Self-hosted fonts (downloaded from Google Fonts, SIL Open Font License). */
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/geist-mono-normal-400-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/geist-mono-normal-400-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/geist-mono-normal-400-symbols2.woff2) format('woff2');unicode-range:U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/geist-mono-normal-400-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/geist-mono-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/geist-mono-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/geist-mono-normal-500-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/geist-mono-normal-500-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/geist-mono-normal-500-symbols2.woff2) format('woff2');unicode-range:U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/geist-mono-normal-500-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/geist-mono-normal-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/geist-mono-normal-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/instrument-sans-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/instrument-sans-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/instrument-sans-normal-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/instrument-sans-normal-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/instrument-sans-normal-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/instrument-sans-normal-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Instrument Serif';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/instrument-serif-italic-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Instrument Serif';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/instrument-serif-italic-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Instrument Serif';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/instrument-serif-normal-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Instrument Serif';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/instrument-serif-normal-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* Oveile — a quiet, practical workspace for private file transfers. */
:root {
  color-scheme: light;
  --canvas: #101718;
  --surface: #f7f1e6;
  --surface-soft: #f1eadd;
  --ink: #302b25;
  --muted: #756b60;
  --subtle: #877b6d;
  --line: #e0d6c7;
  --line-strong: #d3c4b2;
  --accent: #147d70;
  --accent-hover: #0d6258;
  --accent-soft: #dcece4;
  --success: #48674e;
  --success-soft: #edf0e5;
  --danger: #bc3547;
  --danger-soft: #fff2f3;
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --max: 1120px;
  --gutter: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 320px; min-height: 100dvh; background: var(--canvas); color: var(--ink); font: 400 16px/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body[data-page='home'] { display: flex; flex-direction: column; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { padding: 0; border: 0; background: none; cursor: pointer; }
button:disabled, [aria-disabled='true'] { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
img { height: auto; }
h1, h2, h3, h4, p, figure, pre, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
code, pre, .mono { font-family: var(--font-mono); }
::selection { background: #cbe7da; color: var(--ink); }
:focus-visible { outline: 3px solid #81b5a2; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; top: -100px; left: 20px; z-index: 100; padding: 12px 18px; border-radius: 8px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow-ok { color: var(--success); }

/* Shared navigation. */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header-inner { display: flex; align-items: center; gap: 34px; width: min(var(--max), calc(100% - var(--gutter) * 2)); min-height: 76px; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; color: var(--ink); }
.brand-name { font-size: 26px; font-weight: 600; letter-spacing: -.055em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 36px; color: var(--accent); }
.brand-mark svg { width: 32px; height: 32px; }
.site-nav { display: flex; align-items: center; gap: 3px; margin-inline: auto; }
.site-nav a { padding: 9px 12px; border-radius: 7px; color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .15s, background-color .15s; }
.site-nav a:hover { background: var(--canvas); color: var(--ink); }
.site-nav a[aria-current='page'] { background: var(--accent-soft); color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .header-action { min-height: 39px; padding: 9px 14px; font-size: 12px; }
.lang { position: relative; color: var(--muted); font-size: 12px; }
.lang summary { display: flex; align-items: center; gap: 6px; padding: 9px 0; list-style: none; cursor: pointer; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 15px; height: 15px; }
.lang summary > svg:last-child { width: 12px; height: 12px; }
.lang-list { position: absolute; z-index: 20; top: 39px; right: -12px; min-width: 145px; max-height: 280px; padding: 6px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 26px #18212f13; }
.lang-list a { display: block; padding: 7px 9px; border-radius: 4px; }
.lang-list a:hover, .lang-list a[aria-current='page'] { background: var(--accent-soft); color: var(--accent); }

/* Consistent buttons and form fields. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 17px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 600; line-height: 1.35; text-align: center; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.btn-primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: #b1bdcd; background: var(--canvas); }
.btn-danger { border-color: #f0d4d8; background: #fff; color: var(--danger); }
.btn-danger:hover { border-color: #e5b1b9; background: var(--danger-soft); }
.btn-sm { min-height: 36px; padding: 8px 12px; font-size: 12px; }
.btn[aria-busy='true'], button:disabled { opacity: .6; pointer-events: none; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 13px; font-weight: 500; }
.text-link svg { width: 16px; height: 16px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.input { display: grid; gap: 7px; min-width: 0; }
.input > span { font-size: 13px; font-weight: 500; }
.input > small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.input input, .code-input { width: 100%; min-width: 0; min-height: 44px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.input input::placeholder, .code-input::placeholder { color: #9199a7; opacity: 1; }
.input input:focus, .code-input:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px #dcefe5; }
.input input:user-invalid, .code-input.is-invalid { border-color: var(--danger); }
.check { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; cursor: pointer; }
.check input { flex-shrink: 0; width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }

/* A single, focused transfer workspace on the homepage. */
.home-main, .content-main { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.home-main { flex: 1; width: min(820px, calc(100% - var(--gutter) * 2)); padding-block: 35px 44px; }
.home-intro { display: grid; gap: 10px; margin-bottom: 25px; text-align: center; }
.home-intro h1 { font-size: clamp(30px, 3.5vw, 42px); line-height: 1.16; letter-spacing: -.04em; text-wrap: balance; }
.home-intro > p:not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.transfer-shell { min-width: 0; overflow: hidden; border: 1px solid #dde3eb; border-radius: 17px; background: var(--surface); box-shadow: 0 5px 20px #18212f05; }
.workspace-tabs { display: flex; align-items: center; gap: 5px; min-height: 68px; padding: 12px 25px; border-bottom: 1px solid var(--line); }
.workspace-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 21px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.4; }
.workspace-tabs button svg { width: 18px; height: 18px; }
.workspace-tabs button:hover { background: var(--canvas); color: var(--ink); }
.workspace-tabs button[aria-selected='true'] { background: var(--accent-soft); color: var(--accent); }
.workspace-tabs button[aria-selected='true']:hover { background: #dcece1; }
.transfer-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.transfer-main { min-width: 0; padding: 30px; }
.transfer-workspace { min-width: 0; }
.panel { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
#stage[data-mode='send'] > .panel-open, #stage[data-mode='open'] > .panel-share { display: none; }
.panel-heading { display: grid; gap: 5px; }
.panel-heading h2 { font-size: 19px; line-height: 1.4; letter-spacing: -.02em; }
.panel-heading p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.workspace-privacy { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 23px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.workspace-privacy svg { width: 13px; height: 13px; }
.transfer-aside { min-width: 0; padding: 29px 26px; border-inline-start: 1px solid var(--line); background: var(--surface-soft); }
.aside-eyebrow { margin-bottom: 10px; color: #8690a0; font-size: 10px; font-weight: 600; letter-spacing: .13em; }
.transfer-aside > h2 { margin-bottom: 27px; font-size: 18px; line-height: 1.4; letter-spacing: -.025em; }
.trust-list { display: grid; gap: 25px; }
.trust-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 10px; }
.trust-icon { margin-top: 1px; color: var(--success); }
.trust-icon svg { width: 20px; height: 20px; }
.trust-list h3 { margin-bottom: 4px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.trust-list p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.aside-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 27px; color: var(--accent); font-size: 12px; font-weight: 500; }
.aside-link svg { width: 15px; height: 15px; }
.aside-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.transfer-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 25px; padding-top: 21px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.7; }
.transfer-note svg { width: 15px; height: 15px; margin-top: 2px; color: var(--subtle); }

/* A clear drop target, with settings immediately below it. */
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 17px; min-height: 248px; padding: 28px 24px; overflow: hidden; border: 1.5px dashed #ccdccc; border-radius: 11px; background: #fbfcf8; text-align: center; transition: border-color .15s, background-color .15s; }
.drop:hover { border-color: #88b7a2; background: #f0f7ef; }
.drop.over { border-color: var(--accent); border-style: solid; background: var(--accent-soft); }
.drop-icon { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #d2e5d5; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.drop-icon svg { width: 23px; height: 23px; }
.drop-copy { display: grid; justify-items: center; gap: 12px; }
.drop-title { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.4; }
.drop-sub { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 12px; }
.drop .btn { min-height: 48px; padding: 13px 26px; font-size: 14px; }
.drop-meta { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.drop-status { display: none; align-items: center; flex-direction: column; gap: 7px; max-width: 100%; }
.drop-filename { max-width: 100%; overflow: hidden; font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.drop-progress { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
#stage[data-state='busy'] .drop { cursor: wait; }
#stage[data-state='busy'] .drop-copy { display: none; }
#stage[data-state='busy'] .drop-status { display: flex; }
#stage[data-state='busy'] .drop::after { content: ''; position: absolute; inset-inline-start: 0; bottom: 0; width: calc(var(--p, 0) * 1%); height: 4px; background: var(--accent); transition: width .2s linear; }
#stage[data-state='busy'] .drop-icon { animation: busy-pulse 1.2s ease-in-out infinite; }
#stage[data-state='done'] .panel-share > .drop, #stage[data-state='done'] .panel-share > .panel-heading, #stage:not([data-state='idle']) .share-options { display: none; }
@keyframes busy-pulse { 50% { opacity: .45; } }
.share-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 20px; }
.seg legend { margin-bottom: 9px; color: var(--muted); font-size: 12px; font-weight: 500; }
.expiry-options { display: flex; flex-wrap: wrap; gap: 7px; }
.seg label { position: relative; display: flex; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; justify-content: center; min-height: 35px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.35; transition: background-color .15s, border-color .15s; }
.seg input:checked + span { border-color: #9fcbb9; background: var(--accent-soft); color: var(--accent); }
.seg input:focus-visible + span { outline: 3px solid #83bba8; outline-offset: 2px; }
.switch { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 11px; min-width: 0; cursor: pointer; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-track { position: relative; flex: 0 0 36px; width: 36px; height: 21px; border: 1px solid #c8d0da; border-radius: 20px; background: #d7dce4; transition: background-color .15s, border-color .15s; }
.switch-track::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #18212f20; transition: transform .15s; }
.switch input:checked + .switch-track { border-color: var(--accent); background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(15px); }
[dir='rtl'] .switch input:checked + .switch-track::after { transform: translateX(-15px); }
.switch input:focus-visible + .switch-track { outline: 3px solid #83bba8; outline-offset: 3px; }
.switch-text { display: grid; gap: 3px; }
.switch-text strong { font-size: 12px; font-weight: 500; line-height: 1.4; }
.switch-text small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.form-error, .form-status { font-size: 13px; line-height: 1.6; }
.form-error { padding: 11px 13px; border-radius: 7px; background: var(--danger-soft); color: var(--danger); }
.form-error.is-ok, .form-status.is-ok { color: var(--success); }
.form-status { color: var(--muted); }
.form-status.is-error { color: var(--danger); }
.form-status:empty { display: none; }

/* Share results: separate link, code, optional email and management actions. */
.result { display: grid; gap: 20px; }
.result-heading { display: flex; align-items: center; gap: 12px; }
.result-heading > div { display: grid; gap: 3px; }
.result-check { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #cde6d7; border-radius: 11px; background: var(--success-soft); color: var(--success); }
.result-check svg { width: 22px; height: 22px; }
.result-title { font-size: 24px; line-height: 1.25; letter-spacing: -.03em; }
.result-lede { margin-top: -5px; max-width: 55ch; color: var(--muted); font-size: 13px; line-height: 1.7; }
.field { display: grid; gap: 8px; min-width: 0; }
.field-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.field-label { color: var(--ink); font-size: 13px; font-weight: 600; }
.field-hint { color: var(--muted); font-size: 12px; }
.copy-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 7px 7px 7px 13px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-soft); }
.copy-value { flex: 1; min-width: 0; color: #3d4a5d; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; direction: ltr; text-align: start; }
.copy-btn { flex-shrink: 0; background: #fff; }
.copy-btn svg:nth-of-type(2) { display: none; }
.copy-btn.copied { border-color: #b4d8c4; background: var(--success-soft); color: var(--success); }
.copy-btn.copied svg:nth-of-type(1) { display: none; }
.copy-btn.copied svg:nth-of-type(2) { display: block; }
.code-display { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 0; min-width: 0; padding-block: 3px; color: var(--ink); font-size: 14px; line-height: 1.65; letter-spacing: .015em; direction: ltr; }
.code-display .g { display: inline-flex; }
.code-display .g:not(:last-child)::after { content: '-'; margin-inline: 2px; color: #a0a8b4; }
.code-display .ch { display: inline; font-weight: 500; }
.result-meta { margin-top: -7px; color: var(--muted); font-size: 12px; }
.email-details { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.email-details > summary { display: flex; align-items: center; gap: 8px; padding: 15px; background: var(--surface-soft); color: var(--muted); font-size: 13px; font-weight: 500; list-style: none; cursor: pointer; }
.email-details > summary::-webkit-details-marker { display: none; }
.email-details > summary > svg { width: 16px; height: 16px; }
.email-details > summary > svg:last-child { margin-inline-start: auto; }
.email-details[open] > summary { border-bottom: 1px solid var(--line); }
.email-details[open] > summary > svg:last-child { transform: rotate(180deg); }
.emails { display: grid; gap: 16px; padding: 19px; }
.email-intro { color: var(--muted); font-size: 12px; line-height: 1.7; }
.emails-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.emails-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.emails-status { color: var(--muted); font-size: 12px; }
.emails-status.is-error { color: var(--danger); }
.emails-status.is-ok { color: var(--success); }
.result-actions { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 2px; }

/* Received files and safe local previews. */
.panel-open { min-height: 265px; padding: 18px 3px; }
.open-intro { gap: 10px; }
.open-intro h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.03em; }
.open-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 5px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.open-icon svg { width: 22px; height: 22px; }
.open-form { display: grid; gap: 11px; }
.code-input { min-height: 51px; padding: 14px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .035em; direction: ltr; }
.code-input::placeholder { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; }
.open-form > .btn { justify-self: start; min-width: 154px; margin-top: 2px; }
.viewer { display: grid; gap: 17px; margin-top: 3px; padding-top: 23px; border-top: 1px solid var(--line); }
.viewer-file { display: flex; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.viewer-icon { display: grid; place-items: center; flex: 0 0 40px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--accent); }
.viewer-icon svg { width: 22px; height: 22px; }
.viewer-text { display: grid; gap: 5px; min-width: 0; }
.viewer-name { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.viewer-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 12px; }
.dot { color: #a2aab6; }
.viewer-burn { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; border: 1px solid #efdbc3; border-radius: 8px; background: #fffbf3; color: #89602c; font-size: 13px; line-height: 1.6; }
.viewer-burn svg { width: 18px; height: 18px; margin-top: 1px; }
.viewer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.viewer-preview { display: grid; place-items: center; min-height: 130px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.viewer-preview img, .viewer-preview video { max-width: 100%; max-height: 65vh; object-fit: contain; }
.viewer-preview iframe { width: 100%; height: 65vh; border: 0; background: #fff; }
.viewer-preview audio { width: 100%; padding: 16px; }
.viewer-preview pre { width: 100%; max-height: 55vh; padding: 18px; overflow: auto; color: #3b4758; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; text-align: start; direction: ltr; }
.viewer-preview p { padding: 24px; color: var(--muted); font-size: 13px; text-align: center; }
.handoff-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; margin-top: 30px; padding-inline: 2px; }
.handoff-step { display: flex; align-items: flex-start; gap: 11px; }
.step-number { display: grid; place-items: center; flex-shrink: 0; width: 27px; height: 27px; border: 1px solid #dce2eb; border-radius: 50%; background: #fff; color: #6a778c; font-size: 11px; font-weight: 500; }
.handoff-step h2 { margin-block: 1px 4px; font-size: 12px; line-height: 1.5; font-weight: 500; }
.handoff-step p { color: var(--muted); font-size: 11px; line-height: 1.7; }

/* Supporting pages are useful documents, each with a real URL. */
.content-main { padding-block: 50px 68px; }
.page-intro { display: grid; gap: 14px; max-width: 810px; margin-bottom: 34px; }
.page-intro h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.13; letter-spacing: -.045em; text-wrap: balance; }
.page-intro > p:not(.eyebrow) { max-width: 700px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 34px; align-items: start; }
.prose { display: grid; gap: 31px; min-width: 0; }
.content-section { display: grid; gap: 14px; }
.content-section > h2 { font-size: 23px; line-height: 1.35; letter-spacing: -.03em; }
.content-section > p { color: var(--muted); font-size: 14px; line-height: 1.85; }
.content-aside { display: grid; gap: 18px; min-width: 0; }
.content-card { display: grid; gap: 14px; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.content-card h2 { font-size: 16px; line-height: 1.5; letter-spacing: -.015em; }
.content-card p { color: var(--muted); font-size: 12px; line-height: 1.85; }
.content-card .small-note { padding-top: 13px; border-top: 1px solid var(--line); font-size: 11px; }
.card-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.card-icon svg { width: 20px; height: 20px; }
.security-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 24px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.security-flow li { position: relative; display: grid; justify-items: center; gap: 12px; padding-inline: 13px; color: #3e4d62; font-size: 12px; font-weight: 500; text-align: center; }
.flow-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.flow-icon svg { width: 22px; height: 22px; }
.security-flow li > svg { position: absolute; top: 14px; right: -9px; width: 18px; height: 18px; color: #b5becb; }
.notice { display: flex; align-items: flex-start; gap: 13px; padding: 21px; border: 1px solid #d7e5dd; border-radius: 10px; background: #eff7f2; }
.notice-icon { padding-top: 2px; color: var(--success); }
.notice-icon svg { width: 21px; height: 21px; }
.notice > div { display: grid; gap: 9px; }
.notice h2 { color: #315e47; font-size: 15px; line-height: 1.5; }
.notice p { color: #587061; font-size: 13px; line-height: 1.8; }
.fact-list { display: grid; gap: 15px; }
.fact-list > div { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.fact-list dt { color: var(--muted); font-size: 11px; }
.fact-list dd { font-size: 13px; font-weight: 500; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mode-card { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mode-number { color: #8490a0; font-size: 11px; }
.mode-card h3 { font-size: 17px; line-height: 1.45; letter-spacing: -.02em; }
.mode-card p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.mode-card code { justify-self: start; margin-top: 3px; padding: 4px 7px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 10px; }
.code-block { overflow: hidden; border: 1px solid #dce2eb; border-radius: 10px; background: #f9fafc; }
.code-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 17px; border-bottom: 1px solid var(--line); background: #f0f3f8; color: #67748a; font-size: 10px; font-weight: 500; }
.code-header .copy-btn { min-height: 30px; padding: 6px 9px; font-size: 11px; }
.code-header .copy-btn svg { width: 14px; height: 14px; }
.code-block pre { max-width: 100%; padding: 20px 18px; overflow-x: auto; color: #35445d; font-size: 11px; line-height: 1.9; text-align: left; direction: ltr; }
.code-block code { font-family: inherit; }
.download-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 2px 4px; }
.endpoint-list { display: grid; overflow: hidden; padding: 4px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.endpoint-list li { display: grid; grid-template-columns: 57px minmax(0, 1fr); gap: 4px 12px; padding-block: 16px; }
.endpoint-list li + li { border-top: 1px solid var(--line); }
.endpoint-list code { align-self: center; font-size: 11px; overflow-wrap: anywhere; direction: ltr; }
.endpoint-list p { grid-column: 2; color: var(--muted); font-size: 12px; line-height: 1.7; }
.method { align-self: start; padding: 4px 5px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-family: var(--font-mono); font-size: 10px; text-align: center; }
.method-get { background: #eaf5ef; color: #31704f; }
.method-delete { background: var(--danger-soft); color: var(--danger); }
.help-steps { display: grid; gap: 24px; padding: 27px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.help-steps li { display: flex; align-items: flex-start; gap: 14px; }
.help-steps .step-number { background: var(--accent-soft); color: var(--accent); }
.help-steps h3 { margin-bottom: 6px; font-size: 15px; line-height: 1.7; }
.help-steps p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.faq-list { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; font-size: 14px; font-weight: 500; line-height: 1.6; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary svg { width: 16px; height: 16px; color: var(--subtle); transition: transform .15s; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-answer { padding: 0 24px 22px; color: var(--muted); font-size: 13px; line-height: 1.85; }

/* The footer is compact and functional. */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; width: min(var(--max), calc(100% - var(--gutter) * 2)); min-height: 109px; margin-inline: auto; padding-block: 24px; }
.footer-brand { display: grid; gap: 6px; }
.site-footer .brand { gap: 5px; }
.site-footer .brand-name { font-size: 20px; }
.site-footer .brand-mark, .site-footer .brand-mark svg { width: 25px; height: 25px; }
.footer-brand > p, .footer-meta > p { color: var(--muted); font-size: 11px; }
.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 12px; }
.footer-links a:hover { color: var(--accent); }
.footer-meta { display: grid; gap: 9px; justify-items: end; }
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #a5adba; }
.status-dot.ok { background: #3c9e75; }
.status-dot.bad { background: var(--danger); }

@media (max-width: 1050px) {
  .site-header-inner { gap: 17px; }
  .site-nav { gap: 0; }
  .site-nav a { padding-inline: 9px; font-size: 13px; }
  .header-actions { gap: 13px; }
  .header-actions .header-action { font-size: 11px; padding-inline: 11px; }
  .transfer-main { padding: 27px; }
  .transfer-aside { padding: 26px 21px; }
  .content-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 25px; }
}
@media (max-width: 800px) {
  :root { --gutter: 20px; }
  .site-header-inner { min-height: 70px; }
  .brand-name { font-size: 24px; }
  .brand-mark, .brand-mark svg { width: 29px; height: 29px; }
  .header-actions .header-action { display: none; }
  .site-nav { margin-inline-start: auto; margin-inline-end: 7px; }
  .home-main { padding-block: 29px 38px; }
  .home-intro { gap: 10px; margin-bottom: 23px; }
  .home-intro h1 { font-size: 38px; }
  .home-intro > p:not(.eyebrow) { font-size: 14px; }
  .transfer-layout { grid-template-columns: 1fr; }
  .transfer-main { padding: 24px; }
  .transfer-aside { padding: 25px; border-top: 1px solid var(--line); border-inline-start: 0; }
  .aside-eyebrow { display: none; }
  .transfer-aside > h2 { margin-bottom: 23px; font-size: 16px; }
  .trust-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .trust-list li { grid-template-columns: 1fr; gap: 10px; }
  .trust-list h3 { font-size: 12px; }
  .trust-list p { font-size: 11px; }
  .aside-link { margin-top: 23px; }
  .transfer-note { margin-top: 20px; padding-top: 18px; }
  .share-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .switch { justify-content: flex-end; }
  .handoff-strip { gap: 21px; }
  .content-main { padding-block: 35px 44px; }
  .page-intro { margin-bottom: 26px; }
  .page-intro h1 { font-size: 40px; }
  .page-intro > p:not(.eyebrow) { font-size: 14px; }
  .content-layout { grid-template-columns: 1fr; gap: 28px; }
  .content-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .footer-inner { flex-wrap: wrap; }
  .footer-meta { width: 100%; display: flex; justify-content: space-between; padding-top: 17px; border-top: 1px solid var(--line); }
}
@media (max-width: 540px) {
  :root { --gutter: 16px; }
  .site-header-inner { position: relative; flex-wrap: wrap; justify-content: space-between; min-height: auto; gap: 0; padding-top: 15px; }
  .brand { gap: 7px; }
  .brand-name { font-size: 24px; }
  .header-actions { margin-inline-start: auto; padding-block: 1px; }
  .lang { font-size: 11px; }
  .lang summary { gap: 5px; }
  .site-nav { order: 3; justify-content: space-between; width: 100%; margin: 13px 0 0; padding-block: 8px; border-top: 1px solid #f0f2f5; }
  .site-nav a { padding: 8px 13px; font-size: 12px; }
  .home-main { padding-block: 26px 32px; }
  .home-intro { gap: 10px; margin-bottom: 22px; }
  .home-intro .eyebrow { font-size: 10px; }
  .home-intro h1 { font-size: 30px; line-height: 1.2; letter-spacing: -.04em; }
  .home-intro > p:not(.eyebrow) { font-size: 13px; line-height: 1.7; }
  .transfer-shell { border-radius: 12px; }
  .workspace-tabs { min-height: 64px; padding: 11px 15px; gap: 5px; }
  .workspace-tabs button { min-height: 40px; padding: 9px 16px; font-size: 12px; }
  .workspace-tabs button svg { width: 16px; height: 16px; }
  .transfer-main { padding: 19px 18px; }
  .panel { gap: 20px; }
  .panel-heading h2 { font-size: 18px; }
  .panel-heading p { font-size: 12px; }
  .drop { min-height: 240px; padding: 25px 15px; gap: 16px; border-radius: 8px; }
  .drop-title { font-size: 12px; }
  .drop-meta { font-size: 10px; }
  .drop .btn { min-height: 48px; padding-inline: 27px; }
  .share-options { grid-template-columns: 1fr; gap: 19px; }
  .seg legend { margin-bottom: 9px; font-size: 11px; }
  .expiry-options { gap: 8px; }
  .seg span { min-height: 36px; padding-inline: 15px; }
  .switch { justify-content: flex-start; }
  .workspace-privacy { align-items: flex-start; gap: 6px; margin-top: 20px; font-size: 10px; }
  .workspace-privacy svg { margin-top: 1px; }
  .transfer-aside { padding: 23px 20px; }
  .transfer-aside > h2 { margin-bottom: 21px; }
  .trust-list { grid-template-columns: 1fr; gap: 20px; }
  .trust-list li { grid-template-columns: 20px minmax(0, 1fr); gap: 11px; }
  .trust-list h3 { font-size: 12px; }
  .trust-list p { font-size: 12px; line-height: 1.7; }
  .panel-open { min-height: 246px; padding: 12px 1px; }
  .open-intro h2 { font-size: 23px; }
  .open-form > .btn { width: 100%; }
  .code-input { padding-inline: 12px; font-size: 11px; }
  .code-input::placeholder { font-size: 12px; }
  .result-title { font-size: 23px; }
  .field-head { gap: 3px 8px; }
  .field-hint { font-size: 11px; }
  .copy-row { gap: 7px; padding-inline-start: 10px; }
  .copy-value { font-size: 10px; }
  .copy-btn { min-height: 34px; padding: 7px 9px; font-size: 11px; gap: 5px; }
  .copy-btn svg { width: 14px; height: 14px; }
  .code-display { font-size: 12px; line-height: 1.7; }
  .code-display .g:not(:last-child)::after { margin-inline: 1px; }
  .emails { padding: 18px 14px; }
  .emails-grid { grid-template-columns: 1fr; gap: 15px; }
  .check { font-size: 12px; }
  .result-actions > .btn { flex: 1 1 auto; font-size: 12px; }
  .viewer-file { gap: 10px; padding: 13px; }
  .viewer-name { font-size: 13px; }
  .viewer-meta { font-size: 11px; }
  .viewer-actions > .btn { width: 100%; }
  .viewer-preview pre { padding: 13px; font-size: 11px; }
  .handoff-strip { grid-template-columns: 1fr; gap: 21px; margin-top: 25px; padding-inline: 3px; }
  .handoff-step { gap: 13px; }
  .handoff-step h2 { font-size: 13px; }
  .handoff-step p { font-size: 12px; }
  .content-main { padding-block: 31px 38px; }
  .page-intro { gap: 12px; margin-bottom: 25px; }
  .page-intro h1 { font-size: 34px; }
  .page-intro > p:not(.eyebrow) { font-size: 13px; }
  .prose { gap: 28px; }
  .content-section > h2 { font-size: 21px; }
  .content-section > p { font-size: 13px; }
  .content-aside { grid-template-columns: 1fr; gap: 16px; }
  .content-card { padding: 23px 21px; }
  .security-flow { padding: 21px 10px; }
  .security-flow li { padding-inline: 7px; gap: 11px; font-size: 10px; }
  .security-flow li > svg { right: -7px; width: 15px; height: 15px; }
  .notice { gap: 10px; padding: 18px 17px; }
  .notice p { font-size: 12px; }
  .mode-grid { grid-template-columns: 1fr; gap: 14px; }
  .mode-card { padding: 23px 21px; }
  .code-block pre { padding: 18px 14px; font-size: 10px; }
  .code-header { padding-inline: 14px; }
  .endpoint-list { padding-inline: 15px; }
  .endpoint-list li { grid-template-columns: 49px minmax(0, 1fr); gap: 6px 10px; }
  .endpoint-list code { font-size: 10px; }
  .endpoint-list p { font-size: 11px; }
  .help-steps { gap: 23px; padding: 23px 19px; }
  .help-steps li { gap: 11px; }
  .help-steps h3 { font-size: 14px; }
  .help-steps p { font-size: 12px; }
  .faq-item summary { gap: 14px; padding: 18px 19px; font-size: 13px; }
  .faq-answer { padding: 0 19px 20px; font-size: 12px; }
  .footer-inner { justify-content: center; padding-block: 24px; gap: 22px; text-align: center; }
  .footer-brand { justify-items: center; width: 100%; gap: 8px; }
  .footer-links { justify-content: center; gap: 23px; }
  .footer-meta { display: grid; justify-content: center; justify-items: center; gap: 11px; padding-top: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (prefers-contrast: more) {
  :root { --muted: #424d5d; --line: #aab4c3; --line-strong: #8996aa; }
}
@media print {
  body { background: #fff; }
  .site-header, .site-footer, .transfer-shell, .content-aside { display: none; }
  .content-main { width: 100%; padding: 0; }
  .content-layout { display: block; }
  .content-section { break-inside: avoid; }
}

/* A shared ink shell surrounds the transfer scene and ivory reading surfaces. */
body[data-page='home'] { display: block; position: relative; min-height: 100svh; background: #091217; }
.scene-rail { position: fixed; inset: 0 auto 0 0; z-index: 50; display: flex; flex-direction: column; align-items: center; width: 84px; padding: 24px 10px 20px; border-right: 1px solid #efdfc612; background: linear-gradient(180deg, #1c2526ed, #0e1719f2); color: #ede3d1; box-shadow: 4px 0 30px #0000000d; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.rail-brand { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 39px; color: #f0e5d2; }
.rail-brand svg { width: 35px; height: 35px; }
.rail-actions { display: grid; gap: 12px; }
.rail-action { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; width: 62px; min-height: 62px; padding: 10px 4px; border-radius: 10px; color: #b6b4a9; font-size: 10px; font-weight: 500; line-height: 1.35; transition: background .15s, color .15s; }
.rail-action svg { width: 22px; height: 22px; }
.rail-action:hover { background: #eee1ca0a; color: #faf2e3; }
.rail-action.is-active { background: #eee1ca0c; color: #b4ddce; }
.rail-action.is-active::before { content: ''; position: absolute; top: 17px; bottom: 17px; left: 0; width: 2px; border-radius: 2px; background: #5fae94; }
.rail-bottom { display: grid; justify-items: center; gap: 19px; margin-top: auto; }
.rail-language summary { justify-content: center; width: 50px; padding: 10px; }
.rail-language summary > svg { width: 19px; height: 19px; }
.rail-language summary > span { display: none; }
.rail-language summary { color: #b6b4a9; }
.rail-language .lang-list { top: auto; bottom: 0; right: auto; left: 55px; min-width: 150px; }
.scene-header { position: fixed; z-index: 40; top: 25px; right: 32px; border: 1px solid #ffffff; border-radius: 11px; background: #fff; box-shadow: 0 8px 28px #00000020; }
.scene-nav { display: flex; align-items: center; gap: 5px; padding: 7px; }
.scene-nav a { padding: 10px 17px; border-radius: 5px; color: #111715; font-size: 12px; font-weight: 500; line-height: 1.35; white-space: nowrap; transition: color .15s, background .15s; }
.scene-nav a:hover, .scene-nav a[aria-current='page'] { background: #eef3ef; color: #111715; }
.scene-nav a:focus-visible { outline: 2px solid #398979; outline-offset: 1px; }
.scene-wordmark { position: fixed; z-index: 40; top: 28px; left: 140px; color: #f1e9da; font-size: 29px; font-weight: 500; line-height: 1.25; letter-spacing: -.075em; }
.scene-main { position: relative; isolation: isolate; display: grid; grid-template-columns: 350px minmax(0, 1fr); align-items: center; gap: 86px; width: calc(100% - 84px); min-height: 100svh; margin-left: 84px; padding: 120px 56px 160px; }
.scene-transfer { position: relative; z-index: 3; min-width: 0; width: 350px; }
.scene-story { min-width: 0; }
.scene-copy { position: relative; z-index: 2; max-width: 610px; padding-right: 48px; color: #f2eadc; }
.scene-kicker { margin-bottom: 23px; color: #9ebfb3; font-size: 9px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.scene-copy h1 { line-height: 1; }
.scene-title-line { display: block; }
.scene-title-primary { font-family: var(--font-sans); font-size: clamp(36px, 3.2vw, 44px); font-weight: 500; line-height: 1.12; letter-spacing: -.05em; }
.scene-title-accent { color: #b6dece; margin-top: 4px; font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(64px, 5.7vw, 82px); font-style: italic; font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.scene-lede { max-width: 340px; margin-top: 25px; color: #c8c2b7; font-size: 13px; line-height: 1.8; }
.scene-art-frame { position: fixed; z-index: 0; inset: 0 0 0 84px; overflow: hidden; pointer-events: none; }
.scene-art { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: translate3d(var(--veil-x, 0px), var(--veil-y, 0px), 0) scale(1.025); transition: transform 1.3s ease-out; }
.scene-art-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at var(--veil-light-x, 65%) 44%, #b7e6e20d, transparent 48%); }
.scene-footer { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: -47px; margin-left: 84px; padding: 0 56px 24px; color: #dbe5f980; font-size: 10px; }
.scene-footer .status { color: #dbe5f980; font-size: 10px; }

/* Compact tool card, with a deliberate file → settings → link sequence. */
body[data-page='home'] .transfer-shell { position: relative; overflow: visible; border: 1px solid #f5e9d599; border-radius: 17px; background: #f7f1e6; box-shadow: 0 26px 80px #0005; }
body[data-page='home'] .transfer-shell::before { content: ''; position: absolute; top: 28px; bottom: 28px; left: -1px; width: 2px; background: linear-gradient(transparent, #5b9e88, transparent); pointer-events: none; }
body[data-page='home'] .workspace-tabs { gap: 3px; min-height: 63px; padding: 11px 13px; border-bottom-color: #e1d6c6; }
body[data-page='home'] .workspace-tabs button { position: relative; flex: 1; gap: 7px; min-height: 40px; padding: 9px 10px; border-radius: 4px; color: #887c6c; font-size: 12px; }
body[data-page='home'] .workspace-tabs button:hover { background: #eae0d15c; color: #33473f; }
body[data-page='home'] .workspace-tabs button[aria-selected='true'] { background: none; color: #33473f; }
body[data-page='home'] .workspace-tabs button[aria-selected='true']::after { content: ''; position: absolute; bottom: -12px; left: 21px; right: 21px; height: 2px; background: #529a88; }
body[data-page='home'] .workspace-tabs button svg { width: 16px; height: 16px; }
body[data-page='home'] .transfer-main { padding: 19px 20px 22px; }
body[data-page='home'] .panel { gap: 19px; }
body[data-page='home'] .drop { min-height: 190px; gap: 14px; padding: 18px 10px; border: 0; border-radius: 9px; background: #f7f1e6; }
body[data-page='home'] .drop:hover { background: #f1e8d9; }
body[data-page='home'] .drop.over { background: #dcece4; box-shadow: inset 0 0 0 2px #c19c76; }
body[data-page='home'] .drop-icon { width: 46px; height: 46px; border: 1px solid #c9ddd1; border-radius: 13px; background: #e6efe4; }
body[data-page='home'] .drop-icon svg { width: 24px; height: 24px; }
body[data-page='home'] .drop-copy { gap: 11px; }
body[data-page='home'] .drop .btn { min-width: 177px; min-height: 45px; padding: 12px 25px; border: 1px solid #253a34; border-radius: 7px; background: #253a34; color: #f5f4e7; font-size: 14px; }
body[data-page='home'] .drop .btn:hover { border-color: #36594b; background: #36594b; }
body[data-page='home'] .drop-title { color: #7c6f60; font-size: 11px; }
body[data-page='home'] .drop-meta { color: #8d8070; font-size: 10px; }
body[data-page='home'] .drop.has-file { min-height: 138px; padding-block: 13px; }
body[data-page='home'] .drop.has-file .drop-icon { display: none; }
body[data-page='home'] .share-options { grid-template-columns: 1fr; gap: 16px; padding-top: 0; }
body[data-page='home'] .seg legend { margin-bottom: 8px; color: #6e8071; font-size: 11px; }
body[data-page='home'] .expiry-options { gap: 7px; }
body[data-page='home'] .seg label { flex: 1; }
body[data-page='home'] .seg span { width: 100%; min-height: 33px; padding: 7px 9px; font-size: 11px; }
body[data-page='home'] .switch { justify-content: flex-start; min-height: 27px; gap: 9px; }
body[data-page='home'] .switch-text strong { font-size: 12px; }
body[data-page='home'] #selected-file { display: flex; align-items: center; gap: 8px; padding: 10px 11px; border: 1px solid #e0d3c0; border-radius: 7px; background: #f1e9dc; color: #526b5f; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
body[data-page='home'] #selected-file svg { width: 16px; height: 16px; color: var(--accent); }
body[data-page='home'] .transfer-start { width: 100%; min-height: 46px; font-size: 14px; }
body[data-page='home'] .transfer-start:disabled { border-color: #e4dccc; background: #e4dccc; color: #9a8c79; opacity: 1; }
body[data-page='home'] #stage[data-state='done'] #selected-file, body[data-page='home'] #stage[data-state='done'] .transfer-start { display: none; }
body[data-page='home'] .panel-open { justify-content: center; min-height: 300px; padding: 9px 0 7px; }
body[data-page='home'] .open-form { gap: 11px; }
body[data-page='home'] .open-form > .btn { width: 100%; min-height: 45px; margin-top: 3px; }
body[data-page='home'] .code-input { min-height: 49px; padding: 13px 11px; font-size: 12px; }
body[data-page='home'] .code-input::placeholder { font-size: 12px; }
body[data-page='home'] .field-label { font-size: 12px; }
body[data-page='home'] .field-hint { font-size: 10px; }
body[data-page='home'] .result { gap: 18px; }
body[data-page='home'] .result-heading { gap: 10px; }
body[data-page='home'] .result-check { flex: 0 0 35px; width: 35px; height: 35px; border-radius: 9px; }
body[data-page='home'] .result-check svg { width: 19px; height: 19px; }
body[data-page='home'] .result-heading .eyebrow { font-size: 9px; }
body[data-page='home'] .result-title { font-size: 20px; }
body[data-page='home'] .result-lede { font-size: 11px; line-height: 1.75; }
body[data-page='home'] .copy-row { gap: 7px; padding: 6px 6px 6px 10px; }
body[data-page='home'] .copy-value { font-size: 10px; }
body[data-page='home'] .code-display { font-size: 11px; line-height: 1.7; }
body[data-page='home'] .copy-btn { gap: 5px; min-height: 33px; padding: 7px 8px; font-size: 10px; }
body[data-page='home'] .copy-btn svg { width: 13px; height: 13px; }
body[data-page='home'] .result-meta { font-size: 11px; }
body[data-page='home'] .email-details > summary { padding: 13px 11px; font-size: 11px; }
body[data-page='home'] .emails { padding: 16px 12px; }
body[data-page='home'] .emails-grid { grid-template-columns: 1fr; }
body[data-page='home'] .email-intro, body[data-page='home'] .input > small { font-size: 11px; }
body[data-page='home'] .check { align-items: flex-start; font-size: 11px; }
body[data-page='home'] .result-actions > .btn { flex: 1 1 auto; min-height: 39px; padding: 9px 11px; font-size: 11px; }
body[data-page='home'] .viewer-file { gap: 9px; padding: 12px; }
body[data-page='home'] .viewer-name { font-size: 12px; }
body[data-page='home'] .viewer-meta { font-size: 10px; }
body[data-page='home'] .viewer-actions > .btn { width: 100%; min-height: 42px; font-size: 12px; }
body[data-page='home'] .viewer-preview { min-height: 110px; }
body[data-page='home'] .viewer-preview pre { padding: 13px; font-size: 10px; }
body[data-page='home'] .form-error, body[data-page='home'] .form-status { font-size: 12px; }

@media (max-width: 1200px) {
  .scene-main { grid-template-columns: 330px minmax(0, 1fr); gap: 53px; padding-inline: 36px; }
  .scene-transfer { width: 330px; }
  .scene-copy { padding-right: 24px; }
  .scene-title-primary { font-size: 40px; }
  .scene-title-accent { font-size: 74px; }
  .scene-lede { max-width: 310px; font-size: 13px; }
  .scene-footer { padding-inline: 36px; }
}
@media (max-width: 1000px) {
  .scene-main { grid-template-columns: 320px minmax(0, 1fr); gap: 34px; padding-inline: 27px; }
  .scene-transfer { width: 320px; }
  .scene-copy { padding-right: 0; }
  .scene-title-primary { font-size: 32px; }
  .scene-title-accent { font-size: 60px; }
  .scene-lede { max-width: 255px; font-size: 12px; }
  .scene-header { right: 24px; }
  .scene-nav a { padding-inline: 14px; font-size: 12px; }
  .scene-footer { padding-inline: 27px; }
}
@media (max-width: 860px) {
  .scene-rail { inset: 0 0 auto; flex-direction: row; justify-content: space-between; width: 100%; height: 67px; padding: 7px 19px; }
  .rail-brand { width: 40px; height: 44px; margin: 0; }
  .rail-brand svg { width: 31px; height: 31px; }
  .rail-actions { display: flex; gap: 6px; }
  .rail-action { flex-direction: row; gap: 7px; width: auto; min-width: 64px; min-height: 42px; padding: 10px 12px; border-radius: 8px; font-size: 11px; }
  .rail-action svg { width: 18px; height: 18px; }
  .rail-bottom { display: flex; gap: 3px; margin: 0; }
  .rail-bottom > .rail-action { min-width: 40px; padding-inline: 9px; }
  .rail-bottom > .rail-action > span { display: none; }
  .rail-language summary { width: 33px; padding-inline: 6px; }
  .rail-language .lang-list { top: 42px; bottom: auto; right: 0; left: auto; }
  .scene-header { position: absolute; top: 83px; right: 50%; transform: translateX(50%); }
  .scene-nav { gap: 2px; padding: 5px; }
  .scene-nav a { padding: 9px 16px; font-size: 12px; }
  .scene-main { display: block; width: 100%; min-height: 100svh; margin: 0; padding: 155px 24px 79px; }
  .scene-transfer { width: min(370px, 100%); margin-inline: auto; }
  .scene-story { display: none; }
  .scene-footer { justify-content: center; flex-wrap: wrap; gap: 10px 24px; margin-left: 0; padding-inline: 24px; }
}
@media (max-width: 420px) {
  .scene-rail { padding-inline: 13px; }
  .rail-action { min-width: 59px; padding-inline: 9px; }
  .rail-actions { gap: 3px; }
  .scene-main { padding-inline: 16px; }
  .scene-nav a { padding-inline: 13px; }
  body[data-page='home'] .transfer-main { padding-inline: 18px; }
}
@media print {
  .scene-rail, .scene-header, .scene-footer, .scene-story { display: none; }
  .scene-main { width: 100%; min-height: 0; margin: 0; padding: 0; }
}

/* Oveile's mark and teal details carry through the shared shell. */
.brand-mark, .brand-mark svg { color: #398979; }
.rail-brand .logo { filter: drop-shadow(0 2px 8px #7ecbb020); }
.scene-footer, .scene-footer .status { color: #c3b8a680; }
body[data-page='home'] .panel-title { color: #3b3026; font-size: 21px; font-weight: 500; line-height: 1.3; letter-spacing: -.035em; }
body[data-page='home'] .panel-open .panel-title { text-align: center; }
body[data-page='home'] .open-symbol { display: grid; place-items: center; align-self: center; width: 54px; height: 54px; margin: 2px auto 0; border: 1px solid #cadbcc; border-radius: 16px; background: #e6eee4; color: #3e8c76; }
body[data-page='home'] .open-symbol svg { width: 30px; height: 30px; }
body[data-page='home'] .input input, body[data-page='home'] .code-input { border-color: #c8d8cb; background: #fffaf1; color: #2d443b; }
body[data-page='home'] .input input::placeholder, body[data-page='home'] .code-input::placeholder { color: #8c9a8e; }
body[data-page='home'] .input input:focus, body[data-page='home'] .code-input:focus { border-color: #4d9a83; box-shadow: 0 0 0 3px #6ead9750; }
body[data-page='home'] .seg span { border-color: #d8cbb9; background: #fbf6ec; color: #81715e; }
body[data-page='home'] .seg input:checked + span { border-color: #73a691; background: #dbece1; color: #2e6b56; }
body[data-page='home'] .seg input:focus-visible + span, body[data-page='home'] .switch input:focus-visible + .switch-track { outline-color: #81b5a2; }
body[data-page='home'] .recipient-field { gap: 7px; }
body[data-page='home'] .recipient-field > span { color: #526d61; font-size: 11px; font-weight: 500; }
body[data-page='home'] #share-recipient-email { min-height: 42px; font-size: 12px; }
body[data-page='home'] #viewer-recipient { color: #568171; overflow-wrap: anywhere; }
body[data-page='home'] .recipient-label { margin-top: -4px; color: #587667; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
body[data-page='home'] .viewer-file, body[data-page='home'] .copy-row { border-color: #ded1be; background: #f2eadc; }
body[data-page='home'] .viewer-icon { border-color: #e0d0b9; background: #fbf6ed; }
body[data-page='home'] .copy-value { color: #66523f; }
body[data-page='home'] .copy-btn { border-color: #dccdb9; background: #fffaf2; }
body[data-page='home'] .email-details { border-color: #e1d2bd; }
body[data-page='home'] .email-details > summary { background: #f0e6d6; }
body[data-page='home'] .viewer-preview { border-color: #dfd2c0; background: #fbf6ee; }
body[data-page='home'] .viewer-preview pre { color: #68533f; }

/* The three reading pages share the same rail and header, with an ivory reading surface. */
body:not([data-page='home']) { min-height: 100svh; background: #101a1c; }
body:not([data-page='home'])::before { content: ''; position: fixed; z-index: 20; top: 0; right: 0; left: 84px; height: 101px; background: linear-gradient(#101a1cf5 0, #101a1ce8 65%, #101a1c00); pointer-events: none; }
.content-main { width: calc(100% - 84px); min-height: 100svh; margin: 0 0 0 84px; padding: 132px 56px 92px; color: #f2e8d7; }
.content-main .page-intro { max-width: 1120px; margin-inline: auto; }
.content-main .page-intro > .eyebrow { color: #8fb4a1; }
.content-main .page-intro > p:not(.eyebrow) { color: #beb7aa; }
.content-main .content-layout { max-width: 1120px; margin-inline: auto; gap: 25px; }
.content-main .prose { padding: 32px; border: 1px solid #e2d2b9; border-radius: 17px; background: #f7f1e6; color: #302b25; }
.content-main .content-section > h2 { color: #2d443b; }
.content-main .content-section > p { color: #667565; }
.content-main .content-card { border-color: #e2d2b9; background: #f4ecde; color: #403325; }
.content-main .security-flow { border-color: #e2d5c1; background: #f0e6d6; }
.content-main .security-flow li { color: #71593f; }
.content-main .flow-icon, .content-main .card-icon { background: #eadbc5; color: #39816d; }
.content-main .mode-card { border-color: #e3d5c0; background: #f1e7d7; }
.content-main .mode-card code { background: #e8d8c1; color: #3c8068; }
.content-main .code-block { border-color: #dfceb5; background: #f6edde; }
.content-main .code-header { border-color: #dfceb5; background: #e9dcc8; color: #638270; }
.content-main .code-block pre { color: #6c5036; }
.content-main .endpoint-list, .content-main .help-steps, .content-main .faq-list { border-color: #e0d0b8; background: #f2e8d8; }
.content-main .faq-item + .faq-item { border-color: #dfceb5; }
.content-main .notice { border-color: #d4ddc6; background: #eaf0df; }
.content-main .fact-list > div { border-color: #dbcbb4; }
.content-main .small-note { border-color: #dbcbb4; }

@media (max-width: 1200px) {
  .scene-wordmark { left: 120px; }
  .content-main { padding-inline: 36px; }
  .content-main .prose { padding: 28px; }
}
@media (max-width: 1000px) {
  .scene-wordmark { left: 111px; }
  .content-main { padding-inline: 27px; }
  .content-main .prose { padding: 24px; }
}
@media (max-width: 860px) {
  .scene-wordmark { display: none; }
  .scene-nav { padding: 5px; }
  .scene-nav a { color: #111715; }
  .scene-rail { border-right: 0; border-bottom: 1px solid #ead7b617; }
  body:not([data-page='home'])::before { display: none; }
  .content-main { width: 100%; min-height: 100svh; margin: 0; padding: 152px 24px 80px; }
  .content-main .content-layout { grid-template-columns: 1fr; gap: 24px; }
  .content-main .content-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-main .page-intro { margin-bottom: 25px; }
}
@media (max-width: 540px) {
  .content-main { padding-inline: 16px; }
  .content-main .prose { padding: 23px 20px; border-radius: 13px; }
  .content-main .content-aside { grid-template-columns: 1fr; }
  .content-main .page-intro h1 { font-size: 33px; }
  .content-main .page-intro > p:not(.eyebrow) { font-size: 13px; }
  body[data-page='home'] .panel-open { min-height: 288px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-art { transform: none; transition: none; }
}
@media print {
  .scene-wordmark { display: none; }
  .content-main { width: 100%; min-height: 0; margin: 0; padding: 0; color: #111; }
  .content-main .prose { padding: 0; border: 0; background: #fff; }
}

/* A central workspace, with atmosphere and solid file objects on separate layers. */
.scene-main.scene-main-centered { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 108px 42px 88px; }
.scene-main-centered .scene-story { display: block; width: 100%; }
.scene-main-centered .scene-copy { max-width: 820px; margin-inline: auto; padding: 0; text-align: center; }
.scene-main-centered .scene-kicker { display: none; }
.scene-main-centered .scene-copy h1 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 3px 10px; }
.scene-main-centered .scene-title-primary { font-size: 32px; line-height: 1.12; }
.scene-main-centered .scene-title-primary:only-child { font-size: clamp(36px, 4.1vw, 60px); line-height: 1.08; letter-spacing: -.055em; }
.scene-main-centered .scene-title-accent { margin: 0; font-size: 44px; line-height: 1.05; }
.scene-main-centered .scene-lede { max-width: none; margin-top: 9px; font-size: 12px; line-height: 1.7; }
.scene-main-centered .scene-transfer { width: min(520px, 100%); }
.scene-atmosphere { position: fixed; z-index: 0; inset: 0 0 0 84px; overflow: hidden; pointer-events: none; }
.aurora-backdrop { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.floating-files { position: fixed; z-index: 1; inset: 0 0 0 84px; overflow: hidden; pointer-events: none; }
.floating-files img { position: absolute; width: min(400px, calc((100vw - 604px) / 2 - 20px)); height: auto; max-height: 55vh; object-fit: contain; opacity: 1; filter: none; mix-blend-mode: normal; translate: var(--veil-x, 0px) var(--veil-y, 0px); }
.float-folder { left: 0; top: 49%; animation: folder-hover 13s ease-in-out infinite; }
.float-image { right: 0; top: 25%; animation: image-hover 16s ease-in-out infinite; }
@keyframes folder-hover { 0%, 100% { transform: translateY(0) rotate(-7deg); } 50% { transform: translateY(-11px) rotate(-5deg); } }
@keyframes image-hover { 0%, 100% { transform: translateY(0) rotate(8deg); } 50% { transform: translateY(9px) rotate(6deg); } }
body[data-page='home'] .scene-main-centered .transfer-main { padding: 24px 26px 26px; }
body[data-page='home'] .scene-main-centered .workspace-tabs { padding-inline: 19px; }
body[data-page='home'] .scene-main-centered .workspace-tabs button { font-size: 13px; }
body[data-page='home'] .scene-main-centered .panel-title { text-align: center; font-size: 22px; }
body[data-page='home'] .scene-main-centered .panel-share { gap: 17px; }
body[data-page='home'] .scene-main-centered .drop { min-height: 182px; padding: 20px; border: 1px dashed #bfcfbd; background: #f2f1e5; }
body[data-page='home'] .scene-main-centered .drop:hover { border-color: #87ab91; background: #edf0e2; }
body[data-page='home'] .scene-main-centered .drop.has-file { min-height: 138px; padding-block: 15px; }
body[data-page='home'] .scene-main-centered .share-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
body[data-page='home'] .scene-main-centered .switch { justify-content: flex-end; }
body[data-page='home'] .scene-main-centered .panel-open { min-height: 282px; }
body[data-page='home'] .scene-main-centered .code-input { min-height: 51px; font-size: 14px; }
body[data-page='home'] .scene-main-centered .code-input::placeholder { font-size: 13px; }
body[data-page='home'] .scene-main-centered .field-label { font-size: 13px; }
body[data-page='home'] .scene-main-centered .recipient-field > span { font-size: 12px; }
body[data-page='home'] .scene-main-centered #share-recipient-email { font-size: 13px; }
body[data-page='home'] .scene-main-centered .result-title { font-size: 22px; }
body[data-page='home'] .scene-main-centered .result-lede { font-size: 12px; }
body[data-page='home'] .scene-main-centered .field-hint { font-size: 11px; }
body[data-page='home'] .scene-main-centered .copy-value { font-size: 11px; }
body[data-page='home'] .scene-main-centered .code-display { font-size: 12px; }
body[data-page='home'] .scene-main-centered .copy-btn { font-size: 11px; }
.open-deposit-drop { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 42px; padding: 10px 12px; border: 1px dashed #b9c9b5; border-radius: 7px; background: #f1efe3; color: #6a7d6a; font-size: 12px; line-height: 1.45; transition: background .15s, border-color .15s, color .15s; }
.open-deposit-drop svg { width: 17px; height: 17px; }
.open-deposit-drop:hover { border-color: #7fa68b; background: #e9edde; color: #3b6c57; }
#stage[data-state='busy'] .open-deposit-drop, #stage[data-state='done'] .open-deposit-drop { display: none; }
@media (max-width: 1000px) {
  .floating-files { display: none; }
}
@media (max-width: 860px) {
  .scene-main.scene-main-centered { justify-content: flex-start; gap: 20px; padding: 150px 24px 83px; }
  .scene-atmosphere { left: 0; }
  .scene-main-centered .scene-title-primary { font-size: 28px; }
  .scene-main-centered .scene-title-primary:only-child { font-size: 32px; }
  .scene-main-centered .scene-title-accent { font-size: 38px; }
  .scene-main-centered .scene-lede { margin-top: 7px; font-size: 11px; }
}
@media (max-width: 540px) {
  .scene-main.scene-main-centered { padding-inline: 16px; }
  .scene-main-centered .scene-copy h1 { gap: 2px 8px; }
  .scene-main-centered .scene-title-primary { font-size: 25px; }
  .scene-main-centered .scene-title-primary:only-child { font-size: 30px; }
  .scene-main-centered .scene-title-accent { font-size: 35px; }
  body[data-page='home'] .scene-main-centered .transfer-main { padding: 22px 19px 24px; }
  body[data-page='home'] .scene-main-centered .workspace-tabs { padding-inline: 12px; }
  body[data-page='home'] .scene-main-centered .workspace-tabs button { font-size: 12px; }
  body[data-page='home'] .scene-main-centered .share-options { grid-template-columns: 1fr; gap: 15px; }
  body[data-page='home'] .scene-main-centered .switch { justify-content: flex-start; }
  body[data-page='home'] .scene-main-centered .code-input { font-size: 12px; }
  body[data-page='home'] .scene-main-centered .code-display { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-files img { animation: none; translate: none; transform: none; }
}
@media print {
  .scene-atmosphere, .floating-files { display: none; }
}

/* Desktop: transfer at the left, a quiet message and file objects to the right. */
@media (min-width: 861px) {
  .scene-main.scene-main-centered { display: grid; grid-template-columns: 460px minmax(0, 1fr); grid-template-areas: 'transfer story'; align-items: center; justify-content: normal; gap: 84px; padding: 120px 56px; }
  .scene-main-centered .scene-transfer { grid-area: transfer; width: 460px; }
  .scene-main-centered .scene-story { grid-area: story; }
  .scene-main-centered .scene-copy { max-width: 500px; margin: 0; padding-right: 140px; text-align: left; }
  .scene-main-centered .scene-copy h1 { display: block; }
  .scene-main-centered .scene-title-primary { font-size: 42px; }
  .scene-main-centered .scene-title-accent { margin-top: 5px; font-size: 80px; }
  .scene-main-centered .scene-lede { max-width: 330px; margin-top: 23px; font-size: 13px; }
  body[data-page='home'] .scene-main-centered .share-options { grid-template-columns: minmax(200px, 1fr) auto; }
  .floating-files .float-image { top: 13%; right: 2px; width: clamp(180px, calc((100vw - 1040px) * 1.15), 320px); }
  .floating-files .float-folder { top: 60%; right: 10px; left: auto; width: clamp(180px, calc((100vw - 1040px) * 1.2), 340px); }
}
@media (min-width: 861px) and (max-width: 1200px) {
  .scene-main.scene-main-centered { grid-template-columns: 440px minmax(0, 1fr); gap: 56px; padding-inline: 36px; }
  .scene-main-centered .scene-transfer { width: 440px; }
  .scene-main-centered .scene-copy { max-width: 410px; padding: 0; }
  .scene-main-centered .scene-title-primary { font-size: 38px; }
  .scene-main-centered .scene-title-accent { font-size: 72px; }
  .floating-files { display: none; }
}
@media (min-width: 861px) and (max-width: 1050px) {
  .scene-main.scene-main-centered { grid-template-columns: 420px minmax(0, 1fr); gap: 40px; padding-inline: 28px; }
  .scene-main-centered .scene-transfer { width: 420px; }
  .scene-main-centered .scene-title-primary { font-size: 32px; }
  .scene-main-centered .scene-title-accent { font-size: 60px; }
}

/* Mobile navigation is one compact header and a readable, scrollable menu. */
.mobile-header { display: none; }
@media (max-width: 860px) {
  .scene-rail, .scene-header, .scene-wordmark { display: none; }
  .mobile-header { position: fixed; z-index: 70; top: 0; right: 0; left: 0; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 10px 18px; border-bottom: 1px solid #d1e1cd12; background: #14201feF; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .mobile-brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #eee7d8; }
  .mobile-brand .logo { width: 29px; height: 29px; }
  .mobile-brand > span { font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -.075em; }
  .mobile-menu { position: static; }
  .mobile-menu-toggle { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 9px 11px; border: 1px solid #fff; border-radius: 8px; color: #111715; font-size: 12px; font-weight: 500; line-height: 1.3; list-style: none; cursor: pointer; transition: background .15s, border-color .15s; }
  .mobile-menu-toggle::-webkit-details-marker { display: none; }
  .mobile-menu-toggle .menu-icon { width: 18px; height: 18px; color: #111715; }
  .mobile-menu[open] .mobile-menu-toggle { border-color: #d4dfd8; background: #eef3ef; color: #111715; }
  .mobile-menu-panel { position: absolute; z-index: 1; top: calc(100% + 8px); right: 12px; left: 12px; display: grid; gap: 13px; max-height: calc(100dvh - 84px); padding: 13px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #fff; border-radius: 13px; background: #fff; color: #111715; box-shadow: 0 20px 60px #0007; }
  .mobile-menu:not([open]) > .mobile-menu-panel { display: none; }
  .mobile-menu-primary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mobile-menu-action { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 49px; padding: 12px 10px; border: 1px solid #dde5df; border-radius: 8px; background: #f7f9f7; color: #111715; font-size: 13px; font-weight: 500; line-height: 1.4; }
  .mobile-menu-action svg { width: 18px; height: 18px; color: #3d6858; }
  .mobile-menu-action:hover { border-color: #a1b9aa; background: #eef3ef; }
  .mobile-menu-action[aria-current='true'], .mobile-menu-action[aria-current='page'], .mobile-menu-action.is-active { border-color: #8fb49d; background: #e8f0ea; color: #111715; }
  .mobile-menu-action[aria-current] svg, .mobile-menu-action.is-active svg { color: #306e51; }
  .mobile-menu-secondary { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid #e3e9e4; }
  .mobile-menu-secondary > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 45px; padding: 11px 12px; border-radius: 7px; color: #111715; font-size: 13px; line-height: 1.45; }
  .mobile-menu-secondary > a svg { width: 15px; height: 15px; color: #52675b; }
  .mobile-menu-secondary > a:hover { background: #f3f6f3; color: #111715; }
  .mobile-menu-secondary > a[aria-current='page'] { background: #e8f0ea; color: #111715; }
  .mobile-menu-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 12px 2px; border-top: 1px solid #e3e9e4; }
  .mobile-menu-footer > span { color: #52675b; font-size: 11px; line-height: 1.5; }
  .mobile-menu-languages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .mobile-menu-languages > a { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; color: #111715; font-size: 12px; }
  .mobile-menu-languages svg { width: 13px; height: 13px; color: #306e51; }
  .scene-main.scene-main-centered { padding-top: 100px; }
  .content-main { padding-top: 100px; }
}
@media (max-width: 360px) {
  .mobile-header { padding-inline: 14px; }
  .mobile-menu-panel { right: 10px; left: 10px; padding: 11px; }
  .mobile-menu-action { gap: 6px; padding-inline: 8px; font-size: 12px; }
}
@media print {
  .mobile-header { display: none; }
}

/* Local glass softens the identity while the white navigation stays crisp. */
.scene-wordmark { margin: -6px 0 0 -10px; padding: 6px 10px; border: 1px solid #d7ebe00b; border-radius: 10px; background: linear-gradient(125deg, #d2e9dd12, #0b171b65 75%, #0b171b00); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.rail-brand { border: 1px solid #dde8d80a; border-radius: 13px; background: linear-gradient(135deg, #dde7d50c, transparent 75%); }
body[data-page='home'] .scene-main-centered .panel-open { justify-content: flex-start; min-height: 0; padding: 6px 0 4px; gap: 17px; }
body[data-page='home'] .scene-main-centered .code-input::placeholder { font-family: var(--font-mono); font-size: clamp(9px, 2.7vw, 12px); letter-spacing: 0; }
@media (min-width: 861px) {
  .scene-main-centered .scene-copy { max-width: 560px; padding-right: 100px; }
  .scene-main-centered .scene-title-accent { font-size: clamp(56px, 5vw, 72px); }
}
@media (min-width: 861px) and (max-width: 1200px) {
  .scene-main-centered .scene-copy { max-width: 410px; padding-right: 0; }
  .scene-main-centered .scene-title-accent { font-size: 66px; }
}
@media (min-width: 861px) and (max-width: 1050px) {
  .scene-main-centered .scene-title-accent { font-size: clamp(42px, 5vw, 56px); }
}
@media (max-width: 860px) {
  .mobile-header { border: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .mobile-brand { padding: 6px 8px; border: 1px solid #d3e4d80d; border-radius: 9px; background: linear-gradient(120deg, #d3e7d915, #0b181b70 80%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .mobile-menu-toggle { background: #fff; box-shadow: 0 5px 18px #00000020; }
  .scene-main-centered .scene-title-accent { font-size: 36px; }
}
@media (max-width: 540px) {
  .scene-main-centered .scene-title-accent { font-size: 32px; }
}

/* Real opening stages replace the form with a steady, compact status surface. */
.open-loading { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-content: center; align-items: center; gap: 12px 14px; width: 100%; min-height: 200px; padding: 20px 17px; border: 1px solid #d5e1cf; border-radius: 10px; background: linear-gradient(130deg, #f3f1e6, #edf2e6); }
.opening-spinner { grid-column: 1; grid-row: 1 / 3; align-self: center; width: 30px; height: 30px; border: 2px solid #147d7026; border-top-color: #147d70; border-radius: 50%; animation: opening-spin .85s linear infinite; }
.open-loading > h3 { grid-column: 2; align-self: end; color: #345348; font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: -.015em; }
.open-loading > p { grid-column: 2; align-self: start; color: #718371; font-size: 11px; line-height: 1.6; }
.opening-track { grid-column: 1 / -1; height: 3px; margin-top: 6px; overflow: hidden; border-radius: 3px; background: #d7e3d0; }
.opening-track > span { display: block; width: 34%; height: 100%; border-radius: inherit; background: #4c9a83; animation: opening-travel 1.9s ease-in-out infinite; }
.opening-steps { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 1px; }
.opening-steps > li { display: flex; align-items: center; gap: 6px; color: #97a58f; font-size: 10px; font-weight: 500; line-height: 1.5; transition: color .2s; }
.opening-steps > li::before { content: ''; flex: 0 0 5px; width: 5px; height: 5px; border: 1px solid #b6c8ac; border-radius: 50%; }
.opening-steps > .is-current { color: #147d70; }
.opening-steps > .is-current::before { border-color: #147d70; background: #147d70; box-shadow: 0 0 0 3px #147d7010; }
.opening-steps > .is-complete { color: #58856b; }
.opening-steps > .is-complete::before { border-color: #76a98b; background: #76a98b; }
.open-loading[data-step='file'] .opening-track > span { background: #338e79; }
.open-loading[data-step='details'] .opening-track > span { background: #6baa8b; }
.open-loading[data-step='ready'] .opening-spinner { animation: none; border-color: #147d70; }
.open-loading[data-step='ready'] .opening-track > span { width: 100%; animation: none; transform: none; }
@keyframes opening-spin { to { transform: rotate(360deg); } }
@keyframes opening-travel { 0% { transform: translateX(-110%); } 100% { transform: translateX(405%); } }
@media (max-width: 360px) {
  .open-loading { gap: 12px 11px; padding-inline: 13px; }
  .open-loading > h3 { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .opening-spinner { animation: none; }
  .opening-track > span { animation: none; transform: translateX(100%); }
  .opening-steps > li { transition: none; }
}
