:root {
    --blue: #2468f2;
    --blue-hover: #1759de;
    --blue-soft: #edf4ff;
    --ink: #1f2d4d;
    --text: #3f4f6b;
    --muted: #7e8da8;
    --line: #e6ebf3;
    --panel: #ffffff;
    --canvas: #f5f7fb;
    --green: #18a878;
    --red: #e85465;
    --shadow: 0 12px 34px rgba(32, 61, 111, .09);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--text); background: var(--canvas); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.drive-app { min-height: 100vh; }
.drive-header { position: sticky; z-index: 30; top: 0; display: flex; min-height: 66px; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid rgba(225,231,241,.9); background: rgba(255,255,255,.94); box-shadow: 0 2px 12px rgba(44,67,108,.035); backdrop-filter: blur(14px); }
.drive-brand { display: inline-flex; min-width: 0; align-items: center; gap: 12px; color: var(--ink); font-size: 15px; font-weight: 720; }
.brand-symbol { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 11px; color: white; background: linear-gradient(145deg, #2b76ff, #1959db); box-shadow: 0 7px 16px rgba(36,104,242,.22); }
.brand-symbol svg { width: 21px; height: 21px; }
.header-security { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.header-security > span { width: 7px; height: 7px; border-radius: 50%; background: #26bd88; box-shadow: 0 0 0 4px rgba(38,189,136,.11); }

.drive-workspace { display: grid; min-height: calc(100vh - 66px); grid-template-columns: 218px minmax(0, 1fr); }
.drive-sidebar { position: sticky; top: 66px; align-self: start; height: calc(100vh - 66px); overflow-y: auto; padding: 29px 18px 22px; border-right: 1px solid var(--line); background: #fbfcfe; }
.sidebar-caption { margin: 0 12px 13px; color: #a0acc0; font-size: 10px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.sidebar-folders { margin-bottom: 23px; padding-bottom: 19px; border-bottom: 1px solid #e8edf5; }
.sidebar-folder-link { display: flex; min-width: 0; min-height: 38px; align-items: center; gap: 9px; margin: 2px 0; padding: 0 11px; border-radius: 9px; color: #65728a; font-size: 11px; transition: color .18s, background .18s; }
.sidebar-folder-link:hover { color: var(--blue); background: #f0f4fb; }
.sidebar-folder-link.active { color: var(--blue); background: #eaf2ff; font-weight: 700; }
.sidebar-folder-link svg { width: 16px; height: 16px; flex: 0 0 auto; }
.sidebar-folder-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-folder-depth-1 { padding-left: 23px; }.sidebar-folder-depth-2 { padding-left: 35px; }.sidebar-folder-depth-3 { padding-left: 47px; }
.sidebar-filter { display: flex; width: 100%; min-height: 44px; align-items: center; gap: 11px; margin: 3px 0; padding: 0 13px; border: 0; border-radius: 10px; color: #586782; background: transparent; text-align: left; transition: color .18s, background .18s; }
.sidebar-filter:hover { color: var(--blue); background: #f0f4fb; }
.sidebar-filter.active { color: var(--blue); background: #eaf2ff; font-weight: 700; }
.sidebar-filter svg { width: 18px; height: 18px; }
.sidebar-filter > span:last-child { margin-left: auto; color: #91a0b7; font-size: 11px; font-weight: 600; }
.sidebar-platform-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 3px; background: #8da0bf; }
.platform-dot-windows { background: #3a79ee; }.platform-dot-macos { background: #758199; }.platform-dot-linux { background: #eeaa2e; }.platform-dot-android { background: #29aa75; }.platform-dot-ios { background: #6e78d9; }
.sidebar-trust { display: grid; grid-template-columns: 32px 1fr; margin-top: 24px; padding: 15px 13px; border: 1px solid #e4eaf4; border-radius: 13px; background: white; box-shadow: 0 8px 22px rgba(42,64,103,.045); }
.sidebar-trust svg { width: 24px; height: 24px; grid-row: 1 / 3; color: var(--blue); }
.sidebar-trust strong { color: var(--ink); font-size: 12px; }
.sidebar-trust span { margin-top: 5px; color: #929db0; font-size: 10px; line-height: 1.7; }

.drive-content { min-width: 0; padding: 28px clamp(22px, 4vw, 64px) 0; }
.download-hero { position: relative; display: flex; min-height: 190px; align-items: center; justify-content: space-between; overflow: hidden; margin: 0 auto 24px; padding: 34px clamp(26px, 4vw, 52px); border: 1px solid #e1e8f4; border-radius: 20px; background: linear-gradient(108deg, #fff 5%, #f5f9ff 61%, #eaf3ff); box-shadow: 0 8px 27px rgba(39,74,131,.055); }
.download-hero::before { position: absolute; right: 13%; bottom: -105px; width: 260px; height: 260px; border-radius: 50%; background: rgba(75,139,255,.07); content: ''; }
.download-hero > div:first-child { position: relative; z-index: 1; max-width: 720px; }
.hero-kicker { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.download-hero h1, .share-heading h1 { margin: 9px 0 11px; color: var(--ink); font-size: clamp(30px, 4vw, 48px); font-weight: 780; letter-spacing: -.045em; line-height: 1.13; }
.download-hero p, .share-heading p { max-width: 720px; margin: 0; color: #71809b; font-size: 14px; line-height: 1.85; }
.hero-illustration { position: relative; z-index: 1; display: grid; width: 150px; height: 120px; flex: 0 0 auto; place-items: center; }
.cloud-shape { display: grid; width: 98px; height: 76px; place-items: center; border: 1px solid rgba(73,133,243,.16); border-radius: 24px; color: var(--blue); background: rgba(255,255,255,.82); box-shadow: 0 18px 30px rgba(36,104,242,.13); transform: rotate(-3deg); }
.cloud-shape svg { width: 62px; height: 47px; stroke-width: 1.6; }

.files-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); box-shadow: var(--shadow); }
.files-toolbar { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 22px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: #98a5b9; font-size: 11px; }
.breadcrumb b { color: #c1c8d5; font-weight: 400; }.breadcrumb strong { color: var(--blue); }
.files-toolbar h2 { margin: 0; color: var(--ink); font-size: 20px; letter-spacing: -.02em; }
.file-search { position: relative; display: flex; width: min(300px, 40vw); align-items: center; }
.file-search svg { position: absolute; left: 13px; width: 17px; height: 17px; color: #9ba8bc; }
.file-search input { width: 100%; height: 40px; padding: 0 14px 0 39px; outline: none; border: 1px solid #e2e7f0; border-radius: 11px; color: var(--ink); background: #f8fafc; font-size: 12px; transition: border-color .18s, background .18s, box-shadow .18s; }
.file-search input:focus { border-color: #8db2fa; background: white; box-shadow: 0 0 0 3px rgba(36,104,242,.09); }
.folder-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 11px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: #fbfcff; }
.folder-row { display: grid; min-width: 0; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 68px; padding: 10px 13px; border: 1px solid #e3e9f3; border-radius: 12px; background: #fff; transition: .18s ease; }
.folder-row:hover { border-color: #bfd2f8; background: #f5f9ff; box-shadow: 0 8px 20px rgba(39,76,139,.08); transform: translateY(-1px); }
.folder-type-icon { display: grid; width: 44px; height: 40px; place-items: center; border-radius: 11px; color: #3577ed; background: #eaf2ff; }
.folder-type-icon svg { width: 27px; height: 23px; fill: currentColor; stroke: none; }
.folder-row-name { min-width: 0; }.folder-row-name strong { display: block; overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.folder-row-name small { display: block; margin-top: 5px; color: #929eb1; font-size: 10px; }
.folder-open { color: #8a98ad; font-size: 10px; white-space: nowrap; }.folder-open b { margin-left: 4px; color: var(--blue); font-size: 17px; }
.breadcrumb a:hover { color: var(--blue); }
.empty-back { display: inline-flex; margin-top: 17px; padding: 9px 14px; border: 1px solid #d9e3f4; border-radius: 9px; color: var(--blue); background: #fff; font-size: 11px; }
.file-list-header, .file-row { display: grid; grid-template-columns: minmax(290px, 1fr) 100px 82px 100px 150px 86px; align-items: center; }
.file-list-header { min-height: 40px; padding: 0 22px; color: #9aa6b9; background: #fbfcfe; font-size: 10px; font-weight: 650; }
.file-row { position: relative; min-height: 86px; padding: 13px 22px; border-top: 1px solid #edf0f5; transition: background .15s; }
.file-row:first-child { border-top: 0; }
.file-row:hover { background: #f9fbff; }
.file-primary { display: flex; min-width: 0; align-items: center; gap: 14px; padding-right: 16px; }
.file-type-icon { position: relative; display: grid; width: 45px; height: 49px; flex: 0 0 auto; place-items: center; border-radius: 10px 10px 10px 4px; color: #426eac; background: #eaf2ff; box-shadow: inset 0 0 0 1px rgba(70,115,181,.07); }
.file-type-icon::after { position: absolute; top: 0; right: 0; border-width: 0 0 9px 9px; border-style: solid; border-color: transparent transparent rgba(255,255,255,.8) transparent; content: ''; }
.file-type-icon span { margin-top: 4px; font-size: 9px; font-weight: 850; letter-spacing: .04em; }
.file-type-windows { color: #2468f2; background: #eaf2ff; }.file-type-macos { color: #69758a; background: #eef1f5; }.file-type-linux { color: #b87805; background: #fff5dc; }.file-type-android { color: #15966a; background: #e5f8f1; }.file-type-ios { color: #626ad2; background: #eeeefe; }
.file-title-wrap { min-width: 0; }
.file-name-line { display: flex; min-width: 0; align-items: center; gap: 7px; margin-bottom: 5px; }
.file-title-wrap h3 { overflow: hidden; min-width: 0; margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.file-password-badge { flex: 0 0 auto; padding: 3px 6px; border-radius: 5px; color: #9a6500; background: #fff3cf; font-size: 8px; font-weight: 750; }
.file-title-wrap p { overflow: hidden; margin: 0; color: #8a97ac; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-file-detail, .mobile-label { display: none; }
.file-cell { min-width: 0; padding-right: 12px; color: #74829a; font-size: 11px; }
.file-cell strong { color: #42516b; font-size: 12px; font-weight: 650; }
.platform-tag { display: inline-flex; padding: 5px 8px; border-radius: 7px; color: #557092; background: #f0f4f9; font-size: 9px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.file-updated { white-space: nowrap; }
.file-actions { text-align: right; }
.download-action { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; border: 1px solid #cbdcff; border-radius: 9px; color: var(--blue); background: white; font-size: 11px; font-weight: 700; transition: color .18s, border-color .18s, background .18s, transform .18s; }
.download-action:hover { color: white; border-color: var(--blue); background: var(--blue); box-shadow: 0 7px 16px rgba(36,104,242,.18); transform: translateY(-1px); }
.download-action svg { width: 14px; height: 14px; }
.list-summary { padding: 13px 23px; border-top: 1px solid var(--line); color: #98a4b6; background: #fbfcfe; font-size: 10px; }
.list-summary strong { color: #667793; }
.files-empty { padding: 70px 20px; color: #8996aa; text-align: center; }
.files-empty span { color: var(--ink); font-size: 16px; font-weight: 700; }.files-empty p { margin: 8px 0 0; font-size: 12px; }
.drive-footer { display: flex; min-height: 75px; align-items: center; justify-content: space-between; gap: 20px; color: #98a4b7; font-size: 10px; }

/* Single-file share */
.share-content { width: min(1160px, calc(100% - 42px)); margin: 0 auto; }
.share-breadcrumb { display: flex; align-items: center; gap: 9px; padding-top: 25px; color: #929fb2; font-size: 11px; }.share-breadcrumb a:hover { color: var(--blue); }.share-breadcrumb b { font-weight: 400; }
.share-heading { padding: 55px 0 32px; }.share-heading h1 { max-width: 900px; font-size: clamp(32px, 5vw, 54px); }
.share-panel { margin-bottom: 26px; }.share-state { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 6px; color: #7c8aa0; font-size: 10px; }.share-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.share-unavailable { display: grid; min-height: 500px; place-items: center; align-content: center; text-align: center; }.unavailable-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 18px; color: var(--red); background: #fff0f2; font-size: 26px; font-weight: 800; }.share-unavailable h1 { margin: 20px 0 8px; color: var(--ink); }.share-unavailable p { margin: 0 0 24px; color: var(--muted); }.secondary-action { padding: 11px 18px; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: 12px; }

/* Download security dialog */
body.modal-open { overflow: hidden; }
.download-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(23,35,59,.61); backdrop-filter: blur(5px); }
.download-dialog { position: relative; z-index: 1; width: min(474px, 100%); padding: 35px 36px 29px; border: 1px solid rgba(255,255,255,.75); border-radius: 22px; background: white; box-shadow: 0 30px 80px rgba(12,26,54,.3); text-align: center; animation: dialog-in .2s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-close { position: absolute; top: 16px; right: 16px; display: grid; width: 33px; height: 33px; place-items: center; border: 0; border-radius: 50%; color: #8490a4; background: #f1f4f8; font-size: 22px; line-height: 1; }
.modal-close:hover { color: var(--ink); background: #e9edf3; }
.dialog-security-icon { display: grid; width: 62px; height: 62px; place-items: center; margin: 0 auto 17px; border-radius: 19px; color: white; background: linear-gradient(145deg, #22b986, #3cc99b); box-shadow: 0 14px 29px rgba(28,177,128,.21); }
.dialog-security-icon svg { width: 31px; height: 31px; stroke-width: 1.7; }
.dialog-eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .2em; }
.download-dialog h2 { margin: 0; color: var(--ink); font-size: 25px; letter-spacing: -.035em; }
.dialog-file { margin: 9px 0 0; color: var(--blue); font-size: 12px; font-weight: 650; }
.dialog-description { margin: 18px auto 17px; color: #71809a; font-size: 12px; line-height: 1.8; }
.password-stage { display: grid; gap: 9px; margin: 0 0 16px; text-align: left; }
.password-stage label { color: #42516b; font-size: 12px; font-weight: 700; }
.password-stage input { width: 100%; height: 46px; padding: 0 13px; outline: none; border: 1px solid #dce4f0; border-radius: 10px; color: var(--ink); background: #f8fafc; font-size: 14px; transition: border-color .18s, background .18s, box-shadow .18s; }
.password-stage input:focus { border-color: #8db2fa; background: #fff; box-shadow: 0 0 0 3px rgba(36,104,242,.09); }
.password-stage small { color: #929eb1; font-size: 10px; line-height: 1.6; }
.captcha-stage { display: grid; min-height: 72px; place-items: center; margin-bottom: 13px; }
.recaptcha-container { display: grid; place-items: center; max-width: 100%; }
.captcha-loading { display: inline-flex; align-items: center; gap: 10px; color: #7b899e; font-size: 11px; }
.loading-ring, .button-spinner { width: 17px; height: 17px; border: 2px solid rgba(36,104,242,.2); border-top-color: currentColor; border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
cap-widget { --cap-widget-width: 290px; --cap-widget-height: 58px; --cap-background: #f9fbff; --cap-border-color: #dfe7f4; --cap-border-radius: 12px; --cap-color: #2d3e5e; --cap-focus-ring: #2468f2; }
.dialog-error { display: none; margin: 0 0 13px; padding: 10px 12px; border-radius: 9px; color: #c43f53; background: #fff0f2; font-size: 11px; line-height: 1.55; }
.dialog-error.visible { display: block; }
.dialog-submit { display: flex; width: 100%; min-height: 49px; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 11px; color: white; background: linear-gradient(100deg, #2468f2, #4c83f5); box-shadow: 0 12px 24px rgba(36,104,242,.2); font-size: 14px; font-weight: 750; transition: filter .18s, transform .18s, opacity .18s; }
.dialog-submit:hover:not(:disabled) { filter: brightness(1.04); transform: translateY(-1px); }.dialog-submit:disabled { cursor: not-allowed; opacity: .56; box-shadow: none; }
.button-spinner { width: 16px; height: 16px; color: white; border-color: rgba(255,255,255,.35); border-top-color: white; }
.dialog-hint { margin: 14px 0 0; color: #a0aabc; font-size: 10px; }

:focus-visible { outline: 3px solid rgba(36,104,242,.28); outline-offset: 2px; }

@media (max-width: 1080px) {
    .drive-workspace { grid-template-columns: 180px minmax(0,1fr); }
    .drive-sidebar { padding-inline: 12px; }
    .file-list-header, .file-row { grid-template-columns: minmax(260px,1fr) 88px 70px 92px 86px; }
    .file-list-header span:nth-child(5), .file-updated { display: none; }
}

@media (max-width: 800px) {
    .drive-header { min-height: 60px; padding: 0 18px; }.drive-brand { font-size: 13px; }.brand-symbol { width: 33px; height: 33px; }
    .drive-workspace { display: block; }.drive-sidebar { position: static; display: flex; width: 100%; height: auto; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }.sidebar-caption, .sidebar-trust, .sidebar-folders { display: none; }.sidebar-platforms { display: contents; }.sidebar-filter { width: auto; min-height: 36px; flex: 0 0 auto; margin: 0; padding: 0 12px; border: 1px solid #e5eaf2; background: white; font-size: 11px; }.sidebar-filter.active { border-color: #c8d9fa; }.sidebar-filter svg { width: 15px; }.sidebar-filter > span:last-child { margin-left: 4px; }
    .drive-content { padding: 18px 16px 0; }.download-hero { min-height: 165px; padding: 27px 24px; }.download-hero h1 { font-size: 31px; }.hero-illustration { display: none; }
    .files-toolbar { min-height: auto; align-items: stretch; flex-direction: column; padding: 18px; }.file-search { width: 100%; }
    .folder-list { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
    .file-list-header { display: none; }.file-row { grid-template-columns: 1fr auto; min-height: 0; padding: 18px; }.file-primary { padding-right: 12px; }.file-cell { display: none; }.mobile-file-detail { display: block; margin-top: 7px; color: #75849b; font-size: 10px; }.file-actions { align-self: center; }
    .drive-footer { flex-direction: column; justify-content: center; gap: 5px; padding: 18px 0; }
    .share-content { width: calc(100% - 30px); }.share-heading { padding: 42px 3px 27px; }
}

@media (max-width: 480px) {
    .header-security { font-size: 0; }.header-security > span { margin-right: 1px; }
    .download-hero { border-radius: 15px; }.download-hero h1 { font-size: 27px; }.download-hero p { font-size: 12px; line-height: 1.75; }
    .files-panel { border-radius: 14px; }.file-row { display: block; }.file-primary { padding: 0; }.file-type-icon { width: 41px; height: 45px; }.file-actions { margin: 16px 0 0 55px; text-align: left; }.download-action { min-height: 37px; padding-inline: 16px; }
    .folder-row { grid-template-columns: 42px minmax(0, 1fr); }.folder-open { display: none; }
    .download-dialog { padding: 31px 19px 25px; border-radius: 19px; }.download-dialog h2 { font-size: 23px; }.recaptcha-container { width: 304px; max-width: calc(100vw - 54px); transform: scale(.88); transform-origin: center; margin: -4px -18px; } cap-widget { --cap-widget-width: 265px; }
}

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