:root {
  color-scheme: light;
  --ink: #123451;
  --ink-soft: #315a78;
  --muted: #5f829b;
  --line: rgba(255, 255, 255, .76);
  --line-blue: rgba(58, 148, 203, .28);
  --sky-top: #62c8f4;
  --sky-mid: #9fe4fa;
  --sky-bottom: #eafaff;
  --glass: rgba(255, 255, 255, .59);
  --glass-strong: rgba(255, 255, 255, .79);
  --aqua: #0d9ed0;
  --blue: #1974db;
  --teal: #0d9f90;
  --deep-blue: #1764b5;
  --error: #c14c4b;
}

* { box-sizing: border-box; }
[hidden],
.login-layer[hidden],
.app-shell[hidden] { display: none !important; }
html { min-width: 0; min-height: 100%; background: var(--sky-top); scroll-behavior: auto; }
body { min-width: 0; min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--ink); background: linear-gradient(160deg, var(--sky-top) 0%, var(--sky-mid) 48%, var(--sky-bottom) 100%); font-family: "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif; }
body::before { position: absolute; inset: 0 0 auto; z-index: -3; height: 100vh; content: ""; background: linear-gradient(116deg, rgba(255,255,255,.35), transparent 31%, rgba(215,250,255,.38) 70%, rgba(255,255,255,.48)); pointer-events: none; }
body::after { display: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, .upload-zone:focus-visible { outline: 3px solid rgba(9, 115, 207, .56); outline-offset: 3px; }

.sky-layer { position: absolute; inset: 0 0 auto; z-index: -1; height: 100vh; overflow: hidden; pointer-events: none; }
.sky-streak { position: absolute; display: block; width: 56vw; height: 12vh; border-top: 1px solid rgba(255,255,255,.62); border-radius: 50%; opacity: .8; }
.streak-one { top: 8vh; left: -16vw; transform: rotate(-13deg); }
.streak-two { right: -24vw; bottom: 21vh; width: 62vw; height: 16vh; border-top-color: rgba(230,254,255,.9); transform: rotate(14deg); }

.login-layer { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 28px; background: linear-gradient(160deg, rgba(97, 200, 244, .58), rgba(234, 250, 255, .76)); }
.login-panel { position: relative; width: min(100%, 436px); padding: 0 40px 34px; overflow: hidden; border: 1px solid rgba(255,255,255,.88); border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(235,250,255,.82)); box-shadow: 0 18px 42px rgba(15, 107, 163, .18), inset 0 1px 1px rgba(255,255,255,.96); }
.login-panel::after { position: absolute; top: 66px; right: -30px; width: 170px; height: 62px; content: ""; border: 1px solid rgba(255,255,255,.78); border-radius: 50%; background: rgba(255,255,255,.2); transform: rotate(-28deg); pointer-events: none; }
.login-topline { display: flex; justify-content: space-between; margin: 0 -40px 30px; padding: 12px 20px; border-bottom: 1px solid rgba(69,154,203,.18); color: #3e7ba3; background: rgba(255,255,255,.32); font-size: 10px; font-weight: 800; letter-spacing: .7px; }
.aero-mark { display: flex; align-items: end; gap: 4px; width: 48px; height: 42px; margin-bottom: 19px; }
.aero-mark i { display: block; width: 12px; border-radius: 7px 7px 4px 4px; box-shadow: inset 0 1px 1px rgba(255,255,255,.78), 0 3px 7px rgba(22,120,190,.18); }
.aero-mark i:nth-child(1) { height: 19px; background: linear-gradient(#8be5f5, #2fbaca); }
.aero-mark i:nth-child(2) { height: 31px; background: linear-gradient(#80caff, #327fe3); }
.aero-mark i:nth-child(3) { height: 42px; background: linear-gradient(#c4f6df, #39b98b); }
.eyebrow { margin: 0 0 8px; color: #2677ad; font-size: 10px; font-weight: 900; letter-spacing: 1.1px; }
.login-panel h1 { position: relative; z-index: 1; margin: 0; color: #143e68; font-size: 30px; line-height: 1.25; letter-spacing: 0; }
.login-copy { position: relative; z-index: 1; margin: 12px 0 27px; color: var(--ink-soft); font-size: 14px; }
.auth-switch { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 20px; padding: 4px; border: 1px solid rgba(78,152,201,.22); border-radius: 13px; background: rgba(218,246,255,.43); box-shadow: inset 0 1px 2px rgba(36,121,175,.08); }
.auth-switch-btn { min-height: 34px; border: 0; border-radius: 9px; color: #59809b; background: transparent; font-size: 13px; font-weight: 800; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.auth-switch-btn.active { color: #14558a; background: rgba(255,255,255,.84); box-shadow: 0 2px 7px rgba(30,113,169,.14), inset 0 1px 0 #fff; }
.auth-switch + .login-copy { margin-top: 14px; margin-bottom: 18px; }
.login-panel label { position: relative; z-index: 1; display: grid; gap: 7px; margin-top: 16px; color: var(--ink); font-size: 13px; font-weight: 800; }
.login-panel input { width: 100%; height: 45px; padding: 0 13px; border: 1px solid rgba(78,152,201,.35); border-radius: 12px; color: var(--ink); background: rgba(255,255,255,.78); box-shadow: inset 0 1px 3px rgba(36,121,175,.09), 0 1px 0 rgba(255,255,255,.74); }
.login-panel input:hover { border-color: rgba(18,142,206,.64); }
.form-error { position: relative; z-index: 1; min-height: 19px; margin: 11px 0 0; color: var(--error); font-size: 13px; }
.login-foot { margin: 18px 0 0; color: #51819e; font-size: 11px; text-align: center; }

.primary-btn, .glass-btn, .download-btn { min-height: 40px; border: 0; border-radius: 12px; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.primary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 17px; color: #fff; background: linear-gradient(180deg, #41c0ec, #1974d6); box-shadow: inset 0 1px 0 rgba(255,255,255,.58), 0 7px 14px rgba(24, 111, 194, .23); }
.primary-btn b { font-size: 20px; font-weight: 400; line-height: 1; }
.primary-btn:hover { background: linear-gradient(180deg, #5bd3f5, #2585e9); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 19px rgba(24,111,194,.29); transform: translateY(-1px) scale(1.01); }
.primary-btn:active, .glass-btn:active, .download-btn:active { transform: translateY(1px) scale(.99); }
.primary-btn.full { position: relative; z-index: 1; width: 100%; margin-top: 4px; }

.app-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); width: min(1560px, calc(100% - 48px)); min-width: 0; min-height: calc(100vh - 48px); margin: 24px auto; overflow: hidden; isolation: isolate; border: 1px solid rgba(255,255,255,.82); border-radius: 26px; background: rgba(239,253,255,.76); box-shadow: 0 18px 42px rgba(12,93,146,.16), inset 0 1px 0 rgba(255,255,255,.78); }
.sidebar { display: flex; flex-direction: column; min-height: 100%; padding: 27px 16px 18px; border-right: 1px solid rgba(255,255,255,.68); color: #18496f; background: linear-gradient(180deg, rgba(255,255,255,.64), rgba(216,246,255,.33)); }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 9px 29px; }
.aero-mark.compact { flex: 0 0 auto; width: 30px; height: 28px; gap: 2px; margin: 0; }
.aero-mark.compact i { width: 8px; border-radius: 5px 5px 2px 2px; }
.aero-mark.compact i:nth-child(1) { height: 12px; }
.aero-mark.compact i:nth-child(2) { height: 21px; }
.aero-mark.compact i:nth-child(3) { height: 28px; }
.brand strong { display: block; color: #16486f; font-size: 18px; line-height: 1.1; }
.brand span { display: block; margin-top: 3px; color: #56809c; font-size: 12px; }
.rail-caption { margin: 0 11px 9px; color: #6e99b3; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.sidebar nav { display: grid; gap: 7px; }
.nav-item { display: flex; align-items: center; gap: 9px; min-height: 43px; padding: 0 12px; border: 1px solid transparent; border-radius: 12px; color: #4e7795; font-size: 14px; font-weight: 800; text-decoration: none; }
.nav-item.active { border-color: rgba(255,255,255,.83); color: #135a99; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(224,249,255,.58)); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 5px 13px rgba(48,134,187,.11); }
.nav-item.disabled { opacity: .52; cursor: default; }
.nav-indicator { width: 8px; height: 8px; border: 1px solid #5a9cc5; border-radius: 50%; background: rgba(255,255,255,.72); box-shadow: inset 0 1px 1px rgba(14,110,176,.15); }
.nav-item.active .nav-indicator { border-color: #43bfe4; background: #47d6d4; box-shadow: 0 0 0 3px rgba(71,214,212,.18); }
.sidebar-footer { display: flex; align-items: center; gap: 8px; margin: auto 8px 0; padding: 14px 4px 0; border-top: 1px solid rgba(89,161,203,.2); color: #51809d; font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #39c99b; box-shadow: 0 0 0 3px rgba(57,201,155,.15); }

main { width: 100%; min-width: 0; padding: 33px clamp(24px, 4vw, 58px) 42px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.62); }
.topbar h1 { margin: 0; color: #123e68; font-size: 31px; line-height: 1.18; letter-spacing: 0; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.glass-btn { padding: 0 14px; border: 1px solid rgba(255,255,255,.88); color: #17649b; background: rgba(255,255,255,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 4px 10px rgba(37,119,165,.1); }
.glass-btn:hover { border-color: rgba(255,255,255,1); background: rgba(255,255,255,.8); box-shadow: inset 0 1px 0 #fff, 0 8px 16px rgba(37,119,165,.16); transform: translateY(-1px); }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.84); border-radius: 50%; color: #fff; background: linear-gradient(145deg, #77daf2, #2582d8); box-shadow: inset 0 1px 1px rgba(255,255,255,.7), 0 5px 13px rgba(24,111,194,.23); font-weight: 900; transition: transform .18s ease, box-shadow .18s ease; }
.avatar:hover { box-shadow: inset 0 1px 1px rgba(255,255,255,.8), 0 8px 16px rgba(24,111,194,.29); transform: translateY(-1px) scale(1.04); }

.storage-bar { display: flex; align-items: center; gap: 34px; margin: 18px 0 22px; padding: 14px 17px; border: 1px solid rgba(255,255,255,.76); border-radius: 16px; background: rgba(255,255,255,.46); box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 8px 18px rgba(40,126,172,.09); }
.storage-copy { display: grid; flex: 1 1 155px; gap: 4px; min-width: 0; }
.storage-label { color: #5d88a6; font-size: 11px; font-weight: 700; }
.storage-bar strong { color: #1a527b; font-size: 14px; }
.connection { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 6px 10px; border: 1px solid rgba(255,255,255,.73); border-radius: 999px; color: #13746f; background: rgba(222,255,246,.66); box-shadow: inset 0 1px 0 rgba(255,255,255,.78); font-size: 12px; font-weight: 800; }
.connection i { width: 7px; height: 7px; border-radius: 50%; background: #2dca91; box-shadow: 0 0 0 3px rgba(45,202,145,.14); }
.connection.offline { color: #aa4a42; background: rgba(255,235,233,.68); }
.connection.offline i { background: #e06b5d; box-shadow: 0 0 0 3px rgba(224,107,93,.15); }

.file-section { contain: layout paint style; border: 1px solid rgba(255,255,255,.78); border-radius: 19px; background: rgba(255,255,255,.76); box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 7px 16px rgba(41,128,175,.08); }
.file-section { margin-top: 20px; overflow: hidden; content-visibility: auto; contain-intrinsic-size: auto 380px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.section-heading h2 { margin: 0; color: #154a73; font-size: 20px; letter-spacing: 0; }
.section-heading > p { max-width: 520px; margin: 0; color: #5b819b; font-size: 13px; line-height: 1.55; text-align: right; }
.section-heading > p strong { color: #175b87; font-weight: 900; }
.account-section { margin-top: 20px; }
.account-table td { height: 52px; }
.account-table td:first-child { min-width: 150px; }
.upload-zone { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 17px; min-height: 112px; padding: 20px; border: 1px dashed rgba(31,143,207,.46); border-radius: 16px; background: linear-gradient(125deg, rgba(255,255,255,.62), rgba(216,250,255,.41)); box-shadow: inset 0 1px 0 rgba(255,255,255,.87); transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.upload-zone:hover, .upload-zone.dragging { border-color: rgba(22,174,187,.82); background: linear-gradient(125deg, rgba(255,255,255,.8), rgba(197,250,242,.63)); box-shadow: inset 0 1px 0 #fff, 0 9px 20px rgba(25,132,177,.12); transform: translateY(-1px); }
.upload-zone.readonly { cursor: not-allowed; border-style: solid; border-color: rgba(109,153,181,.25); color: #7594a9; background: rgba(237,248,252,.48); box-shadow: none; transform: none; }
.upload-zone.readonly:hover { border-color: rgba(109,153,181,.25); background: rgba(237,248,252,.48); box-shadow: none; transform: none; }
.upload-zone.readonly .upload-symbol { color: #7da1b9; background: rgba(235,247,252,.74); box-shadow: none; }
.upload-zone.readonly .upload-copy strong, .upload-zone.readonly .upload-copy span { color: #7594a9; }
.upload-zone.readonly .primary-btn { cursor: not-allowed; opacity: .5; }
.upload-symbol { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.86); border-radius: 50%; color: #168bc9; background: linear-gradient(145deg, rgba(255,255,255,.91), rgba(170,231,253,.65)); box-shadow: inset 0 1px 1px rgba(255,255,255,.98), 0 7px 13px rgba(22,136,199,.16); }
.upload-symbol span { margin: -4px 0 0; font-size: 30px; font-weight: 300; line-height: 1; }
.upload-copy strong, .upload-copy span { display: block; }
.upload-copy strong { color: #18537c; font-size: 16px; }
.upload-copy span { margin-top: 5px; color: #5d849f; font-size: 13px; }
.upload-queue { display: grid; gap: 9px; margin-top: 14px; }
.upload-task { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid rgba(255,255,255,.8); border-radius: 13px; background: rgba(255,255,255,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.72); }
.task-name { overflow: hidden; color: #174f78; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.task-info { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 7px; color: #6388a2; font-size: 12px; line-height: 1.35; }
.task-bytes { color: #4b7897; font-variant-numeric: tabular-nums; }
.task-rate { min-width: 64px; color: #087f97; font-variant-numeric: tabular-nums; font-weight: 800; }
.task-eta { color: #66859a; font-variant-numeric: tabular-nums; }
.task-message { min-height: 16px; margin-top: 4px; overflow: hidden; color: #5b829d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.task-progress { height: 6px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: rgba(137,193,221,.28); box-shadow: inset 0 1px 1px rgba(27,122,178,.12); }
.task-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #1fbfc1, #2b82e9); box-shadow: 0 0 9px rgba(35,159,225,.36); transition: width .22s ease; }
.task-state { color: #17887e; font-size: 12px; font-weight: 900; text-align: right; }
.task-state.error { color: #bf544b; }

.list-heading { padding: 23px 24px 0; }
.folder-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 24px 17px; border-bottom: 1px solid rgba(110,181,219,.17); }
.folder-breadcrumb { display: flex; min-width: 0; align-items: center; flex: 1 1 auto; gap: 5px; overflow-x: auto; overflow-y: hidden; padding: 2px 0; scrollbar-width: thin; }
.folder-crumb { flex: 0 0 auto; max-width: min(30vw, 260px); overflow: hidden; padding: 5px 7px; border: 0; border-radius: 8px; color: #3277a2; background: transparent; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.folder-crumb:hover { color: #145b8d; background: rgba(210,244,255,.56); }
.folder-crumb.active { cursor: default; color: #174d74; background: rgba(219,246,255,.58); }
.folder-crumb-separator { flex: 0 0 auto; color: #7ca5bf; font-size: 13px; font-weight: 800; }
.folder-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.folder-home-btn, .folder-back-btn, .folder-create-btn, .folder-upload-btn, .folder-open-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; border: 1px solid rgba(255,255,255,.87); border-radius: 10px; color: #176ba7; background: rgba(255,255,255,.62); box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 3px 8px rgba(35,126,177,.1); font: inherit; font-size: 12px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease; }
.folder-home-btn, .folder-create-btn, .folder-upload-btn { padding: 0 11px; }
.folder-upload-btn { color: #fff; border-color: transparent; background: linear-gradient(180deg, #42c6ed, #1e77d8); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 5px 12px rgba(24,111,194,.2); }
.folder-back-btn { width: 32px; padding: 0; font-size: 18px; line-height: 1; }
.folder-open-btn { min-width: 48px; padding: 0 11px; color: #168875; }
.folder-home-btn:hover, .folder-back-btn:hover, .folder-create-btn:hover, .folder-upload-btn:hover, .folder-open-btn:hover { color: #fff; border-color: transparent; background: linear-gradient(180deg, #47c8ed, #287bda); box-shadow: inset 0 1px 0 rgba(255,255,255,.63), 0 7px 13px rgba(26,113,198,.2); transform: translateY(-1px); }
.folder-open-btn:hover { background: linear-gradient(180deg, #44cdb9, #1988ba); }
.folder-home-btn[hidden] { display: none; }
.folder-home-btn:disabled, .folder-back-btn:disabled, .folder-create-btn:disabled, .folder-upload-btn:disabled { cursor: not-allowed; color: #80a2b8; background: rgba(234,246,251,.52); box-shadow: none; opacity: .62; transform: none; }
.folder-row { cursor: pointer; }
.folder-row .file-name { position: relative; }
.folder-row .file-name::after { content: "双击进入"; margin-left: auto; color: #78a0b8; font-size: 11px; font-weight: 700; opacity: 0; transition: opacity .15s ease; }
.folder-row:hover .file-name::after { opacity: 1; }
.file-table-wrap { position: relative; min-width: 0; min-height: 174px; overflow-x: auto; }
.file-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.file-table th { height: 42px; padding: 0 24px; border-top: 1px solid rgba(255,255,255,.68); border-bottom: 1px solid rgba(110,181,219,.17); color: #5d87a3; background: rgba(222,247,255,.38); font-size: 11px; font-weight: 900; text-align: left; }
.file-table td { height: 65px; padding: 0 24px; border-bottom: 1px solid rgba(116,183,218,.14); color: #547a95; font-size: 13px; }
.file-table tr:last-child td { border-bottom: 0; }
.file-table tbody tr { transition: background .15s ease; }
.file-table tbody tr:hover { background: rgba(255,255,255,.38); }
.file-table td:first-child { min-width: 280px; color: #184f78; font-weight: 800; }
.file-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.type-badge { display: grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; border: 1px solid rgba(255,255,255,.85); border-radius: 11px; color: #1677c1; background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(194,237,255,.55)); box-shadow: inset 0 1px 0 #fff, 0 4px 9px rgba(42,131,185,.12); font-size: 9px; font-weight: 900; }
.type-badge.folder { color: #168875; background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(199,249,234,.62)); }
.file-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-actions { display: flex; align-items: center; gap: 8px; }
.preview-btn, .download-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 12px; border: 1px solid rgba(255,255,255,.86); color: #176ba7; background: rgba(255,255,255,.57); box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 3px 8px rgba(35,126,177,.1); font-size: 12px; }
.preview-btn { color: #197c8d; }
.download-btn:hover { color: #fff; border-color: transparent; background: linear-gradient(180deg, #40c2ec, #247bdc); box-shadow: inset 0 1px 0 rgba(255,255,255,.63), 0 7px 13px rgba(26,113,198,.2); transform: translateY(-1px); }
.preview-btn:hover { color: #fff; border-color: transparent; background: linear-gradient(180deg, #42ccb8, #1988ba); box-shadow: inset 0 1px 0 rgba(255,255,255,.63), 0 7px 13px rgba(26,113,198,.2); transform: translateY(-1px); }
.download-btn[disabled] { cursor: not-allowed; opacity: .45; }
.empty-state { display: grid; place-items: center; min-height: 174px; padding: 26px; color: #5e849f; text-align: center; }
.empty-state strong { color: #18517a; font-size: 14px; }
.empty-state span { margin-top: 6px; font-size: 13px; }
.empty-shine { width: 52px; height: 9px; margin-bottom: 12px; border-radius: 999px; background: linear-gradient(90deg, #49d2d0, #5ab0f4); box-shadow: 0 0 12px rgba(73,210,208,.35); }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 20; display: grid; gap: 8px; width: min(360px, calc(100vw - 44px)); }
.toast { padding: 13px 15px; border: 1px solid rgba(255,255,255,.84); border-left: 4px solid #27c6b1; border-radius: 12px; color: #184b71; background: rgba(255,255,255,.96); box-shadow: 0 8px 18px rgba(24,104,155,.14), inset 0 1px 0 #fff; font-size: 13px; }
.toast.error { border-left-color: #d46156; }

.folder-dialog-layer { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 24px; background: rgba(8,53,84,.3); backdrop-filter: blur(8px); }
.folder-dialog-layer[hidden] { display: none; }
.folder-dialog { width: min(100%, 410px); padding: 27px; border: 1px solid rgba(255,255,255,.9); border-radius: 18px; color: #214f71; background: linear-gradient(150deg, rgba(255,255,255,.96), rgba(224,246,255,.91)); box-shadow: 0 24px 58px rgba(7,68,108,.28), inset 0 1px 0 #fff; }
.folder-dialog h2 { margin: 0; color: #154b74; font-size: 21px; }
.folder-dialog > p:not(.eyebrow):not(.form-error) { margin: 9px 0 20px; color: #61839b; font-size: 13px; }
.folder-dialog label { display: grid; gap: 7px; color: #244f6d; font-size: 13px; font-weight: 800; }
.folder-dialog input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid rgba(71,150,200,.36); border-radius: 11px; color: #174d73; background: rgba(255,255,255,.78); box-shadow: inset 0 1px 3px rgba(36,121,175,.08); }
.folder-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.folder-dialog-actions .primary-btn, .folder-dialog-actions .glass-btn { min-height: 38px; }

body.upload-open { overflow: hidden; }
.upload-dialog-layer { position: fixed; inset: 0; z-index: 56; display: grid; place-items: center; padding: 24px; background: rgba(8,53,84,.34); backdrop-filter: blur(9px); }
.upload-dialog-layer[hidden] { display: none; }
.upload-dialog { width: min(100%, 720px); max-height: min(720px, calc(100vh - 48px)); overflow: auto; padding: 25px; border: 1px solid rgba(255,255,255,.9); border-radius: 20px; color: #214f71; background: linear-gradient(150deg, rgba(255,255,255,.97), rgba(225,247,255,.92)); box-shadow: 0 24px 58px rgba(7,68,108,.3), inset 0 1px 0 #fff; }
.upload-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.upload-dialog-header h2 { margin: 0; color: #154b74; font-size: 22px; }
.upload-dialog-header > div > p:not(.eyebrow) { margin: 8px 0 0; color: #62839a; font-size: 13px; }
.upload-dialog-header strong { color: #175b87; font-weight: 900; }
.upload-dialog-close { display: grid; flex: 0 0 auto; width: 35px; height: 35px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.88); border-radius: 11px; color: #47718d; background: rgba(255,255,255,.66); box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(35,126,177,.1); font-size: 25px; font-weight: 400; line-height: 1; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.upload-dialog-close:hover { color: #1b6397; background: #fff; box-shadow: inset 0 1px 0 #fff, 0 7px 14px rgba(35,126,177,.17); transform: translateY(-1px); }
.upload-dialog .upload-queue { margin-top: 15px; }

body.preview-open { overflow: hidden; }
.preview-layer { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 28px; background: rgba(8, 53, 84, .36); backdrop-filter: blur(10px); }
.preview-layer[hidden] { display: none; }
.preview-dialog { display: grid; grid-template-rows: auto minmax(280px, 1fr) auto; min-width: 0; width: min(1180px, 100%); max-height: min(860px, calc(100vh - 56px)); overflow: hidden; border: 1px solid rgba(255,255,255,.88); border-radius: 22px; background: linear-gradient(150deg, rgba(251,254,255,.98), rgba(226,246,255,.92)); box-shadow: 0 26px 68px rgba(5,58,94,.35), inset 0 1px 0 #fff; }
.preview-header { display: flex; align-items: flex-start; justify-content: space-between; min-width: 0; width: 100%; box-sizing: border-box; gap: 20px; padding: 23px 25px 20px; border-bottom: 1px solid rgba(83,158,202,.18); background: linear-gradient(100deg, rgba(255,255,255,.72), rgba(222,248,255,.46)); }
.preview-heading { flex: 1 1 auto; min-width: 0; }
.preview-kicker { margin: 0 0 6px; color: #2782b5; font-size: 10px; font-weight: 900; letter-spacing: 1.1px; }
.preview-heading h2 { margin: 0; overflow: hidden; color: #164c75; font-size: clamp(18px, 2vw, 24px); letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.preview-detail { margin: 7px 0 0; color: #61849c; font-size: 12px; font-variant-numeric: tabular-nums; }
.preview-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.preview-download, .preview-close { display: inline-grid; place-items: center; min-height: 36px; border: 1px solid rgba(255,255,255,.9); border-radius: 10px; color: #1869a1; background: rgba(255,255,255,.64); box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(35,126,177,.1); font: inherit; font-size: 12px; font-weight: 900; text-decoration: none; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.preview-download { padding: 0 13px; }
.preview-close { width: 36px; padding: 0; color: #41728f; font-size: 24px; font-weight: 400; line-height: 1; }
.preview-download:hover, .preview-close:hover { background: #fff; box-shadow: inset 0 1px 0 #fff, 0 7px 14px rgba(35,126,177,.18); transform: translateY(-1px); }
.preview-body { min-height: 0; overflow: auto; padding: clamp(18px, 3vw, 32px); background: linear-gradient(135deg, rgba(230,250,255,.44), rgba(255,255,255,.57)); }
.preview-footer { display: flex; align-items: center; justify-content: space-between; min-width: 0; width: 100%; box-sizing: border-box; gap: 16px; min-height: 47px; padding: 10px 24px; border-top: 1px solid rgba(83,158,202,.16); color: #60829a; background: rgba(255,255,255,.54); font-size: 12px; }
.preview-footer > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-secure { flex: 0 0 auto; color: #16816f; font-weight: 800; }
.preview-loading { display: grid; min-height: 260px; place-items: center; color: #377ca7; font-size: 14px; font-weight: 800; }
.preview-loading::before { width: 34px; height: 34px; content: ""; border: 3px solid rgba(44,154,211,.2); border-top-color: #2196d3; border-radius: 50%; animation: preview-spin .75s linear infinite; }
.preview-media { display: grid; min-height: min(58vh, 590px); place-items: center; overflow: auto; border: 1px solid rgba(76,158,204,.18); border-radius: 16px; background: rgba(216,243,255,.42); }
.preview-media img { display: block; max-width: 100%; max-height: min(58vh, 590px); object-fit: contain; cursor: zoom-in; transition: max-width .25s ease, max-height .25s ease; }
.preview-media.zoomed { display: block; cursor: grab; }
.preview-media.zoomed img { max-width: none; max-height: none; min-width: 125%; cursor: zoom-out; }
.preview-media video { width: min(100%, 930px); max-height: min(58vh, 590px); background: #071e30; }
.preview-media audio { width: min(100%, 680px); }
.preview-pdf { display: block; width: 100%; min-height: min(60vh, 640px); border: 1px solid rgba(76,158,204,.22); border-radius: 13px; background: #fff; }
.preview-text-frame { position: relative; overflow: hidden; border: 1px solid rgba(65,143,190,.22); border-radius: 14px; background: #103149; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.preview-text-label { position: absolute; top: 11px; right: 13px; z-index: 1; padding: 3px 7px; border: 1px solid rgba(203,238,255,.18); border-radius: 6px; color: #b9e5f9; background: rgba(7,31,48,.62); font-size: 10px; font-weight: 900; letter-spacing: .6px; }
.preview-text-frame pre { min-height: min(56vh, 570px); margin: 0; padding: 22px 24px; overflow: auto; color: #d8f2ff; font: 13px/1.65 Consolas, "SFMono-Regular", Menlo, monospace; tab-size: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-document-text { width: min(100%, 830px); margin: 0 auto; padding: clamp(23px, 4vw, 50px); border: 1px solid rgba(62,145,193,.17); background: #fff; box-shadow: 0 12px 27px rgba(34,107,149,.11); }
.preview-document-text h3, .preview-sheet h3, .preview-archive h3 { margin: 0 0 19px; color: #1d5279; font-size: 17px; letter-spacing: 0; }
.preview-document-pages { color: #315e7c; font-size: 14px; line-height: 1.85; white-space: pre-wrap; }
.preview-document-pages p { margin: 0 0 14px; }
.preview-slides { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.preview-slide { min-height: 174px; padding: 21px; border: 1px solid rgba(69,149,195,.2); border-radius: 14px; background: rgba(255,255,255,.78); box-shadow: inset 0 1px 0 #fff, 0 8px 17px rgba(32,115,162,.09); }
.preview-slide span { display: block; margin-bottom: 14px; color: #2a9da0; font-size: 10px; font-weight: 900; letter-spacing: 1px; }
.preview-slide p { margin: 0; color: #265a7c; font-size: 14px; line-height: 1.65; }
.preview-sheets { display: grid; gap: 18px; }
.preview-sheet { overflow: hidden; border: 1px solid rgba(65,143,190,.18); border-radius: 14px; background: rgba(255,255,255,.78); }
.preview-sheet h3 { margin: 0; padding: 15px 17px; border-bottom: 1px solid rgba(65,143,190,.14); font-size: 15px; }
.preview-table-scroll { overflow: auto; max-height: 390px; }
.preview-table-scroll table { min-width: 100%; border-collapse: collapse; color: #315d7b; font-size: 12px; }
.preview-table-scroll th, .preview-table-scroll td { min-width: 84px; max-width: 250px; padding: 9px 11px; overflow: hidden; border-right: 1px solid rgba(76,155,198,.13); border-bottom: 1px solid rgba(76,155,198,.13); text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.preview-table-scroll th { color: #4c7f9c; background: rgba(219,247,255,.55); font-size: 11px; font-weight: 900; }
.preview-archive { width: min(100%, 830px); margin: 0 auto; padding: 24px; border: 1px solid rgba(65,143,190,.18); border-radius: 14px; background: rgba(255,255,255,.76); }
.preview-archive ul { display: grid; gap: 1px; max-height: min(54vh, 520px); margin: 0; padding: 0; overflow: auto; list-style: none; border: 1px solid rgba(65,143,190,.12); }
.preview-archive li { display: flex; justify-content: space-between; gap: 18px; padding: 10px 12px; color: #2c5e7e; background: rgba(251,254,255,.9); font-size: 13px; }
.preview-archive li:nth-child(even) { background: rgba(231,248,255,.48); }
.preview-archive li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-archive li small { flex: 0 0 auto; color: #6a90a8; }
.preview-archive > p { margin: 15px 0 0; color: #62859d; font-size: 12px; }
.preview-fallback { display: grid; min-height: 280px; place-items: center; align-content: center; gap: 10px; padding: 30px; color: #3e708f; text-align: center; }
.preview-file-badge { display: grid; width: 72px; height: 82px; place-items: center; border: 1px solid rgba(255,255,255,.9); border-radius: 16px; color: #167bbe; background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(179,230,252,.7)); box-shadow: inset 0 1px 0 #fff, 0 8px 17px rgba(35,126,177,.14); font-size: 12px; font-weight: 900; }
.preview-fallback strong { color: #245b7e; font-size: 15px; }
.preview-fallback p { margin: 0; color: #6688a0; font-size: 13px; }
@keyframes preview-spin { to { transform: rotate(360deg); } }

@media (max-width: 1024px) {
  .app-shell { grid-template-columns: 1fr; width: min(100% - 28px, 760px); min-height: calc(100vh - 28px); margin: 14px auto; }
  .sidebar { min-height: auto; padding: 15px 16px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.68); }
  .brand { margin: 0; }
  .rail-caption, .sidebar-footer { display: none; }
  .sidebar nav { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin-top: 13px; }
  .sidebar .nav-item { min-height: 38px; padding: 0 9px; font-size: 12px; }
  main { padding: 25px 22px 30px; }
  .preview-layer { padding: 16px; }
  .preview-dialog { max-height: calc(100vh - 32px); }
}

@media (max-width: 660px) {
  .login-layer { padding: 16px; }
  .login-panel { padding: 0 25px 27px; border-radius: 20px; }
  .login-topline { margin-right: -25px; margin-left: -25px; }
  .login-panel h1 { font-size: 26px; }
  .topbar { flex-wrap: wrap; }
  .topbar h1 { font-size: 25px; }
  .topbar-actions { width: 100%; justify-content: flex-start; }
  .storage-bar { align-items: flex-start; flex-wrap: wrap; gap: 13px 22px; }
  .storage-copy { flex: 1 1 calc(50% - 14px); }
  .connection { margin-left: 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-heading > p { text-align: left; }
  .upload-zone { grid-template-columns: auto minmax(0, 1fr); }
  .upload-zone .primary-btn { grid-column: 1 / -1; width: 100%; }
  .upload-task { grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; }
  .task-state { font-size: 11px; }
  .folder-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; padding: 0 18px 14px; }
  .folder-breadcrumb { width: 100%; }
  .folder-actions { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .folder-crumb { max-width: 52vw; }
  .file-table-wrap { overflow: visible; }
  .file-table { display: block; min-width: 0; }
  .file-table thead { display: none; }
  .file-table tbody { display: grid; gap: 10px; padding: 0 14px 14px; }
  .file-table tbody:empty { display: none; }
  .file-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(94px, auto); gap: 10px 14px; padding: 14px 2px; border: 1px solid rgba(116,183,218,.18); border-radius: 14px; background: rgba(248,253,255,.7); box-shadow: inset 0 1px 0 rgba(255,255,255,.82); }
  .file-table td { display: block; height: auto; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
  .file-table td:first-child { grid-column: 1 / -1; min-width: 0; }
  .file-table td:last-child { grid-column: 1 / -1; justify-self: start; min-width: 0; }
  .file-table td:not(:first-child):not(:last-child)::before { display: block; margin-bottom: 4px; color: #7a9bb0; font-size: 10px; font-weight: 800; line-height: 1.2; }
  .file-table:not(.admin-table):not(.leader-file-table) td:nth-child(2)::before { content: "大小"; }
  .file-table:not(.admin-table):not(.leader-file-table) td:nth-child(3)::before { content: "上传时间"; }
  .leader-file-table td:nth-child(2)::before { content: "上传人"; }
  .leader-file-table td:nth-child(3)::before { content: "大小"; }
  .leader-file-table td:nth-child(4)::before { content: "上传时间"; }
  #accounts .admin-table td:nth-child(2)::before { content: "入口 / 身份"; }
  #accounts .admin-table td:nth-child(3)::before { content: "123 云盘目录"; }
  #accounts .admin-table td:nth-child(4)::before { content: "注册时间"; }
  #accounts .admin-table td:nth-child(5)::before { content: "最近登录"; }
  #accounts .admin-table td:nth-child(6)::before { content: "在线"; }
  #accounts .admin-table td:nth-child(7)::before { content: "累计时长"; }
  #accounts .admin-table td:nth-child(8)::before { content: "上传"; }
  #uploads .admin-table td:nth-child(2)::before { content: "文件名称"; }
  #uploads .admin-table td:nth-child(3)::before { content: "大小"; }
  #uploads .admin-table td:nth-child(4)::before { content: "传输方式"; }
  #uploads .admin-table td:nth-child(5)::before { content: "完成时间"; }
  #sessions .admin-table td:nth-child(2)::before { content: "入口"; }
  #sessions .admin-table td:nth-child(3)::before { content: "登录时间"; }
  #sessions .admin-table td:nth-child(4)::before { content: "最近活动"; }
  #sessions .admin-table td:nth-child(5)::before { content: "结束时间"; }
  #sessions .admin-table td:nth-child(6)::before { content: "本次时长"; }
  #sessions .admin-table td:nth-child(7)::before { content: "来源地址"; }
  .file-name { align-items: flex-start; }
  .file-name span:last-child { min-width: 0; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; line-height: 1.4; }
  .file-actions { flex-wrap: wrap; }
  .upload-dialog-layer { padding: 15px; }
  .upload-dialog { max-height: calc(100vh - 30px); padding: 20px 17px; border-radius: 18px; }
  .upload-dialog-header { gap: 12px; margin-bottom: 16px; }
  .upload-dialog-header h2 { font-size: 20px; }
  .upload-dialog .upload-zone { grid-template-columns: auto minmax(0, 1fr); }
  .upload-dialog .upload-zone .primary-btn { grid-column: 1 / -1; width: 100%; }
  .preview-header { padding: 18px; }
  .preview-body { padding: 16px; }
  .preview-header { gap: 12px; }
  .preview-heading h2 { font-size: 18px; }
  .preview-footer { align-items: flex-start; flex-direction: column; gap: 5px; padding: 10px 18px; }
  .preview-footer > span { max-width: 100%; white-space: normal; }
  .preview-media { min-height: 44vh; }
  .preview-pdf { min-height: 54vh; }
}

@media (max-width: 430px) {
  .app-shell { width: 100%; min-height: 100vh; margin: 0; border-right: 0; border-left: 0; border-radius: 0; }
  main { padding: 21px 15px 28px; }
  .topbar { gap: 10px; }
  .topbar-actions { gap: 7px; }
  .glass-btn { padding: 0 9px; font-size: 12px; }
  .storage-copy { flex-basis: 100%; }
  .list-heading { padding: 18px 18px 0; }
  .upload-zone { gap: 12px; padding: 16px; }
  .upload-symbol { width: 42px; height: 42px; }
  .folder-home-btn, .folder-create-btn, .folder-upload-btn { padding: 0 9px; }
  .folder-row .file-name::after { display: none; }
}

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

.project-section { margin-top: 20px; padding: 24px; border: 1px solid rgba(255,255,255,.8); border-radius: 19px; background: rgba(255,255,255,.76); box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 7px 16px rgba(41,128,175,.08); }
.project-section[hidden] { display: none; }
.project-heading, .project-card-heading, .project-item-top, .project-item-actions, .project-form-actions, .project-dialog-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.project-heading { margin-bottom: 18px; }
.project-heading h2, .project-card-heading h3, .project-dialog h2 { margin: 0; color: #154a73; letter-spacing: 0; }
.project-heading h2 { font-size: 22px; }
.project-layout { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(420px, 1.35fr); gap: 17px; align-items: start; }
.project-card { min-width: 0; border: 1px solid rgba(95,167,205,.2); border-radius: 16px; background: linear-gradient(145deg, rgba(255,255,255,.83), rgba(221,247,255,.47)); box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 7px 16px rgba(39,119,162,.07); }
.project-compose-card { padding: 20px; }
.project-list-card { overflow: hidden; }
.project-list-card .project-card-heading { padding: 20px 20px 15px; border-bottom: 1px solid rgba(89,162,203,.16); }
.project-card-heading > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.project-card-heading h3 { font-size: 16px; }
.project-card-heading > p { max-width: 190px; margin: 1px 0 0; color: #62839c; font-size: 12px; line-height: 1.45; text-align: right; }
.project-step { display: inline-grid; flex: 0 0 auto; min-width: 36px; min-height: 22px; place-items: center; padding: 0 7px; border: 1px solid rgba(255,255,255,.9); border-radius: 999px; color: #187db6; background: rgba(226,248,255,.76); box-shadow: inset 0 1px 0 #fff; font-size: 10px; font-weight: 900; letter-spacing: .55px; }
.project-form { display: grid; gap: 15px; margin-top: 18px; }
.project-form label, .project-dialog label { display: grid; gap: 7px; color: #285774; font-size: 13px; font-weight: 800; }
.project-form input, .project-form select, .project-form textarea, .project-dialog textarea { width: 100%; box-sizing: border-box; border: 1px solid rgba(71,150,200,.34); border-radius: 11px; color: #194f74; background: rgba(255,255,255,.78); box-shadow: inset 0 1px 3px rgba(36,121,175,.08); font: inherit; outline: none; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.project-form input, .project-form select { height: 42px; padding: 0 11px; }
.project-form textarea, .project-dialog textarea { min-height: 126px; padding: 11px; line-height: 1.55; resize: vertical; }
.project-form input:focus, .project-form select:focus, .project-form textarea:focus, .project-dialog textarea:focus { border-color: #31aad8; background: #fff; box-shadow: 0 0 0 3px rgba(53,181,225,.16), inset 0 1px 2px rgba(36,121,175,.08); }
.project-form-actions { align-items: center; justify-content: flex-start; margin-top: 2px; }
.project-form-actions .primary-btn, .project-dialog-actions .primary-btn { min-height: 40px; padding: 0 15px; }
.project-list { display: grid; }
.project-item { display: grid; gap: 13px; padding: 18px 20px; border-bottom: 1px solid rgba(90,163,202,.15); background: rgba(255,255,255,.28); transition: background .18s ease; }
.project-item:last-child { border-bottom: 0; }
.project-item:hover { background: rgba(255,255,255,.56); }
.project-item.pending { background: linear-gradient(100deg, rgba(240,253,255,.88), rgba(223,249,245,.52)); }
.project-item-top > div { min-width: 0; }
.project-item h4 { margin: 0; overflow: hidden; color: #174f77; font-size: 15px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.project-item-top span:not(.project-status) { display: block; margin-top: 4px; color: #6a8fa7; font-size: 12px; }
.project-status { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 24px; padding: 0 9px; border: 1px solid rgba(255,255,255,.88); border-radius: 999px; color: #367393; background: rgba(233,247,253,.85); box-shadow: inset 0 1px 0 #fff; font-size: 11px; font-weight: 900; white-space: nowrap; }
.project-status.submitted { color: #147b93; background: rgba(218,250,244,.85); }
.project-status.awaiting_final { color: #216fa7; background: rgba(223,243,255,.9); }
.project-status.completed { color: #147455; background: rgba(219,250,231,.9); }
.project-status.leader_rejected, .project-status.responsible_rejected { color: #b5514b; background: rgba(255,235,233,.9); }
.project-description { margin: 0; color: #416d89; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.project-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 0; }
.project-meta div { min-width: 0; padding-left: 10px; border-left: 2px solid rgba(91,184,222,.32); }
.project-meta dt { color: #7898ad; font-size: 10px; font-weight: 800; }
.project-meta dd { margin: 4px 0 0; overflow: hidden; color: #2d6181; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.project-reason { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 10px 11px; border: 1px solid rgba(224,128,112,.22); border-radius: 10px; color: #96524a; background: rgba(255,239,235,.72); font-size: 12px; line-height: 1.55; }
.project-reason strong { color: #b55c52; white-space: nowrap; }
.project-reason span { overflow-wrap: anywhere; }
.project-item-actions { align-items: center; justify-content: flex-end; }
.project-item-actions .glass-btn, .project-item-actions .project-danger-btn { min-height: 34px; padding: 0 12px; }
.project-danger-btn { border: 1px solid rgba(219,116,103,.34); border-radius: 10px; color: #a84e47; background: rgba(255,240,237,.8); box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 3px 8px rgba(183,85,74,.08); font: inherit; font-size: 12px; font-weight: 800; transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease; }
.project-danger-btn:hover { color: #fff; border-color: transparent; background: linear-gradient(180deg, #e98573, #cc5b52); box-shadow: inset 0 1px 0 rgba(255,255,255,.58), 0 7px 13px rgba(183,85,74,.18); transform: translateY(-1px); }
.project-empty { display: grid; min-height: 190px; place-items: center; align-content: center; gap: 7px; padding: 22px; color: #64879e; text-align: center; }
.project-empty strong { color: #24597a; font-size: 14px; }
.project-empty span { max-width: 340px; font-size: 12px; line-height: 1.55; }
.project-empty.error strong { color: #b4534b; }
.project-queue-note { margin-bottom: 16px; padding: 12px 14px; border: 1px solid rgba(90,173,205,.21); border-radius: 12px; color: #477a97; background: rgba(227,248,255,.5); font-size: 13px; line-height: 1.55; }
.project-leader-card { min-height: 300px; }
.project-dialog-layer { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 22px; background: rgba(8,53,84,.35); backdrop-filter: blur(9px); }
.project-dialog-layer[hidden] { display: none; }
.project-dialog { width: min(100%, 480px); padding: 25px; border: 1px solid rgba(255,255,255,.91); border-radius: 18px; color: #214f71; background: linear-gradient(150deg, rgba(255,255,255,.97), rgba(223,246,255,.93)); box-shadow: 0 24px 58px rgba(7,68,108,.3), inset 0 1px 0 #fff; }
.project-dialog-copy { margin: 9px 0 19px; color: #61839b; font-size: 13px; line-height: 1.6; }
.project-dialog-actions { align-items: center; justify-content: flex-end; margin-top: 20px; }
.project-dialog-actions .glass-btn { min-height: 40px; }

@media (max-width: 880px) {
  .project-layout { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  .project-section { padding: 18px; }
  .project-heading, .project-card-heading { align-items: flex-start; flex-direction: column; }
  .project-heading .glass-btn { width: 100%; }
  .project-card-heading > p { max-width: none; text-align: left; }
  .project-meta { grid-template-columns: 1fr 1fr; }
  .project-meta div:last-child { grid-column: 1 / -1; }
  .project-item-actions { justify-content: stretch; }
  .project-item-actions > * { flex: 1 1 0; }
}

@media (max-width: 430px) {
  .project-section { margin-top: 14px; padding: 15px; border-radius: 15px; }
  .project-compose-card { padding: 16px; }
  .project-list-card .project-card-heading, .project-item { padding-right: 16px; padding-left: 16px; }
  .project-item-top { gap: 8px; }
  .project-item h4 { font-size: 14px; }
  .project-meta { grid-template-columns: 1fr; }
  .project-meta div:last-child { grid-column: auto; }
  .project-form-actions { align-items: stretch; flex-direction: column; }
  .project-dialog-layer { padding: 14px; }
  .project-dialog { padding: 20px 17px; }
}

@media (max-width: 1024px) {
  .app-shell .sidebar nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; margin-top: 13px; }
  .app-shell .sidebar .nav-item { min-height: 38px; padding: 0 9px; font-size: 12px; }
}
