:root {
    color-scheme: dark;
    --bg: #070d1a;
    --surface: #0e192c;
    --surface-up: #13233b;
    --line: #233754;
    --text: #f0f5ff;
    --muted: #a8bad3;
    --blue: #5bbaff;
    --accent: #1764f5;
    --green: #6be0b6;
    --radius: 17px;
    font-family: "Instrument Sans", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); }
body > .page, body > .workspace { flex: 1; }
a { color: var(--blue); text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
svg { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
p { margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .8rem; font-weight: 720; letter-spacing: -.032em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: 1.33rem; }
h3 { font-size: 1.16rem; }
:focus-visible { outline: 2px solid #7bdaff; outline-offset: 4px; }
.skip { position: absolute; z-index: 10; left: .8rem; top: -200px; background: var(--surface); padding: .6rem; }
.skip:focus { top: .6rem; }
.top { border-bottom: 1px solid #1b2b44; background: #0a1221; }
.top-inner, footer > div, .page { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.top-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 1.15rem; }
.brand { text-decoration: none; display: inline-flex; gap: 11px; align-items: center; color: var(--text); white-space: nowrap; }
.brand-icon, .tile-icon { display: inline-grid; width: 40px; height: 40px; border-radius: 11px; place-items: center; color: #77caff; background: #11264b; border: 1px solid #265b99; }
.brand-icon { background: linear-gradient(150deg,#2279ef,#153574); color: white; border-color: #4081e5; }
.brand-icon svg { width: 23px; height: 23px; }
.brand strong, .brand small { display: block; line-height: 1.06; }
.brand strong { font-size: 1.13rem; letter-spacing: .065em; }
.brand small { color: #a8c9f1; font-size: .58rem; font-weight: 730; letter-spacing: .14em; margin-top: 4px; }
.top nav, .top-actions, footer nav, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.top nav { gap: 1.65rem; }
.top a:not(.button,.brand), footer a:not(.brand) { color: var(--muted); text-decoration: none; font-size: .9rem; }
.top a:hover:not(.brand), footer a:hover:not(.brand) { color: white; }
.context { color: var(--muted); font-size: .9rem; }
.button { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; gap: .5rem;
    padding: .66rem 1rem; border-radius: 9px; border: 1px solid #4c88ff; background: var(--accent); color: white; font-weight: 660; font-size: .91rem;
    min-height: 43px; line-height: 1.2; box-shadow: 0 7px 18px #124acf29; }
.button:hover { background: #2872f9; }
.button:disabled { opacity: .68; cursor: wait; }
.button.secondary { background: #101d33; border-color: #324969; box-shadow: none; }
.button.secondary:hover { background: #1a3152; }
.button svg { width: 17px; height: 17px; }
.hero { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 28px; min-height: 468px; padding: 60px 0 48px; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: .99; letter-spacing: -.075em; margin: .8rem 0 1.3rem; }
.hero h1 span { color: #65b6ff; }
.hero-copy > p:not(.eyebrow) { color: var(--muted); max-width: 510px; font-size: clamp(1rem, 2.3vw, 1.18rem); margin-bottom: 1.7rem; }
.eyebrow { color: #79c3ff; font-weight: 740; font-size: .74rem; letter-spacing: .17em; }
.hero-visual { height: 336px; isolation: isolate; position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid #243d62;
    border-radius: 24px; background: radial-gradient(ellipse at 50% 49%, #174586 0%, #101e36 55%, #0b1629 83%); }
.hero-visual::before { position: absolute; inset: 0; z-index: -1; content: ""; opacity: .4;
    background: repeating-linear-gradient(90deg,#5f96f020 0 1px, transparent 1px 30px), repeating-linear-gradient(0deg,#5f96f020 0 1px, transparent 1px 30px);
    mask-image: radial-gradient(ellipse,#000,transparent 83%); }
.visual-core { z-index: 1; display: grid; place-items: center; width: 125px; height: 125px; border-radius: 27px; color: #d1efff; background: linear-gradient(142deg,#285be9,#133376 75%);
    box-shadow: 0 0 45px #3178fa8c, inset 0 0 30px #75c0ff45; border: 1px solid #79b9ff; transform: rotate(-12deg); }
.visual-core svg { width: 66px; height: 66px; }
.orbit { position: absolute; width: 75%; height: 55%; border: 1px solid #5189d765; border-radius: 50%; transform: rotate(-27deg); }
.orbit-b { width: 62%; height: 78%; transform: rotate(55deg); border-style: dashed; opacity: .68; }
.visual-label { display: flex; position: absolute; z-index: 2; align-items: center; gap: .48rem; padding: .55rem .75rem; border: 1px solid #3b6594; border-radius: 9px;
    box-shadow: 0 6px 22px #06112a9c; color: #dbeeff; background: #101d34; font-size: .8rem; font-weight: 620; }
.visual-label svg { color: #72c5ff; width: 17px; height: 17px; }
.visual-top { top: 16%; right: 7%; } .visual-bottom { bottom: 13%; left: 7%; }
.section { scroll-margin-top: 1.5rem; margin: 0 0 3.25rem; }
.section > h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); margin-bottom: 1.15rem; }
.three, .metrics, .apk-grid { display: grid; gap: 14px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
.apk-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.panel { min-width: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
.panel > :last-child { margin-bottom: 0; }
.feature .tile-icon { margin-bottom: 17px; }
.feature p, .muted, .page-title p, .metric small { color: var(--muted); }
.price { display: flex; flex-direction: column; }
.price h3 { margin-bottom: 12px; }
.price-amount { border-bottom: 1px solid var(--line); padding-bottom: 16px; color: var(--muted); }
.price-amount strong { color: var(--text); font-size: 2.45rem; letter-spacing: -.06em; line-height: 1; }
.price ul { list-style: none; margin: 16px 0 22px; padding: 0; flex: 1; }
.price li { display: flex; align-items: center; gap: .53rem; margin: .55rem 0; font-size: .91rem; }
.price li svg { width: 16px; height: 16px; color: #72d0ff; }
.featured { border-color: #4d8cff; background: linear-gradient(150deg,#13274c,#0e192c 55%); }
footer { border-top: 1px solid #1b2b44; background: #0a1221; }
footer > div { min-height: 100px; padding-block: 17px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.workspace { display: grid; grid-template-columns: 215px minmax(0,1fr); gap: 24px; width: min(1320px, calc(100% - 48px)); margin: 22px auto 42px; }
.sidebar { align-self: start; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 12px; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { padding: .67rem .7rem; border-radius: 8px; text-decoration: none; color: var(--muted); display: flex; gap: .62rem; align-items: center; font-size: .91rem; }
.sidebar nav a:hover, .sidebar nav a[aria-current] { color: white; background: #173765; }
.sidebar nav a[aria-current] { box-shadow: inset 3px 0 #5fafff; }
.sidebar svg { width: 17px; height: 17px; }
.signout { margin: .7rem 0 0; }
.signout .button { background: #131f32; box-shadow: none; border-color: var(--line); width: 100%; }
.page-title { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin: 0 0 1.3rem; overflow-wrap: anywhere; }
.page-title p { margin: 0; }
.page > main > .page-title { margin-top: 2.5rem; }
.metric { display: grid; gap: .2rem; align-content: start; overflow-wrap: anywhere; }
.metric .tile-icon { margin-bottom: .48rem; }
.metric > span:not(.tile-icon) { color: var(--muted); font-size: .87rem; }
.metric strong { font-size: clamp(1.3rem,2.4vw,2rem); letter-spacing: -.055em; }
.notice { border: 1px solid #2e5687; background: #102342; padding: .82rem 1rem; border-radius: 10px; color: #d5e9ff; }
.auth, .download-page { max-width: 520px; margin: 48px auto; padding: clamp(18px,4vw,32px); }
.download-page { max-width: 640px; }
.download-page .tile-icon { margin-bottom: 14px; }
.auth-links { margin: 1rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.auth .button { width: 100%; }
form { display: grid; gap: .75rem; align-items: end; }
form > .button { justify-self: start; }
form.inline { display: inline-flex; align-items: end; flex-wrap: wrap; margin: .4rem .35rem .4rem 0; }
form.inline .button { min-height: 36px; padding: .42rem .72rem; }
label { display: grid; gap: .3rem; color: var(--text); font-size: .88rem; font-weight: 600; }
input:not([type=checkbox]), select, textarea { width: 100%; min-height: 42px; padding: .5rem .65rem; background: #091426; color: var(--text); border: 1px solid #365071; border-radius: 8px; }
textarea { resize: vertical; }
.check { display: flex; gap: .6rem; align-items: baseline; font-weight: 450; }
.check input { flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--blue); }
.narrow, .upload-panel { max-width: 640px; }
.drop { text-align: center; border-radius: 14px; border: 1px dashed #5a8acb; background: #0c1a31; padding: 1.35rem; place-items: center; cursor: pointer; }
.drop svg { width: 26px; height: 26px; color: var(--blue); }
.drop input { max-width: 325px; }
.drop span { color: var(--muted); }
.file-label { display: flex; align-items: center; gap: .6rem; }
progress { width: 100%; height: 14px; accent-color: var(--blue); }
.apk-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.apk-head h2, .apk-head p { margin: 0; overflow-wrap: anywhere; }
.apk-head p { color: var(--muted); font-size: .86rem; }
.apk-card .actions { margin: 12px 0; gap: .7rem; }
details { margin: .55rem 0; }
details summary { cursor: pointer; color: var(--blue); font-size: .9rem; }
details p { margin-top: .45rem; }
dl { display: grid; grid-template-columns: minmax(100px, .6fr) 1.4fr; gap: .45rem .8rem; }
dt { color: var(--muted); } dd { margin: 0; overflow-wrap: anywhere; }
.hash { font-size: .81rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .91rem; text-align: left; }
th { color: var(--muted); font-weight: 670; }
td, th { padding: .62rem .62rem .62rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
.report-reason { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 130px; max-width: 420px; }
.prose { max-width: 790px; margin-bottom: 2rem; }
.prose h2 { margin-top: 1.2rem; }
@media (max-width: 980px) {
    .workspace { grid-template-columns: 180px minmax(0,1fr); gap: 16px; }
    .workspace .three, .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
    .top-inner, footer > div, .page, .workspace { width: calc(100% - 30px); }
    .top nav { display: none; }
    .hero { grid-template-columns: 1fr; padding: 42px 0 29px; gap: 22px; }
    .hero-visual { height: 220px; }
    .visual-core { width: 94px; height: 94px; }
    .visual-core svg { width: 49px; height: 49px; }
    .three, .apk-grid { grid-template-columns: 1fr; gap: 0; }
    .workspace { display: block; margin-top: 13px; }
    .sidebar { margin-bottom: 16px; }
    .sidebar nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .sidebar nav a { padding: .54rem .35rem; gap: .32rem; font-size: .79rem; line-height: 1.16; min-height: 40px; }
    .sidebar svg { width: 14px; height: 14px; }
    .signout .button { width: auto; min-height: 34px; padding: .35rem .65rem; }
    .workspace .three { grid-template-columns: 1fr; }
    .panel { padding: 16px; }
    .page-title { align-items: flex-start; flex-wrap: wrap; }
    footer > div { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 380px) {
    .top-actions { gap: .52rem; }
    .top-actions .button { padding-inline: .6rem; }
    .top-actions .button svg { display: none; }
    .workspace .top-actions { max-width: 55%; }
}
/* SendPerch identity: simple upload symbol, no monogram. */
.brand { gap: 10px; }
.brand-icon { width: 38px; height: 38px; color: var(--accent); background: none; border: none; border-radius: 0; }
.brand-icon svg { width: 38px; height: 38px; stroke-width: 3; }
.brand strong { font-size: 1.5rem; letter-spacing: -.055em; line-height: 1; }
.brand strong span { color: var(--accent); }
.brand small { color: var(--text); letter-spacing: .43em; font-size: .57rem; margin-top: 6px; }
.hero-doc { position: absolute; z-index: 2; filter: drop-shadow(0 0 9px #008cff77); }
.doc-apk { top: 21%; left: 10%; transform: rotate(-13deg); }
.doc-zip { top: 27%; right: 10%; transform: rotate(-8deg); }
.doc-file { bottom: 14%; right: 10%; transform: rotate(13deg); }
.document-icon { position: relative; display: inline-grid; width: 48px; height: 58px; color: #bceaff; }
.document-icon svg { width: 100%; height: 100%; stroke: #69caff; stroke-width: 1.8; fill: #112a55; }
.document-icon b { position: absolute; inset: 29px 0 auto; text-align: center; color: #fff; font-size: .72rem; line-height: 1; letter-spacing: -.03em; }
.file-badges { display: flex; justify-content: space-around; gap: 12px; padding: 20px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.visual-core svg { stroke-width: 2.8; }
.price ul { border-top: 0; padding-top: 0; }
.coming-soon { max-width: 700px; padding: 85px 15px; margin: auto; text-align: center; }
.coming-soon h1 { font-size: clamp(2.9rem,7vw,5rem); letter-spacing: -.055em; }
.coming-soon h1 span { color: var(--blue); }
.coming-soon > p:not(.eyebrow) { color: var(--muted); }
.coming-icon { color: var(--accent); display: block; margin-bottom: 25px; }
.coming-icon svg { width: 64px; height: 64px; stroke-width: 2.5; }
.launch-label { display: inline-block; border: 1px solid #2c61a0; border-radius: 100px; padding: 8px 20px; color: #a8cfff; background: #102444; }
@media (max-width:720px) { .hero-doc .document-icon { width: 35px; height: 44px; } .hero-doc .document-icon b { inset: 23px 0 auto; font-size: .55rem; } }
@media (max-width:380px) { .brand strong { font-size: 1.25rem; } .brand-icon, .brand-icon svg { width: 30px; height: 30px; } .brand { gap: 6px; } .brand small { font-size: .49rem; } }

.brand-icon { align-self: flex-start; margin-top: 0; width: 28px; height: 28px; }
.brand-icon svg { width: 28px; height: 28px; }
@media(max-width:380px) { .brand-icon, .brand-icon svg { width: 24px; height: 24px; } }
@media(max-width:520px) {
    .top-actions > a:not(.button) { display: none; }
    .top-inner { gap: .6rem; }
    .brand strong { font-size: 1.35rem; }
    .brand small { font-size: .51rem; }
}

/* Compact file management: keep the full page width available on tablets. */
.workspace-page .workspace { gap: 22px; grid-template-columns: 205px minmax(0,1fr); }
.workspace-page main { min-width: 0; }
.workspace-page h1 { font-size: clamp(1.65rem,3vw,2.1rem); }
.workspace-page .page-title { gap: 20px; align-items: flex-start; overflow-wrap: normal; }
.workspace-page .page-title > div { min-width: 0; }
.workspace-page .page-title p { max-width: 70ch; font-size: .91rem; }
.page-title > .button { flex-shrink: 0; white-space: nowrap; }
.workspace-nav { margin: 0; min-width: 0; }
.workspace-nav > summary { list-style: none; padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 650; color: var(--text); }
.workspace-nav > summary::-webkit-details-marker { display: none; }
.workspace-nav > summary::before { content: '☰'; margin-right: 9px; }
.workspace-nav > summary span { color: var(--muted); font-weight: 450; margin-left: 10px; }
.workspace-nav .sidebar { margin-top: 10px; }
.filter-bar { display: grid; grid-template-columns: minmax(160px,2fr) repeat(2,minmax(125px,1fr)) auto; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.filter-bar label { font-size: .8rem; min-width: 0; }
.filter-bar input, .filter-bar select { min-width: 0; font-size: .88rem; }
.filter-bar:has(select[name="status"]) { grid-template-columns: minmax(160px,2fr) repeat(3,minmax(105px,1fr)) auto; }
.filter-actions { display: flex; align-items: center; gap: 12px; }
.filter-actions a { font-size: .84rem; }
.custom-dates { display: flex; gap: 10px; grid-column: 1 / -1; order: 5; }
.custom-dates label { flex: 1; }
.results-count { color: var(--muted); font-size: .81rem; margin: 14px 0; }
.file-type-heading { font-size: .86rem; color: var(--muted); letter-spacing: .035em; margin: 22px 0 9px; }
.file-row { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 9px; min-width: 0; }
.file-entry { margin: 0; }
.file-entry > summary, .admin-file-entry > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 122px 16px 15px; min-height: 78px; color: var(--text); }
.file-entry > summary::-webkit-details-marker, .admin-file-entry > summary::-webkit-details-marker { display: none; }
.file-entry > summary::after, .admin-file-entry > summary::after { content: '⌄'; color: var(--blue); margin-left: auto; }
.file-entry[open] > summary::after, .admin-file-entry[open] > summary::after { content: '⌃'; }
.file-kind { display: grid; place-items: center; width: 43px; height: 45px; flex: 0 0 43px; border-radius: 8px; background: #102747; border: 1px solid #315a8b; color: #8dd4ff; font-size: .69rem; font-weight: 700; }
.file-summary { display: grid; gap: 4px; min-width: 0; flex: 1; }
.file-summary strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-summary > span { color: var(--muted); font-size: .77rem; overflow-wrap: anywhere; }
.status-badge { font-size: .7rem; padding: 3px 7px; color: var(--green); border: 1px solid #28524e; border-radius: 20px; flex: 0 0 auto; }
.row-copy { position: absolute; right: 13px; top: 18px; min-height: 38px; padding: 8px 10px; font-size: .8rem; }
.file-controls { padding: 16px; border-top: 1px solid var(--line); min-width: 0; }
.file-controls .actions { gap: 10px; margin: 14px 0; }
.file-controls input { min-width: 0; }
.file-controls .button { font-size: .83rem; }
.file-controls .small { font-size: .78rem; }
.file-controls .shortener, .file-controls > details { margin: 16px 0; }
.file-controls summary { padding: 5px 0; }
.file-controls .steps { color: var(--muted); font-size: .88rem; padding-left: 22px; }
.file-controls .steps li { margin-bottom: 8px; }
.shortener-status:empty { display: none; }
.file-information { font-size: .85rem; }
.file-information dd { min-width: 0; }
.admin-file-entry > summary { padding-right: 16px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 17px 0 24px; font-size: .83rem; }
.pagination .button { font-size: .82rem; min-height: 37px; }
.warning { color: #ffc47c; border-color: #775437; }
.event-label.warning { display: inline-block; padding-left: 8px; border-left: 3px solid #ffa74d; }
.qr-dialog { width: min(480px,calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow: auto; background: var(--surface); color: var(--text); border: 1px solid #36567f; border-radius: 16px; padding: 22px; }
.qr-dialog::backdrop { background: #020812c9; }
.dialog-heading { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dialog-heading h2 { margin: 0; }
.dialog-heading form { margin: 0; }
.qr-dialog img { display: block; width: min(300px,100%); height: auto; margin: 18px auto; background: white; image-rendering: pixelated; }
.qr-dialog .actions { margin-top: 16px; }
.qr-dialog p { overflow-wrap: anywhere; }
@media(min-width:1051px) {
    .js-enabled .workspace-nav > summary { display: none; }
    .workspace-nav .sidebar { margin-top: 0; }
}
@media(max-width:1150px) {
    .filter-bar, .filter-bar:has(select[name="status"]) { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .filter-actions { align-self: end; }
}
@media(max-width:1050px) {
    .workspace-page .workspace { display: block; width: calc(100% - 32px); margin-top: 15px; }
    .workspace-nav { margin-bottom: 20px; }
    .workspace-nav .sidebar nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .workspace-nav .sidebar nav a { font-size: .84rem; min-height: 43px; }
    .workspace-nav .signout .button { width: auto; }
    .workspace-page .top .context { display: none; }
    .table-scroll { overflow-x: visible; }
    .workspace-page table, .workspace-page tbody, .workspace-page tr, .workspace-page td { display: block; width: 100%; }
    .workspace-page table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .workspace-page table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
    .workspace-page table td { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 12px; border: 0; padding: 5px 0; overflow-wrap: anywhere; }
    .workspace-page table td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; }
    .workspace-page table td:empty { display: none; }
}
@media(max-width:600px) {
    .workspace-page .top-inner { min-height: 67px; }
    .workspace-page .brand strong { font-size: 1.3rem; }
    .workspace-page .top-actions .button { font-size: .8rem; padding: 8px 10px; }
    .workspace-page .page-title { flex-wrap: wrap; gap: 12px; }
    .workspace-nav .sidebar nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .file-entry > summary { gap: 9px; padding: 13px 95px 13px 11px; }
    .file-kind { width: 35px; height: 40px; flex-basis: 35px; font-size: .62rem; }
    .file-summary strong { font-size: .89rem; }
    .file-summary > span { font-size: .73rem; }
    .file-entry > summary .status-badge { display: none; }
    .row-copy { right: 9px; top: 19px; font-size: .74rem; padding: 8px; }
    .admin-file-entry > summary { padding: 13px 11px; gap: 9px; }
    .filter-bar { padding: 12px; gap: 10px; }
    .filter-bar label:first-child { grid-column: 1 / -1; }
    .filter-actions { grid-column: 1 / -1; }
    .custom-dates { flex-wrap: wrap; }
    .file-information { grid-template-columns: 100px minmax(0,1fr); gap: 7px; }
    .file-controls { padding: 13px; }
    .qr-dialog { padding: 17px; }
}
.filter-bar.customer-search { grid-template-columns: minmax(150px,1fr) auto; max-width: 700px; }
@media(max-width:600px) { .filter-bar.customer-search { grid-template-columns: minmax(0,1fr); } }
.file-entry[open] > summary .file-summary strong, .admin-file-entry[open] > summary .file-summary strong { white-space: normal; overflow-wrap: anywhere; }
@media(min-width:601px) and (max-width:1050px) {
    .workspace-page .activity-log table { display: table; table-layout: fixed; font-size: .82rem; }
    .workspace-page .activity-log table thead { position: static; display: table-header-group; width: auto; height: auto; overflow: visible; clip-path: none; }
    .workspace-page .activity-log table tbody { display: table-row-group; }
    .workspace-page .activity-log table tr { display: table-row; }
    .workspace-page .activity-log table td { display: table-cell; width: auto; padding: 11px 9px 11px 0; border-bottom: 1px solid var(--line); }
    .workspace-page .activity-log table td::before { display: none; }
    .workspace-page .activity-log table th { font-size: .79rem; }
}

/* Keep navigation in reach without covering the file controls. */
:root { --header-height: 77px; scroll-padding-top: calc(var(--header-height) + 82px); }
.top { position: sticky; top: 0; z-index: 40; flex-shrink: 0; }
.workspace-nav { position: sticky; top: calc(var(--header-height) + 12px); align-self: start; z-index: 30;
    max-height: calc(100dvh - var(--header-height) - 24px); overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; background: var(--bg); border-radius: var(--radius); }
@media(max-width:600px) { :root { --header-height: 68px; } }

/* On smaller screens, the menu visually joins the header edge to edge. */
@media(max-width:1050px) {
    .workspace-page .workspace { margin-top: 0; }
    .workspace-nav { top: var(--header-height); margin-inline: -16px; padding-inline: 16px;
        margin-bottom: 20px; border-radius: 0; border-bottom: 1px solid #1b2b44;
        background: #0a1221; max-height: calc(100dvh - var(--header-height)); }
    .workspace-nav > summary { border: 0; border-radius: 0; background: transparent; padding: 13px 0; }
    .workspace-nav .sidebar { margin-top: 0; margin-bottom: 12px; }
}

/* Touch polish: keep copying available in content and form fields. */
a, button, summary, input, select, textarea, label { -webkit-tap-highlight-color: transparent; }
:where(a,button,summary,[tabindex]):focus:not(:focus-visible) { outline: none; }
.brand, .sidebar a, .workspace-nav > summary, button, .button, .hero-visual, .document-icon, .drop > :not(input) {
    -webkit-user-select: none; user-select: none;
}
input, textarea, [contenteditable="true"], [data-permanent-link], #qr-link { -webkit-user-select: text; user-select: text; }
.workspace-nav > summary .menu-label { color: var(--text); font-weight: 650; margin-left: 0; }
.workspace-nav > summary .menu-separator { color: var(--muted); margin: 0 9px; }
.workspace-nav > summary .menu-page { color: var(--muted); margin-left: 0; }
@media(max-width:1050px) {
    .workspace-page .page-title h1 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
        overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
    .workspace-page .page-title:not(:has(p)):not(:has(.button)) { margin-bottom: 0; }
    html, body, .workspace-nav { scrollbar-width: none; }
    html::-webkit-scrollbar, body::-webkit-scrollbar, .workspace-nav::-webkit-scrollbar { display: none; }
}
@media(pointer:coarse) {
    html, body, .workspace-nav { scrollbar-width: none; }
    html::-webkit-scrollbar, body::-webkit-scrollbar, .workspace-nav::-webkit-scrollbar { display: none; }
}

/* Activity entries fit small screens without squeezing account names into columns. */
.activity-entry { border-top: 1px solid var(--line); }
.activity-entry > summary { display: grid; grid-template-columns: minmax(0,1fr) auto 14px; gap: 6px 14px; padding: 14px 0; list-style: none; cursor: pointer; }
.activity-entry > summary::-webkit-details-marker { display: none; }
.activity-entry > summary::after { content: '⌄'; grid-column: 3; grid-row: 1; color: var(--blue); }
.activity-entry[open] > summary::after { content: '⌃'; }
.activity-entry .event-label { min-width: 0; overflow-wrap: anywhere; }
.activity-entry time { color: var(--muted); font-size: .77rem; white-space: nowrap; align-self: center; }
.activity-account { grid-column: 1 / -1; min-width: 0; color: var(--muted); font-size: .79rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-details { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 8px 14px; font-size: .84rem; padding: 0 0 16px; margin: 0; }
.activity-details dt { color: var(--muted); }
.activity-details dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.activity-ip { user-select: text; -webkit-user-select: text; }
@media (max-width:480px) {
    .activity-entry > summary { grid-template-columns: minmax(0,1fr) 14px; }
    .activity-entry > summary::after { grid-column: 2; }
    .activity-entry time { grid-column: 1; grid-row: 2; }
    .activity-account { grid-row: 3; }
    .activity-details { grid-template-columns: 85px minmax(0,1fr); }
}
