/* Layout rules: stable spacing and action alignment, independent of theme colors. */
:root{--layout-space:24px;--control-height:44px}
main{min-width:0}main>section,main>div,article,form{min-width:0}
:is(.primary,.outline,.signin,.clear-button,.download-action){min-height:var(--control-height);vertical-align:middle;text-align:center;line-height:1.35;white-space:normal}
:is(.modal-actions,.security-actions,.dashboard-actions,.cookie-actions,.site-confirm-actions){display:flex;align-items:center;gap:12px;flex-wrap:wrap}
:is(.modal-actions,.security-actions,.dashboard-actions)>:is(button,a){margin:0;flex-shrink:0}
.studio-form{width:100%;min-width:0;gap:20px}.studio-form>label{min-width:0;line-height:1.5}.studio-form input:not([type=checkbox]):not([type=radio]):not([type=file]),.studio-form textarea,.studio-form select{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.form-status:empty{display:none}.form-status{margin:12px 0 0;overflow-wrap:anywhere}
.dashboard-hero{gap:24px}.dashboard-actions{justify-content:flex-end}.dashboard-hero>div:first-child{min-width:0}
.file-cards article>button{vertical-align:middle}.files-share-form .files-form-grid{align-items:start}.files-share-form .files-form-grid label{display:grid;grid-template-rows:auto auto 1fr;gap:0}
.contact-card>button[type=submit],.email-card .studio-form>button[type=submit]{justify-self:start;width:auto;min-width:160px}
/* Settings: one card rhythm and one desktop action column. */
#settings-content{max-width:1040px;margin-inline:auto;display:grid;gap:24px}#settings-content[hidden]{display:none}
#settings-content>.dashboard-section,#settings-content>.settings-profile{margin:0;padding:28px;border-radius:16px}
#settings-content .settings-profile{align-items:center;gap:18px}.settings-profile h2{line-height:1.25}.settings-profile p{margin:6px 0 10px;line-height:1.5}
#settings-content .profile-editor>h2{margin:0 0 8px}#settings-content .profile-editor>p{color:var(--muted);margin:0;line-height:1.7}
#settings-content .studio-form{max-width:600px;margin:24px 0 0;gap:20px}
#settings-content .studio-form>.primary{width:auto;justify-self:start;min-width:150px;margin:0}
#settings-content .studio-form .form-note{margin:0}#settings-content .studio-form>p.form-status{margin:0}
#settings-content .security-section>.section-heading{margin:0 0 24px;gap:16px;align-items:center}#settings-content .security-section .section-heading h2{margin:8px 0 0}
#settings-content .security-row{display:grid;grid-template-columns:minmax(0,1fr) 240px;align-items:start;gap:24px;padding:24px 0;margin:0;border-top:1px solid var(--line)}
#settings-content .security-row>div:first-child{min-width:0}#settings-content .security-row h3{font-size:15px;line-height:1.5;margin:0 0 7px}#settings-content .security-row p{max-width:560px;line-height:1.7;margin:0}
#settings-content .security-row>button,#settings-content .security-row>.security-actions{width:100%;margin:0;justify-self:end}
#settings-content .security-row>.security-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px}
#settings-content .security-row>.security-actions>a{display:flex;align-items:center;justify-content:center;width:100%;min-width:0}
#settings-content .security-row .status-pending{align-self:flex-start;max-width:100%;padding:5px 10px;font-size:12px}
#settings-content .security-panel{padding:24px;margin:0 0 20px}#settings-content .security-panel[hidden]{display:none}#settings-content .security-panel .studio-form{margin:0}
#settings-content .security-actions .primary{width:auto;min-width:150px}
#settings-content .security-section>details{margin:0;padding:16px 0;border-top:1px solid var(--line)}#settings-content summary{font-weight:650;line-height:1.5;cursor:pointer}
#settings-content #session-list p{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:14px 0;margin:0;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}
#settings-content #session-list button{min-width:120px;margin:0;flex-shrink:0}
#settings-content .security-activity .form-note{margin:14px 0}#settings-content .security-activity li{align-items:start}
#settings-content .settings-note{margin:0;padding:0 4px}#settings-content .settings-note h2{margin:0 0 8px}#settings-content .settings-note p{margin:0}
#settings-content .delete-account{border-color:color-mix(in srgb,var(--accent) 35%,var(--line))}#settings-content .delete-account>p{max-width:700px;color:var(--muted);line-height:1.7;margin:16px 0 0}
#settings-content #social-delete-confirm{display:grid;gap:16px}#settings-content #social-delete-confirm[hidden]{display:none}#settings-content #send-delete-code{justify-self:start}
#settings-content .settings-signout{margin:0;padding:24px 0 0;justify-content:flex-start}#settings-content #logout{min-width:150px}
@media(max-width:760px){
 #settings-content{gap:18px}#settings-content>.dashboard-section,#settings-content>.settings-profile{padding:22px}
 #settings-content .security-row{grid-template-columns:1fr;gap:16px;padding:22px 0}
 #settings-content .security-row>button,#settings-content .security-row>.security-actions{justify-self:start;width:100%;max-width:320px}
 #settings-content .security-section>.section-heading{flex-wrap:wrap}#settings-content .security-panel{padding:18px}
 #settings-content .security-activity li{flex-direction:column;gap:6px}
 .dashboard-actions{justify-content:flex-start}
}
@media(max-width:420px){
 :is(.modal-actions,.security-actions,.site-confirm-actions)>:is(button,a){flex:1 1 100%;width:100%;min-width:0}
 #settings-content>.dashboard-section,#settings-content>.settings-profile{padding:18px}
 #settings-content .studio-form>.primary{width:100%;min-width:0}
 #settings-content .settings-profile{align-items:flex-start}
}
/* Shared layouts for tools, account flows, contacts, files, plans and policies. */
.account-layout,.contact-layout{align-items:start;gap:clamp(24px,4vw,64px)}.account-layout>.account-story{align-self:center}.account-card,.contact-card{min-width:0}.contact-card.studio-form{margin:0;max-width:none}.account-card .studio-form,.email-card .studio-form{max-width:none}.account-card .studio-form>.primary{margin-top:0}
.email-card{width:100%;max-width:560px}.email-card .studio-form{gap:20px}.verify-send-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.verify-send-row button{margin:0}.verification-steps{align-items:start}.verify-recipient{overflow-wrap:anywhere}
.options{align-items:start;gap:20px}.options>label{min-width:0}.options input,.options select{max-width:100%;min-width:0}.modal-actions{margin-top:24px;justify-content:flex-start}.download-result{align-items:center;min-width:0}.download-details{min-width:0}.download-action{flex-shrink:0}.file-row{gap:16px;align-items:center}.file-row span{min-width:0;overflow-wrap:anywhere}.file-row small{flex-shrink:0}
.plan-grid{align-items:stretch}.plan-grid .plan{display:flex;flex-direction:column;min-width:0}.plan-grid .plan>:is(a.primary,a.outline,button){margin-top:auto;width:100%}.plan-grid .plan ul{flex-grow:1}
.policy-page{width:100%;max-width:820px;margin-inline:auto}.policy-page h1{font-size:clamp(30px,4vw,46px);overflow-wrap:anywhere}.policy-page section{margin:28px 0}.policy-page p{line-height:1.8;overflow-wrap:anywhere}
#admin-panel .studio-form{padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--panel);max-width:720px}#admin-panel .studio-form>button{justify-self:start;width:auto}#admin-panel .studio-form label:has(input[type=checkbox]){display:flex;gap:10px;align-items:center}#admin-panel input[type=checkbox]{width:18px;height:18px;margin:0}#admin-tables td{overflow-wrap:anywhere;max-width:350px}.history-table{max-width:100%;overflow-x:auto}.history-table th,.history-table td{vertical-align:top}
#shared-download label{display:block;line-height:1.5}.shared-file-card #shared-download button{justify-self:start;min-width:180px}.files-section-heading{gap:18px}.files-upload .primary{min-width:170px}.files-links .file-cards article{min-width:0}.files-share-form .primary{width:100%;margin:0}
footer{display:flex;align-items:center;justify-content:center;gap:8px 12px;padding:24px;flex-wrap:wrap}footer>a,footer button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;line-height:1.4;padding:6px 9px;border-radius:7px;font-size:12px;font-weight:500;white-space:normal;text-align:center}
body footer :is(#privacy,#cookie-settings),body footer>a{background:transparent!important;background-image:none!important;color:var(--muted)!important;border-color:transparent!important;box-shadow:none!important;text-decoration:none}
body footer :is(#privacy,#cookie-settings):hover,body footer>a:hover{background:var(--soft)!important;color:var(--accent)!important;box-shadow:none!important;filter:none}
body footer>a[aria-current="page"]{background:var(--accent)!important;color:var(--button-ink)!important;font-weight:650}
@media(max-width:760px){.account-layout,.contact-layout{grid-template-columns:1fr;gap:24px}.account-story{padding:0}.contact-card,.account-card{padding:24px}.modal-actions>*{max-width:100%}.options{grid-template-columns:1fr}.plan-grid{grid-template-columns:1fr}.policy-page section{margin:24px 0}#admin-panel .studio-form{padding:18px}.download-result{flex-wrap:wrap}.download-action{min-width:120px}.shared-file-card{padding:24px!important}footer{padding:22px 16px;gap:6px}}
@media(max-width:420px){.files-sharing-grid{gap:18px}.site-confirm-actions>*{width:100%}.contact-card>button[type=submit],.email-card .studio-form>button[type=submit]{width:100%;min-width:0}.file-row{align-items:flex-start;flex-direction:column;gap:4px}}

/* Individual sessions share the same action-column width as security controls. */
#settings-content #session-list p{display:grid;grid-template-columns:minmax(0,1fr) 240px;align-items:center;gap:24px}#settings-content #session-list button{width:240px;min-width:0;justify-self:end}
@media(max-width:760px){#settings-content #session-list p{grid-template-columns:1fr;gap:14px}#settings-content #session-list button{width:100%;max-width:320px;justify-self:start}}
/* Header and footer share the same centered outer frame. */
footer{width:min(1400px,100%);margin-inline:auto;flex-shrink:0;border-top:1px solid var(--line);box-sizing:border-box}
/* Report type dropdown only. Keep native keyboard and screen-reader behavior. */
#abuse-kind{appearance:none;-webkit-appearance:none;display:block;width:100%;min-height:46px;margin-top:9px;padding:12px 42px 12px 14px;border:1px solid var(--line);border-radius:9px;background-color:var(--bg);color:var(--text);font:inherit;font-weight:400;line-height:1.5;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b82040' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;transition:border-color .2s,box-shadow .2s}
#abuse-kind:hover{border-color:var(--accent)}#abuse-kind:focus-visible{border-color:var(--accent);outline:2px solid var(--accent);outline-offset:2px;box-shadow:0 0 0 4px var(--glow-faint)}#abuse-kind option{background:var(--panel);color:var(--text)}html[data-theme=dark] #abuse-kind{color-scheme:dark;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff819e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
@media(prefers-reduced-motion:reduce){#abuse-kind{transition:none}}
/* Understated creator watermark at the end of the footer. */
footer .creator-credit{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:400;letter-spacing:.25px;line-height:1.4;color:var(--muted);opacity:.65;padding:6px 9px;white-space:nowrap;user-select:none}footer .creator-credit>span{opacity:.75;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px}
header nav .theme-toggle{width:28.5px;height:28.5px;min-width:28.5px;min-height:28.5px;padding:0;font-size:18px;margin-inline:4px}
/* Keep public navigation left and account controls right. */
header>nav{flex:1;justify-content:flex-start}header nav .theme-toggle{margin-left:auto;margin-right:4px}
@media(max-width:900px){header nav .theme-toggle{margin-left:auto}}
header nav .theme-toggle{margin-right:16px}
@media(max-width:600px){header nav .theme-toggle{margin-right:10px}}
/* Stable top navigation: flat text, fixed geometry, current-page accent only. */
header{background:var(--bg);box-shadow:none}header>nav{align-items:center;gap:6px}
header nav>a,header nav>button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 13px;border:1px solid transparent;border-radius:8px;font-family:var(--font-ui);font-size:14px;font-weight:600;line-height:20px;letter-spacing:0;text-rendering:auto;-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto;font-synthesis:none;color:var(--text)!important;background:transparent!important;box-shadow:none!important;text-decoration:none!important;transform:none!important;filter:none!important;animation:none!important;transition:background-color .16s ease,color .16s ease,border-color .16s ease}
header nav>a:hover,header nav>button:not(:disabled):hover{background:var(--soft)!important;color:var(--text)!important;border-color:var(--line);transform:none!important;filter:none!important;box-shadow:none!important}
header nav>[aria-current="page"],header nav>[aria-current="location"],header nav>[aria-current]:hover{background:#b82040!important;color:#ffffff!important;border-color:#b82040!important;box-shadow:none!important;text-decoration:none!important}
header nav>:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
header nav .theme-toggle{width:28px;height:28px;min-width:28px;min-height:28px;padding:0;font-size:18px;line-height:24px;margin-left:auto;margin-right:16px;border:1px solid var(--line);color:var(--text)!important}
header nav .nav-contact{margin-left:0}
@media(max-width:900px){header nav>a,header nav>button{font-size:13px;padding:9px 10px;min-height:40px}}
@media(max-width:600px){header nav{gap:4px}header nav .theme-toggle{margin-right:10px}header nav>a,header nav>button{font-size:12px;padding:9px 8px}}
@media(prefers-reduced-motion:reduce){header nav>a,header nav>button{transition:none}}
/* Vector theme icons: no font glyphs, fractional box sizes or animated scaling. */
header nav .theme-toggle{display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1;font-size:0}header nav .theme-toggle svg{display:block;width:18px;height:18px;flex:none;pointer-events:none;transform:none;filter:none}
/* Bare theme icon, including dark mode and interaction states. */
header nav #theme,header nav #theme:hover,header nav #theme:active,html[data-theme=dark] header nav #theme{border:0!important;background:none!important;border-radius:0!important;box-shadow:none!important;filter:none!important;transform:none!important;color:var(--muted)!important}
header nav #theme:hover{color:var(--text)!important}header nav #theme svg{width:20px;height:20px;stroke-width:1.5;shape-rendering:geometricPrecision;overflow:visible}
/* Content action colors stay identical across themes. */
html[data-theme=dark] body :is(button:not(header button):not(footer button):not(.sign-handle):not(.sign-existing),a.primary,a.outline,a.download-action,label.files-picker){background-color:#b82040!important;border-color:#b82040!important;color:#ffffff!important}
html[data-theme=dark] body button:not(header button):not(footer button)[aria-current],html[data-theme=dark] body button:not(header button):not(footer button)[aria-pressed=true]{box-shadow:inset 0 -3px 0 #ffffff,0 3px 12px var(--glow)}
/* Tools landing page: stable category grid plus two practical feature blocks. */
main.tools-page{max-width:1120px}.tools-page>.tools-intro,.tools-page>.tool-section,.tools-page>.tools-feature-grid{width:100%;max-width:1040px;margin-inline:auto}.tools-page .category-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tools-page .category{min-width:0}.tools-page .category>summary{min-height:94px;align-items:center;gap:12px}.tools-page .category>summary small{line-height:1.5}.tools-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:32px}.tools-feature-card{display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:26px;border:1px solid var(--line);border-radius:16px;background:var(--panel);min-width:0}.tools-feature-card h2{margin:0;font-size:21px}.tools-feature-card h2 span{color:var(--accent)}.tools-feature-card p{margin:0 0 8px;color:var(--muted);line-height:1.7;max-width:440px}.feature-action{margin-top:auto;font-size:13px;font-weight:650;color:var(--accent)}.tools-feature-card:hover{border-color:var(--accent);background:var(--soft)}
/* My files: a single rail, aligned upload/storage row, then library and sharing. */
.files-hero,.files-notice,.files-workspace{width:100%;max-width:1040px;margin-inline:auto}.files-hero{padding:12px 0 28px;gap:24px}.files-hero h1{font-size:clamp(32px,4vw,44px);margin:14px 0 12px}.files-hero p{margin:0;line-height:1.6}.files-notice:not(:empty){margin-top:0;margin-bottom:20px}
.files-workspace{grid-template-columns:minmax(0,2fr) minmax(240px,1fr);grid-template-areas:'upload storage' 'library library' 'sharing sharing';gap:24px;align-items:stretch}.files-workspace[hidden]{display:none}
.files-workspace>.files-upload{grid-area:upload;width:100%;margin:0;padding:28px;max-width:none;min-width:0}.files-workspace>.files-storage{grid-area:storage;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:18px;padding:28px;margin:0;min-width:0}.files-storage .storage-ring{width:112px;height:112px}.files-storage .storage-ring span{font-size:24px}.files-storage .storage-ring:before{inset:10px}.files-storage p{font-size:14px;line-height:1.6;margin:10px 0 0}.files-storage small{line-height:1.6;margin-top:8px}
.files-library{grid-area:library;min-width:0;margin:0}.files-section-heading{margin:0 0 16px}.files-section-heading h2{margin:6px 0 0}.files-workspace>.files-sharing-grid{grid-area:sharing;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:24px;margin:0}.files-sharing-grid>.files-links,.files-sharing-grid>.files-share-form{margin:0!important;padding:24px;min-width:0;width:100%}.files-links h2,.files-share-form h2{font-size:21px;line-height:1.4;margin:8px 0 16px}.files-links>.form-note{margin:0 0 22px;line-height:1.6}.files-share-form{gap:18px}.files-share-form>h2{margin:0 0 2px}.files-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.files-share-form label{line-height:1.5}.files-share-form small{line-height:1.5}.file-cards article{padding:20px;margin:0}.file-cards article h3{line-height:1.5}.file-cards article p{line-height:1.6}.files-upload .files-picker,.files-upload>.primary{min-width:170px}.files-upload>.form-note{margin:12px 0;line-height:1.6}.files-upload>progress{margin-top:12px}.files-share-form select{min-height:46px}
@media(max-width:760px){.tools-page .category-list{grid-template-columns:repeat(2,minmax(0,1fr))}.tools-feature-grid{grid-template-columns:1fr}.tools-page .category:nth-child(3n) .dropdown{left:-1px;right:auto}.tools-page .category:nth-child(2n) .dropdown{right:-1px;left:auto}.files-workspace{grid-template-columns:1fr;grid-template-areas:'storage' 'upload' 'library' 'sharing';gap:20px}.files-workspace>.files-storage{flex-direction:row;text-align:left;justify-content:flex-start;padding:22px}.files-storage .storage-ring{width:84px;height:84px}.files-storage .storage-ring span{font-size:18px}.files-workspace>.files-sharing-grid{grid-template-columns:1fr;gap:20px}.files-hero{align-items:flex-start;flex-direction:column;gap:18px}.files-workspace>.files-upload{padding:24px}.tools-feature-card{padding:24px}}
@media(max-width:480px){.tools-page .category-list{grid-template-columns:1fr}.files-form-grid{grid-template-columns:1fr}.files-sharing-grid>.files-links,.files-sharing-grid>.files-share-form{padding:20px}.files-storage p{font-size:13px}.files-workspace>.files-storage{padding:18px;gap:14px}}
/* My files: four equal columns. Library spans the full rail below. */
.files-hero,.files-notice,.files-workspace{max-width:1328px}
.files-workspace{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-areas:'storage upload links create' 'library library library library';align-items:stretch;gap:18px}
.files-workspace>.files-storage{grid-area:storage}.files-workspace>.files-upload{grid-area:upload}.files-workspace>.files-links{grid-area:links}.files-workspace>.files-share-form{grid-area:create}.files-workspace>.files-library{grid-area:library}
.files-workspace>:is(.files-storage,.files-upload,.files-links,.files-share-form){width:100%;min-width:0;margin:0!important;padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--panel);min-height:540px;box-sizing:border-box}
.files-workspace>.files-storage{justify-content:flex-start;padding-top:36px;flex-direction:column;text-align:center}
.files-workspace>.files-upload{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:36px}.files-upload h2,.files-links h2,.files-share-form h2{font-size:19px;line-height:1.4}.files-upload>p{font-size:13px}.files-upload>.primary{margin-top:auto}.files-upload>.files-picker{margin-top:8px}
.files-workspace>.files-links{display:flex;flex-direction:column;gap:12px}.files-links h2{margin:0}.files-links>.form-note{margin:0;line-height:1.6}.files-links>.file-cards{margin-top:8px;max-height:420px;overflow:auto}.files-links .file-cards article{padding:14px}.files-links .file-cards button{width:100%;margin:6px 0 0}
.files-workspace>.files-share-form{display:flex;flex-direction:column;gap:14px}.files-workspace>.files-share-form[hidden]{display:none}.files-share-form>.eyebrow{line-height:1.5}.files-share-form h2{margin:0}.files-share-form .files-form-grid{grid-template-columns:1fr;gap:14px}.files-share-form label{font-size:13px}.files-share-form small{font-size:11px}.files-share-form input,.files-share-form select{padding:11px}.files-share-form>.primary{margin-top:auto}.files-share-form #new-share-result{margin-top:0}
@media(max-width:1100px){.files-workspace{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:'storage upload' 'links create' 'library library';gap:20px}.files-workspace>:is(.files-storage,.files-upload,.files-links,.files-share-form){min-height:480px}.files-share-form .files-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.files-workspace{grid-template-columns:1fr;grid-template-areas:'storage' 'upload' 'library' 'links' 'create';gap:18px}.files-workspace>:is(.files-storage,.files-upload,.files-links,.files-share-form){min-height:0;padding:22px}.files-workspace>.files-storage{padding-top:22px;flex-direction:row;text-align:left;align-items:center}.files-upload>.primary,.files-share-form>.primary{margin-top:8px}.files-links>.file-cards{max-height:none}.files-share-form .files-form-grid{grid-template-columns:1fr}}
/* My files: match every main block to the library's full-width horizontal rail. */
.files-workspace{grid-template-columns:minmax(0,1fr);grid-template-areas:'storage' 'upload' 'library' 'links' 'create';gap:24px}
.files-workspace>:is(.files-storage,.files-upload,.files-links,.files-share-form){min-height:0;width:100%;max-width:none;margin:0!important;padding:26px}
.files-workspace>.files-storage{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;text-align:left;gap:22px;padding:22px 26px}.files-storage .storage-ring{width:84px;height:84px}.files-storage .storage-ring span{font-size:18px}
.files-workspace>.files-upload{padding:28px;align-items:center}.files-upload>.primary{margin-top:4px}
.files-workspace>.files-library{width:100%;padding:26px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}
.files-workspace>.files-links{gap:14px}.files-links>.file-cards{width:100%;max-height:none;overflow:visible}.files-links .file-cards article{padding:18px}.files-links .file-cards button{width:auto;margin:6px 8px 0 0}
.files-workspace>.files-share-form{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.files-workspace>.files-share-form[hidden]{display:none}.files-share-form>label,.files-share-form>.files-form-grid{width:100%;max-width:680px}.files-share-form .files-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.files-share-form>.primary{justify-self:start;width:auto;min-width:180px;margin-top:0}.files-share-form #new-share-result{max-width:680px;width:100%}
@media(max-width:640px){.files-workspace{gap:18px}.files-workspace>:is(.files-storage,.files-upload,.files-library,.files-links,.files-share-form){padding:20px}.files-share-form .files-form-grid{grid-template-columns:1fr}.files-links .file-cards button{width:100%;margin:6px 0 0}}
/* Upload card follows the same left alignment and inset as the other file cards. */
.files-workspace>.files-upload{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:26px;gap:0}.files-upload .files-upload-icon{margin:0 0 14px}.files-upload h2{margin:0 0 10px;font-size:21px;line-height:1.4}.files-upload>p{margin:0 0 18px;line-height:1.6;max-width:680px}.files-upload>.files-picker{margin:0;min-width:170px}.files-upload>#selected-files{margin:10px 0 16px}.files-upload>.primary{margin:0;min-width:170px}.files-upload>.form-note{margin:14px 0 0;max-width:680px}.files-upload>progress{align-self:stretch;width:100%;margin-top:16px}
@media(max-width:640px){.files-workspace>.files-upload{padding:20px}}
.files-upload #upload-pick{min-width:170px;margin:6px 0 0}.files-upload #selected-files{margin:12px 0 0;font-variant-numeric:tabular-nums}.files-upload #upload-progress{height:9px}.files-upload #upload-progress::-moz-progress-bar{transition:width .2s ease}.files-upload #upload-pick:disabled{cursor:progress}
/* Consistent breathing room between adjacent actions everywhere. */
:root{--action-gap:12px}
:where(main,dialog,aside) :is(button:not(.sign-handle):not(.sign-existing),a.primary,a.outline,a.download-action)+:is(button:not(.sign-handle):not(.sign-existing),a.primary,a.outline,a.download-action){margin-inline-start:var(--action-gap);margin-block-start:8px}
:is(.modal-actions,.security-actions,.dashboard-actions,.cookie-actions,.site-confirm-actions,.sign-toolbar,.verify-send-row,.auth-tabs){gap:var(--action-gap);row-gap:var(--action-gap)}
:is(.modal-actions,.security-actions,.dashboard-actions,.cookie-actions,.site-confirm-actions,.sign-toolbar,.verify-send-row,.auth-tabs)>:is(button,a){margin:0!important}
.file-cards article>button{margin-block-start:12px;margin-inline-end:0}.file-cards article>button+button{margin-inline-start:12px}
.files-links .file-cards button{margin-block-start:12px}#new-share-result{gap:14px}.studio-form>.primary{margin-block-start:4px}.studio-form>button+button{margin-inline-start:0;margin-block-start:0}
header>nav{gap:10px;row-gap:12px}footer{column-gap:12px;row-gap:12px}
@media(max-width:760px){header>nav{gap:8px;row-gap:10px}.file-cards article>button{margin-inline-start:0!important;margin-inline-end:0;width:100%;margin-block-start:12px}.security-actions>button,.security-actions>a{margin:0!important}}
@media(max-width:420px){.site-confirm-actions,.modal-actions{gap:12px}:where(main,dialog,aside)>button+button{margin-inline-start:0}}
