* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --desktop-bg: #1a1a2e;
    --window-bg: #16213e;
    --window-header: #0f3460;
    --taskbar-bg: #0a0a1a;
    --accent: #e94560;
    --text: #eee;
    --text-dim: #888;
    --border: #233;
    --hover: rgba(255,255,255,0.08);
    --selected: rgba(233,69,96,0.2);
    --success: #4ecca3;
    --warn: #f5a623;
    --icon-size: 80px;
}

html, body { height: 100%; overflow: hidden; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--desktop-bg); color: var(--text); user-select: none; }

/* Login */
.login-screen { display: flex; align-items: center; justify-content: center; height: 100vh; background: linear-gradient(135deg, #1a1a2e, #0f3460); }
.login-container { width: 340px; background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.login-tabs { display: flex; border-bottom: 1px solid var(--border); }
.login-tab { flex: 1; padding: 12px; background: transparent; border: none; color: var(--text-dim); cursor: pointer; font-size: 14px; font-weight: 600; }
.login-tab.active { color: var(--accent); border-bottom: 2px solid var(--accent); }
.login-panel { padding: 24px; }
.login-box { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.login-logo { font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 20px; color: var(--accent); }
.login-box input { padding: 10px 14px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; outline: none; }
.login-box input:focus { border-color: var(--accent); }
.login-box button { padding: 12px; background: var(--accent); border: none; border-radius: 8px; color: white; font-size: 15px; cursor: pointer; }
.login-box button:hover { opacity: 0.9; }

/* QR Code Login */
.qrcode-box { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.qrcode-providers { display: flex; gap: 8px; width: 100%; }
.qr-provider-btn { flex: 1; padding: 10px 4px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 8px; color: var(--text); cursor: pointer; font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qr-provider-btn:hover { border-color: var(--accent); background: rgba(233,69,96,0.1); }
.qr-provider-btn .qr-icon { font-size: 20px; }
.qrcode-display { width: 100%; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.qrcode-placeholder { color: var(--text-dim); font-size: 14px; }
.qrcode-iframe-wrap { width: 300px; height: 300px; overflow: hidden; border-radius: 8px; }
.qrcode-tip { font-size: 13px; color: var(--text-dim); margin-top: 8px; }
.qrcode-hint { font-size: 12px; color: var(--text-dim); text-align: center; }

/* OAuth Register Dialog */
.oauth-register-dialog { background: var(--window-bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px; width: 320px; display: flex; flex-direction: column; gap: 12px; }
.oauth-register-dialog h3 { font-size: 16px; color: var(--accent); text-align: center; }
.oauth-register-avatar { display: flex; justify-content: center; }
.oauth-register-nickname { font-size: 14px; color: var(--text); text-align: center; }
.oauth-register-dialog input { padding: 10px 14px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; outline: none; }
.oauth-register-dialog input:focus { border-color: var(--accent); }
.oauth-register-dialog button { padding: 12px; background: var(--accent); border: none; border-radius: 8px; color: white; font-size: 15px; cursor: pointer; }
.oauth-register-dialog button:hover { opacity: 0.9; }
.oauth-register-cancel { background: var(--border) !important; }

/* WeCom Enterprise Dialog */
.wecom-enterprise-dialog { background: var(--window-bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px; width: 320px; display: flex; flex-direction: column; gap: 12px; }
.wecom-enterprise-dialog h3 { font-size: 16px; color: var(--accent); text-align: center; }
.wecom-enterprise-hint { font-size: 13px; color: var(--text-dim); text-align: center; }
.wecom-enterprise-dialog input { padding: 10px 14px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; outline: none; }
.wecom-enterprise-dialog button { padding: 12px; background: var(--accent); border: none; border-radius: 8px; color: white; font-size: 15px; cursor: pointer; }
.wecom-enterprise-cancel { background: var(--border) !important; }
.wecom-enterprise-list { display: flex; flex-direction: column; gap: 8px; }
.wecom-enterprise-item { padding: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; cursor: pointer; text-align: center; }
.wecom-enterprise-item:hover { background: var(--accent); color: white; border-color: var(--accent); }

/* Settings Window */
.settings-window { display: flex; flex-direction: column; height: 100%; }
.settings-tabs { display: flex; border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.2); }
.settings-tab { padding: 10px 20px; background: transparent; border: none; color: var(--text-dim); cursor: pointer; font-size: 13px; font-weight: 600; }
.settings-tab.active { color: var(--accent); border-bottom: 2px solid var(--accent); }
.settings-content { flex: 1; overflow-y: auto; padding: 16px; }
.settings-section { margin-bottom: 16px; }
.settings-section-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.settings-table { width: 100%; border-collapse: collapse; }
.settings-table th { text-align: left; padding: 6px 8px; font-size: 12px; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.settings-table td { padding: 6px 8px; font-size: 13px; border-bottom: 1px solid var(--border); }
.settings-table tr:hover td { background: var(--hover); }
.settings-action-btn { padding: 4px 10px; background: var(--border); border: none; border-radius: 4px; color: var(--text); cursor: pointer; font-size: 12px; }
.settings-action-btn:hover { background: var(--hover); }
.settings-action-btn.primary { background: var(--accent); color: white; }
.settings-action-btn.danger { background: var(--accent); color: white; }
.settings-form-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.settings-form-row label { min-width: 100px; font-size: 13px; color: var(--text-dim); }
.settings-form-row input, .settings-form-row select { flex: 1; padding: 6px 10px; background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-size: 13px; outline: none; }
.settings-form-row input:focus, .settings-form-row select:focus { border-color: var(--accent); }
.settings-card { background: rgba(0,0,0,0.15); border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin-bottom: 12px; }
.settings-card-title { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.settings-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.settings-badge.pending { background: var(--warn); color: #000; }
.settings-badge.approved { background: var(--success); color: #000; }
.settings-badge.rejected { background: var(--accent); color: white; }
.settings-badge.active { background: var(--success); color: #000; }
.settings-badge.disabled { background: var(--accent); color: white; }
.ent-status-toggle { cursor: pointer; transition: opacity 0.2s; }
.ent-status-toggle:hover { opacity: 0.7; }

/* Enterprise Apply Dialog */
.enterprise-apply-dialog { background: var(--window-bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px; width: 400px; }
.enterprise-apply-dialog h3 { font-size: 16px; color: var(--accent); margin-bottom: 16px; }
.enterprise-apply-dialog .ea-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.enterprise-apply-dialog .ea-field label { font-size: 12px; color: var(--text-dim); }
.enterprise-apply-dialog .ea-field input, .enterprise-apply-dialog .ea-field select { padding: 8px 10px; background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-size: 13px; outline: none; }
.enterprise-apply-dialog .ea-submit { width: 100%; padding: 10px; background: var(--accent); border: none; border-radius: 6px; color: white; font-size: 14px; cursor: pointer; margin-top: 8px; }
.enterprise-apply-dialog .ea-submit:hover { opacity: 0.9; }

/* Enterprise Files Nav */
.nav-item.enterprise-nav { color: var(--accent); }
.nav-item.enterprise-nav .ni-icon { font-size: 16px; }
.enterprise-user-select { padding: 4px 8px; background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-size: 12px; outline: none; margin: 0 4px; }

/* Desktop */
.desktop { position: relative; width: 100%; height: 100vh; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); overflow: hidden; }
.desktop-icons { position: absolute; top: 0; left: 0; width: 100%; height: calc(100% - 40px); z-index: 1; }
.desktop-icon { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 8px; cursor: pointer; transition: background 0.15s; user-select: none; }
.desktop-icon:hover { background: var(--hover); }
.desktop-icon.selected { background: var(--selected); }
.desktop-icon .icon-img { font-size: 36px; }
.desktop-icon .icon-label { font-size: 12px; color: var(--text); text-align: center; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Taskbar */
.taskbar { position: absolute; bottom: 0; left: 0; right: 0; height: 40px; background: var(--taskbar-bg); display: flex; align-items: center; padding: 0 8px; z-index: 1000; border-top: 1px solid var(--border); }
.taskbar-start { padding: 0 16px; height: 100%; display: flex; align-items: center; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent); border-right: 1px solid var(--border); }
.taskbar-start:hover { background: var(--hover); }
.taskbar-apps { flex: 1; display: flex; gap: 2px; padding: 0 4px; }
.taskbar-app { padding: 0 12px; height: 28px; display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; border-radius: 4px; transition: background 0.15s; max-width: 160px; }
.taskbar-app:hover { background: var(--hover); }
.taskbar-app.active { background: var(--selected); }
.taskbar-app .ta-icon { font-size: 14px; }
.taskbar-app .ta-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.taskbar-info { padding: 0 12px; font-size: 11px; color: var(--text-dim); }

/* Start Menu */
.start-menu { position: absolute; bottom: 40px; left: 0; width: 200px; background: var(--window-bg); border: 1px solid var(--border); border-radius: 8px 8px 0 0; z-index: 1001; padding: 8px 0; box-shadow: 0 -4px 20px rgba(0,0,0,0.4); }
.start-item { padding: 10px 16px; cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 10px; }
.start-item:hover { background: var(--hover); }
.start-item .si-icon { font-size: 16px; }
.start-user-info { padding: 10px 16px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.start-user-name { font-size: 13px; font-weight: 600; color: var(--text); }
.start-oauth-icon { font-size: 14px; cursor: pointer; padding: 2px 4px; border-radius: 4px; transition: background 0.15s; }
.start-oauth-icon:hover { background: var(--hover); }

/* Windows */
.windows-container { position: absolute; inset: 0; pointer-events: none; }
.window { position: absolute; background: var(--window-bg); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.4); display: flex; flex-direction: column; pointer-events: auto; min-width: 400px; min-height: 300px; }
.window-header { height: 36px; background: var(--window-header); display: flex; align-items: center; padding: 0 8px; border-radius: 8px 8px 0 0; cursor: move; user-select: none; }
.window-header .wh-title { flex: 1; font-size: 13px; font-weight: 600; padding-left: 8px; }
.window-header .wh-controls { display: flex; gap: 4px; }
.window-header .wh-btn { width: 24px; height: 24px; border: none; border-radius: 4px; background: transparent; color: var(--text); cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.window-header .wh-btn:hover { background: var(--hover); }
.window-header .wh-btn.close:hover { background: var(--accent); }
.window-body { flex: 1; overflow: auto; padding: 0; }
.window-resizer { position: absolute; bottom: 0; right: 0; width: 16px; height: 16px; cursor: nwse-resize; }

/* Explorer Window */
.explorer-layout { display: flex; height: 100%; }
.explorer-nav { width: 180px; background: rgba(0,0,0,0.15); border-right: 1px solid var(--border); overflow-y: auto; padding: 4px 0; flex-shrink: 0; }
.explorer-nav.hidden { display: none; }
.nav-item { padding: 6px 12px; cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 8px; border-radius: 4px; margin: 0 4px; }
.nav-item.nav-subitem { padding-left: 28px; }
.nav-item:hover { background: var(--hover); }
.nav-item.active { background: var(--selected); }
.nav-item .ni-icon { font-size: 16px; }
.nav-section-title { font-size: 11px; color: var(--text-dim); padding: 8px 12px 4px; text-transform: uppercase; }
.explorer-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.explorer-navbar { display: flex; align-items: center; gap: 2px; padding: 4px 8px; background: rgba(0,0,0,0.2); border-bottom: 1px solid var(--border); }
.nav-btn { width: 28px; height: 28px; border: none; border-radius: 4px; background: transparent; color: var(--text); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.nav-btn:hover { background: var(--hover); }
.nav-btn:disabled { opacity: 0.3; cursor: default; }
.explorer-breadcrumb { flex: 1; display: flex; align-items: center; gap: 2px; font-size: 12px; color: var(--text-dim); flex-wrap: nowrap; overflow: hidden; padding: 0 4px; }
.explorer-breadcrumb a { color: var(--accent); cursor: pointer; text-decoration: none; padding: 2px 4px; border-radius: 3px; white-space: nowrap; }
.explorer-breadcrumb a:hover { background: var(--hover); }
.explorer-breadcrumb .sep { color: var(--text-dim); }
.explorer-search { width: 160px; padding: 4px 8px; background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-size: 12px; outline: none; }
.explorer-search:focus { border-color: var(--accent); }
.explorer-toolbar { display: flex; align-items: center; gap: 2px; padding: 4px 8px; background: rgba(0,0,0,0.15); border-bottom: 1px solid var(--border); flex-wrap: nowrap; }
.toolbar-group { display: flex; align-items: center; gap: 2px; }
.toolbar-btn { padding: 4px 10px; background: transparent; border: none; border-radius: 4px; color: var(--text); cursor: pointer; font-size: 12px; white-space: nowrap; }
.toolbar-btn:hover { background: var(--hover); }
.toolbar-btn:disabled { opacity: 0.3; cursor: default; }
.toolbar-btn.has-dropdown::after { content: ' ▾'; font-size: 10px; }
.toolbar-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.explorer-content { flex: 1; padding: 8px; display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; overflow-y: auto; position: relative; }
.explorer-content.dragover { background: rgba(233,69,96,0.05); outline: 2px dashed var(--accent); outline-offset: -4px; }
.explorer-content.view-list { flex-direction: column; flex-wrap: nowrap; gap: 0; }
.explorer-content.view-detail { flex-direction: column; flex-wrap: nowrap; gap: 0; }
.file-tile { width: 90px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 6px; cursor: pointer; transition: background 0.15s; }
.file-tile:hover { background: var(--hover); }
.file-tile.selected { background: var(--selected); }
.file-tile .ft-icon { font-size: 32px; }
.file-tile .ft-name { font-size: 11px; text-align: center; max-width: 82px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-tile .ft-size { font-size: 10px; color: var(--text-dim); }
.file-tile.view-extra-large .ft-icon { font-size: 64px; }
.file-tile.view-large .ft-icon { font-size: 48px; }
.file-tile.view-small { width: 70px; }
.file-tile.view-small .ft-icon { font-size: 24px; }
.file-tile.view-small .ft-name { font-size: 10px; max-width: 62px; }
.file-tile.view-list { width: 100%; flex-direction: row; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 4px; }
.file-tile.view-list .ft-icon { font-size: 20px; }
.file-tile.view-list .ft-name { flex: 1; text-align: left; max-width: none; }
.file-tile.view-list .ft-size { min-width: 80px; text-align: right; }
.file-tile.view-detail { width: 100%; flex-direction: row; align-items: center; gap: 8px; padding: 3px 8px; border-radius: 4px; }
.file-tile.view-detail .ft-icon { font-size: 18px; width: 20px; }
.file-tile.view-detail .ft-name { flex: 1; text-align: left; max-width: none; font-size: 12px; }
.file-tile.view-detail .ft-size { min-width: 80px; text-align: right; font-size: 11px; }
.file-tile.view-detail .ft-date { min-width: 120px; text-align: right; font-size: 11px; color: var(--text-dim); }
.file-tile .ft-checkbox { width: 14px; height: 14px; margin-right: 4px; }
.explorer-empty { width: 100%; text-align: center; padding: 40px; color: var(--text-dim); font-size: 14px; }
.explorer-upload-progress { position: absolute; bottom: 8px; right: 8px; width: 280px; background: var(--window-bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.4); z-index: 100; }
.upload-progress-title { font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.upload-progress-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 11px; }
.upload-progress-item .upi-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-progress-item .upi-status { color: var(--text-dim); }
.upload-progress-bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.upload-progress-bar-fill { height: 100%; background: var(--accent); transition: width 0.3s; }
.upload-progress-summary { font-size: 11px; color: var(--text-dim); margin-top: 8px; display: flex; justify-content: space-between; }

/* Trash Window */
.trash-layout { display: flex; flex-direction: column; height: 100%; }
.trash-toolbar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: rgba(0,0,0,0.2); border-bottom: 1px solid var(--border); }
.trash-content { flex: 1; overflow-y: auto; padding: 8px; }

/* Upload Window */
.upload-content { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.upload-dropzone { border: 2px dashed var(--border); border-radius: 12px; padding: 40px 20px; text-align: center; cursor: pointer; transition: all 0.2s; }
.upload-dropzone:hover, .upload-dropzone.dragover { border-color: var(--accent); background: rgba(233,69,96,0.05); }
.upload-dropzone .ud-icon { font-size: 48px; margin-bottom: 8px; }
.upload-dropzone .ud-text { font-size: 14px; color: var(--text-dim); }
.upload-dropzone .ud-hint { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.upload-list { display: flex; flex-direction: column; gap: 4px; max-height: 300px; overflow-y: auto; }
.upload-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(0,0,0,0.2); border-radius: 6px; }
.upload-item .ui-icon { font-size: 20px; }
.upload-item .ui-info { flex: 1; }
.upload-item .ui-name { font-size: 13px; }
.upload-item .ui-progress { font-size: 11px; color: var(--text-dim); }
.upload-item .ui-bar { height: 3px; background: var(--border); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.upload-item .ui-bar-fill { height: 100%; background: var(--accent); transition: width 0.3s; }

/* Share Window */
.share-content { padding: 8px; }
.share-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 6px; }
.share-item:hover { background: var(--hover); }
.share-item .si-info { flex: 1; }
.share-item .si-path { font-size: 13px; }
.share-item .si-meta { font-size: 11px; color: var(--text-dim); display: flex; gap: 8px; }
.share-item .si-actions { display: flex; gap: 4px; }
.share-item .si-actions button { padding: 4px 8px; font-size: 11px; border: none; border-radius: 4px; cursor: pointer; background: var(--border); color: var(--text); }
.share-create { padding: 8px 12px; display: flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--border); }
.share-create input { flex: 1; padding: 6px 10px; background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-size: 12px; }
.share-create button { padding: 6px 12px; background: var(--accent); border: none; border-radius: 4px; color: white; cursor: pointer; font-size: 12px; }

/* Context Menu */
.context-menu { position: fixed; background: var(--window-bg); border: 1px solid var(--border); border-radius: 6px; padding: 4px 0; z-index: 5000; box-shadow: 0 4px 16px rgba(0,0,0,0.4); min-width: 160px; }
.context-menu .cm-item { padding: 8px 16px; cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 8px; position: relative; }
.context-menu .cm-item:hover { background: var(--hover); }
.context-menu .cm-sep { height: 1px; background: var(--border); margin: 4px 0; }
.context-menu .cm-item.danger { color: var(--accent); }
.context-menu .cm-item.has-submenu .cm-arrow { margin-left: auto; font-size: 10px; color: var(--text-dim); }
.context-menu .cm-item .cm-check { margin-left: auto; color: var(--accent); font-size: 12px; }
.context-menu .cm-item .cm-icon { min-width: 16px; text-align: center; }
.context-menu .cm-item .cm-label { flex: 1; }
.context-menu.submenu { z-index: 5100; min-width: 150px; }

/* Rename Input */
.rename-input { background: var(--window-header); border: 1px solid var(--accent); border-radius: 3px; color: var(--text); font-size: 11px; padding: 2px 4px; outline: none; }

/* Preview Overlay */
.preview-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 4000; display: none; align-items: center; justify-content: center; flex-direction: column; }
.preview-overlay.active { display: flex; }
.preview-overlay .pv-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--window-bg); border: none; color: var(--text); font-size: 20px; cursor: pointer; z-index: 10; }
.preview-overlay img, .preview-overlay video { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.preview-overlay .pv-audio-wrap { padding: 40px; }
.preview-overlay .pv-text-wrap { width: 80vw; height: 80vh; overflow: auto; background: var(--window-bg); border-radius: 8px; padding: 20px; }
.preview-overlay .pv-text-wrap pre { color: var(--text); font-size: 13px; white-space: pre-wrap; word-wrap: break-word; font-family: 'Consolas', 'Monaco', monospace; }
.preview-overlay iframe { background: white; }

/* Office Document Preview */
.pv-doc-wrap { width: 80vw; height: 80vh; overflow: auto; background: white; border-radius: 8px; padding: 32px 48px; color: #333; }
.pv-doc-content { font-size: 14px; line-height: 1.8; }
.pv-doc-content h1, .pv-doc-content h2, .pv-doc-content h3 { margin: 16px 0 8px; color: #222; }
.pv-doc-content p { margin: 8px 0; }
.pv-doc-content table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.pv-doc-content td, .pv-doc-content th { border: 1px solid #ccc; padding: 4px 8px; font-size: 12px; }
.pv-doc-content img { max-width: 100%; height: auto; }

.pv-sheet-wrap { width: 85vw; height: 80vh; background: var(--window-bg); border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; }
.pv-sheet-tabs { display: flex; gap: 2px; padding: 4px 8px; background: rgba(0,0,0,0.3); border-bottom: 1px solid var(--border); overflow-x: auto; }
.pv-sheet-tab { padding: 4px 12px; background: var(--border); border: none; border-radius: 4px 4px 0 0; color: var(--text); cursor: pointer; font-size: 12px; white-space: nowrap; }
.pv-sheet-tab.active { background: var(--accent); color: white; }
.pv-sheet-panels { flex: 1; overflow: hidden; }
.pv-sheet-panel { display: none; height: 100%; overflow: auto; background: white; }
.pv-sheet-panel.active { display: block; }
.pv-sheet-panel table { border-collapse: collapse; width: 100%; font-size: 12px; }
.pv-sheet-panel td, .pv-sheet-panel th { border: 1px solid #ddd; padding: 2px 6px; color: #333; }
.pv-sheet-panel th { background: #f0f0f0; font-weight: 600; }

/* Share Dialog */
.share-dialog { background: var(--window-bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px; width: 360px; position: relative; }
.share-dialog h3 { font-size: 16px; margin-bottom: 16px; color: var(--accent); }
.share-dialog .sd-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.share-dialog .sd-field label { font-size: 12px; color: var(--text-dim); }
.share-dialog .sd-field input, .share-dialog .sd-field select { padding: 8px 10px; background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-size: 13px; outline: none; }
.share-dialog .sd-field input[type="checkbox"] { width: 16px; height: 16px; }
.share-dialog .sd-create { width: 100%; padding: 10px; background: var(--accent); border: none; border-radius: 6px; color: white; font-size: 14px; cursor: pointer; margin-top: 8px; }
.share-dialog .sd-create:hover { opacity: 0.9; }

/* Public Share View */
.share-view-dialog { background: var(--window-bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px; width: 320px; text-align: center; }
.share-view-dialog h3 { color: var(--accent); margin-bottom: 16px; }
.share-view-dialog input { width: 100%; padding: 8px 10px; background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: 4px; color: var(--text); margin-bottom: 12px; }
.share-view-dialog button { padding: 8px 20px; background: var(--accent); border: none; border-radius: 4px; color: white; cursor: pointer; }
.sv-header { text-align: center; margin-bottom: 16px; }
.sv-header h3 { font-size: 16px; color: var(--text); }
.sv-header span { font-size: 12px; color: var(--text-dim); }
.sv-filelist { width: 80vw; max-height: 70vh; overflow-y: auto; background: var(--window-bg); border-radius: 8px; padding: 12px; }
.sv-fileitem { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 4px; cursor: pointer; }
.sv-fileitem:hover { background: var(--hover); }
.sv-fileitem .sv-icon { font-size: 20px; }
.sv-fileitem .sv-size { font-size: 11px; color: var(--text-dim); margin-left: auto; }
.sv-fileitem a { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; width: 100%; }
.sv-actions { margin-top: 16px; }
.sv-download-btn { display: inline-block; padding: 8px 20px; background: var(--accent); border-radius: 6px; color: white; text-decoration: none; font-size: 13px; }
.sv-text { color: var(--text); font-size: 13px; white-space: pre-wrap; word-wrap: break-word; font-family: 'Consolas', 'Monaco', monospace; padding: 20px; }

/* Editor Window */
.editor-toolbar { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: rgba(0,0,0,0.2); border-bottom: 1px solid var(--border); }
.editor-toolbar button { padding: 4px 12px; background: var(--accent); border: none; border-radius: 4px; color: white; cursor: pointer; font-size: 12px; }
.editor-toolbar .editor-path { font-size: 12px; color: var(--text-dim); }
.editor-textarea { width: 100%; height: calc(100% - 36px); background: rgba(0,0,0,0.3); border: none; color: var(--text); font-size: 14px; font-family: 'Consolas', 'Monaco', monospace; padding: 12px; outline: none; resize: none; }

/* Toast */
.toast { position: fixed; bottom: 50px; left: 50%; transform: translateX(-50%); padding: 10px 20px; background: var(--window-bg); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; z-index: 6000; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.toast.show { opacity: 1; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
/* Unified Buttons */
.config-btn { padding: 8px 20px; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.config-btn:hover { opacity: 0.9; }
.config-btn-primary { background: #2196f3; color: white; }
.config-btn-secondary { background: var(--border); color: var(--text); }
.config-btn-secondary:hover { background: var(--hover); opacity: 1; }
.config-btn-danger { background: #f44336; color: white; }
.config-btn-accent { background: var(--accent); color: white; }

/* Confirm Dialog - Window Style */
.confirm-window { position: absolute; background: var(--window-bg); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.4); display: flex; flex-direction: column; pointer-events: auto; }
.confirm-window-header { height: 36px; background: var(--window-header); display: flex; align-items: center; padding: 0 8px; border-radius: 8px 8px 0 0; cursor: move; user-select: none; }
.confirm-window-header .cw-title { flex: 1; font-size: 13px; font-weight: 600; padding-left: 8px; }
.confirm-window-header .cw-controls { display: flex; gap: 4px; }
.confirm-window-header .cw-btn { width: 24px; height: 24px; border: none; border-radius: 4px; background: transparent; color: var(--text); cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.confirm-window-header .cw-btn:hover { background: var(--hover); }
.confirm-window-header .cw-btn.close:hover { background: var(--accent); }
.confirm-window-body { flex: 1; display: flex; flex-direction: column; padding: 0; }
.confirm-window-message { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px; font-size: 14px; color: var(--text); text-align: center; line-height: 1.6; }
.confirm-window-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); flex-shrink: 0; }

/* showModal 公共弹窗 */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 5000; display: flex; align-items: center; justify-content: center; }
.modal-box { background: var(--window-bg); border: 1px solid var(--border); border-radius: 10px; display: flex; flex-direction: column; max-width: 95vw; max-height: 95vh; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--window-header); border-bottom: 1px solid var(--border); }
.modal-title { font-size: 14px; font-weight: 600; color: var(--text); }
.modal-close { width: 28px; height: 28px; border-radius: 4px; background: transparent; border: none; color: var(--text-dim); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--hover); color: var(--text); }
.modal-body { flex: 1; overflow-y: auto; padding: 16px; }
.modal-body iframe { width: 100%; height: 100%; border: none; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.modal-btn { padding: 8px 20px; border: none; border-radius: 6px; cursor: pointer; font-size: 13px; }
.modal-btn-primary { background: var(--accent); color: white; }
.modal-btn-primary:hover { opacity: 0.9; }
.modal-btn-secondary { background: var(--border); color: var(--text); }
.modal-btn-secondary:hover { background: var(--hover); }
.modal-btn-danger { background: #f44336; color: white; }
.modal-btn-danger:hover { opacity: 0.9; }

/* File Missing (grey marker) */
.file-tile.file-missing { opacity: 0.4; }
.file-tile.file-missing .ft-icon { filter: grayscale(1); }
.ft-missing { font-size: 9px; color: var(--accent); text-align: center; margin-top: 2px; }

/* Hidden File (dimmed) */
.file-tile.file-hidden { opacity: 0.6; }
.file-tile.file-hidden .ft-icon { filter: grayscale(0.5); }
.file-tile.file-hidden .ft-name { color: var(--text-dim); }

/* Search Options */
.search-option { font-size: 11px; color: var(--text-dim); display: flex; align-items: center; gap: 3px; cursor: pointer; white-space: nowrap; }
.search-option input { width: 13px; height: 13px; cursor: pointer; }

/* Share Page (standalone) */
.share-page { min-height: 100vh; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); display: flex; align-items: center; justify-content: center; }
.share-loading { display: flex; align-items: center; justify-content: center; }
.share-loading-text { color: var(--text-dim); font-size: 16px; }
.share-error { display: flex; align-items: center; justify-content: center; }
.share-error-text { color: var(--accent); font-size: 16px; }
.share-password-box { display: flex; align-items: center; justify-content: center; }
.share-password-inner { background: var(--window-bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px; width: 280px; text-align: center; }
.share-password-inner h3 { color: var(--accent); margin-bottom: 16px; }
.share-password-inner input { width: 100%; padding: 10px 14px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; outline: none; margin-bottom: 12px; }
.share-password-inner button { padding: 10px 24px; background: var(--accent); border: none; border-radius: 8px; color: white; cursor: pointer; font-size: 14px; }

.share-file-header { display: flex; align-items: center; gap: 12px; padding: 16px 24px; background: var(--window-bg); border-radius: 12px 12px 0 0; max-width: 90vw; }
.share-file-icon { font-size: 32px; }
.share-file-info { flex: 1; }
.share-file-name { font-size: 16px; color: var(--text); font-weight: 600; }
.share-file-meta { font-size: 12px; color: var(--text-dim); }
.share-download-btn { padding: 8px 16px; background: var(--accent); border: none; border-radius: 6px; color: white; text-decoration: none; font-size: 13px; cursor: pointer; }

.share-preview-area { max-width: 90vw; max-height: 75vh; overflow: auto; background: var(--window-bg); border-radius: 0 0 12px 12px; padding: 16px; }
.share-preview-area img { max-width: 85vw; max-height: 70vh; border-radius: 8px; }
.share-preview-area video { max-width: 85vw; max-height: 70vh; border-radius: 8px; }
.share-preview-area iframe { width: 85vw; height: 70vh; border: none; border-radius: 8px; background: white; }
.share-text-pre { color: var(--text); font-size: 13px; white-space: pre-wrap; word-wrap: break-word; font-family: 'Consolas', 'Monaco', monospace; }
.share-doc-content { font-size: 14px; line-height: 1.8; color: #333; }
.share-doc-content h1, .share-doc-content h2, .share-doc-content h3 { margin: 16px 0 8px; }
.share-doc-content p { margin: 8px 0; }
.share-unsupported { color: var(--text-dim); text-align: center; padding: 40px; font-size: 14px; }

.share-sheet-wrap { display: flex; flex-direction: column; }
.share-sheet-tabs { display: flex; gap: 2px; padding: 4px 8px; background: rgba(0,0,0,0.3); border-bottom: 1px solid var(--border); overflow-x: auto; }
.share-sheet-tab { padding: 4px 12px; background: var(--border); border: none; border-radius: 4px 4px 0 0; color: var(--text); cursor: pointer; font-size: 12px; white-space: nowrap; }
.share-sheet-tab.active { background: var(--accent); color: white; }
.share-sheet-panels { flex: 1; overflow: hidden; }
.share-sheet-panel { display: none; overflow: auto; background: white; }
.share-sheet-panel.active { display: block; }
.share-sheet-panel table { border-collapse: collapse; width: 100%; font-size: 12px; }
.share-sheet-panel td, .share-sheet-panel th { border: 1px solid #ddd; padding: 2px 6px; color: #333; }

.share-dir-header { display: flex; align-items: center; gap: 12px; padding: 16px 24px; background: var(--window-bg); border-radius: 12px 12px 0 0; max-width: 90vw; }
.share-dir-list { max-width: 90vw; max-height: 70vh; overflow-y: auto; background: var(--window-bg); border-radius: 0 0 12px 12px; padding: 8px; }
.share-dir-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 4px; cursor: pointer; }
.share-dir-item:hover { background: var(--hover); }
.share-dir-item .share-item-icon { font-size: 20px; }
.share-dir-item .share-item-name { font-size: 13px; color: var(--text); }
.share-dir-item .share-item-size { font-size: 11px; color: var(--text-dim); margin-left: auto; }
.share-dir-item a { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; width: 100%; }

.share-preview-title { color: var(--text); font-size: 14px; text-align: center; margin-bottom: 8px; }
/* OnlyOffice Editor */
.oo-editor-container { width: 100%; height: 100%; }

/* Image Editor */
.img-editor-layout { display: flex; flex-direction: column; height: 100%; }
.img-editor-toolbar { display: flex; align-items: center; gap: 2px; padding: 4px 8px; background: rgba(0,0,0,0.3); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.img-editor-toolbar .toolbar-group { display: flex; gap: 2px; }
.img-editor-toolbar button { padding: 4px 8px; background: var(--border); border: none; border-radius: 4px; color: var(--text); cursor: pointer; font-size: 14px; min-width: 28px; height: 26px; }
.img-editor-toolbar button:hover { background: var(--hover); }
.img-editor-toolbar button.active { background: var(--accent); color: white; }
.img-editor-toolbar button.save-btn { background: var(--accent); color: white; font-weight: bold; padding: 4px 12px; }
.img-editor-toolbar .toolbar-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.img-editor-main { flex: 1; display: flex; overflow: hidden; }
.img-editor-canvas-wrap { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 8px; background: rgba(0,0,0,0.2); }
.img-editor-canvas-wrap canvas { border: 1px solid var(--border); border-radius: 4px; }
.img-editor-sidebar { width: 180px; padding: 8px; background: rgba(0,0,0,0.15); border-left: 1px solid var(--border); overflow-y: auto; }
.img-editor-sidebar .sidebar-section { margin-bottom: 12px; }
.img-editor-sidebar .sidebar-title { font-size: 11px; color: var(--text-dim); margin-bottom: 4px; }
.img-editor-sidebar .color-input { width: 100%; height: 28px; border: none; border-radius: 4px; background: transparent; cursor: pointer; }
.img-editor-sidebar .range-input { width: 100%; }
.img-editor-sidebar .checkbox-row { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; color: var(--text-dim); }
.img-editor-sidebar .select-input { width: 100%; padding: 4px; background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-size: 12px; }
.img-editor-statusbar { display: flex; justify-content: space-between; padding: 4px 8px; background: rgba(0,0,0,0.2); border-top: 1px solid var(--border); font-size: 11px; color: var(--text-dim); }
.window-body > .oo-editor-container { width: 100%; height: 100%; }
/* Disk View */
.disk-view { padding: 16px; }
.disk-card { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: rgba(0,0,0,0.2); border-radius: 12px; cursor: pointer; transition: background 0.2s; max-width: 400px; }
.disk-card:hover { background: rgba(0,0,0,0.35); }
.disk-card .disk-icon { font-size: 48px; }
.disk-card .disk-info { flex: 1; }
.disk-card .disk-name { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.disk-card .disk-space { font-size: 12px; color: var(--text-dim); margin-bottom: 4px; }
.disk-card .disk-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.disk-card .disk-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.3s; }
.disk-card .disk-free { font-size: 11px; color: var(--text-dim); }

/* Rename Dialog */
.rename-dialog { background: var(--window-bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px; width: 320px; text-align: center; }
.rename-dialog h3 { font-size: 16px; margin-bottom: 16px; color: var(--accent); }
.rename-dialog-input { width: 100%; padding: 10px 14px; background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 14px; outline: none; margin-bottom: 16px; }
.rename-dialog-input:focus { border-color: var(--accent); }
.rename-dialog-buttons { display: flex; gap: 12px; justify-content: center; }
.rename-dialog .rename-ok { padding: 8px 24px; background: var(--accent); border: none; border-radius: 6px; color: white; cursor: pointer; font-size: 14px; }
.rename-dialog .rename-ok:hover { opacity: 0.9; }
.rename-dialog .rename-cancel { padding: 8px 24px; background: var(--border); border: none; border-radius: 6px; color: var(--text); cursor: pointer; font-size: 14px; }
.rename-dialog .rename-cancel:hover { background: var(--hover); }

/* Light Theme Overrides */
html[data-theme="light"] .desktop { background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 50%, #c0c0c0 100%); }
html[data-theme="light"] .login-screen { background: linear-gradient(135deg, #e8e8e8, #d0d0d0); }
html[data-theme="light"] .share-page { background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 50%, #c0c0c0 100%); }
/* Rubber Band Selection */
.rubber-band { position: absolute; border: 1px solid var(--accent); background: rgba(0, 120, 215, 0.15); pointer-events: none; z-index: 100; }

/* File Tile Multi-Select */
.file-tile.selected { background: rgba(0, 120, 215, 0.2); border-color: var(--accent); }
.explorer-content .file-tile.last-selected { outline: 1px solid var(--accent); }
/* Upload Retry Button */
.upload-retry-btn { padding: 2px 8px; background: var(--border); border: none; border-radius: 3px; color: var(--text); cursor: pointer; font-size: 11px; }
.upload-retry-btn:hover { background: var(--accent); color: white; }
/* File Properties Dialog */
.prop-dialog { width: 500px; height: 400px; background: var(--window-bg); border-radius: 8px; display: flex; flex-direction: column; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.prop-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.prop-close { background: none; border: none; color: var(--text); cursor: pointer; font-size: 16px; padding: 4px 8px; border-radius: 4px; }
.prop-close:hover { background: var(--hover); }
.prop-tabs { display: flex; gap: 2px; padding: 4px 8px; background: rgba(0,0,0,0.2); border-bottom: 1px solid var(--border); }
.prop-tab { padding: 6px 16px; background: var(--border); border: none; border-radius: 4px 4px 0 0; color: var(--text); cursor: pointer; font-size: 13px; }
.prop-tab.active { background: var(--accent); color: white; }
.prop-body { flex: 1; overflow-y: auto; padding: 12px 16px; }
.prop-panel { display: none; }
.prop-panel.active { display: block; }
.prop-row { display: flex; gap: 8px; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.prop-label { min-width: 80px; color: var(--text-dim); }
.prop-value { flex: 1; color: var(--text); word-break: break-all; }
.prop-share-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.prop-share-item .psi-info { flex: 1; }
.prop-share-item .psi-path { font-size: 13px; }
.prop-share-item .psi-meta { font-size: 11px; color: var(--text-dim); }
.prop-share-item .psi-remove { padding: 4px 8px; background: var(--border); border: none; border-radius: 4px; color: var(--text); cursor: pointer; font-size: 11px; }
.prop-share-item .psi-remove:hover { background: var(--accent); color: white; }
/* Profile Dialog */
.profile-section { text-align: center; padding: 16px 0 12px; }
.profile-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: white; font-size: 24px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.profile-name { font-size: 16px; font-weight: 600; color: var(--text); }
.profile-role { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.profile-info-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.profile-label { color: var(--text-dim); }
.profile-value { color: var(--text); }
.profile-quota-bar { margin: 12px 0; }
.profile-quota-info { font-size: 12px; color: var(--text-dim); margin-bottom: 4px; }
.profile-quota-track { height: 6px; background: rgba(0,0,0,0.2); border-radius: 3px; overflow: hidden; }
.profile-quota-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.3s; }
.profile-oauth-section { margin-top: 12px; }
.profile-oauth-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.profile-oauth-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; color: var(--text); }
.profile-oauth-icon { font-size: 16px; }
.profile-no-oauth { font-size: 12px; color: var(--text-dim); }

/* About Dialog - 左右布局 */
.about-container { display: flex; gap: 24px; height: 100%; }
.about-left { flex: 0 0 260px; display: flex; flex-direction: column; align-items: center; padding-top: 20px; border-right: 1px solid var(--border); }
.about-right { flex: 1; display: flex; flex-direction: column; padding-top: 12px; }
.about-logo { font-size: 48px; margin-bottom: 8px; }
.about-name { font-size: 20px; font-weight: 600; color: var(--text); }
.about-version-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
.about-version { font-size: 13px; color: var(--text-dim); }
.about-check-btn { padding: 3px 12px; background: var(--accent); color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 12px; }
.about-check-btn:hover { opacity: 0.9; }
.about-check-btn:disabled { background: var(--border); color: var(--text-dim); cursor: default; }
.about-update-result { margin: 8px 0; width: 100%; }
.about-checking { text-align: center; font-size: 13px; color: var(--text-dim); padding: 8px; }
.about-update-available { text-align: center; padding: 12px; background: rgba(0, 200, 83, 0.1); border: 1px solid rgba(0, 200, 83, 0.3); border-radius: 8px; }
.about-update-latest { text-align: center; padding: 12px; background: rgba(0, 120, 215, 0.1); border: 1px solid rgba(0, 120, 215, 0.3); border-radius: 8px; }
.about-update-error { text-align: center; padding: 12px; background: rgba(244, 67, 54, 0.1); border: 1px solid rgba(244, 67, 54, 0.3); border-radius: 8px; }
.about-update-success { text-align: center; padding: 12px; background: rgba(0, 200, 83, 0.1); border: 1px solid rgba(0, 200, 83, 0.3); border-radius: 8px; }
.about-update-icon { font-size: 24px; margin-bottom: 4px; }
.about-update-text { font-size: 13px; color: var(--text); }
.about-update-notes { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.about-update-hint { font-size: 12px; color: var(--accent); margin-top: 4px; }
.about-upgrade-btn { margin-top: 8px; padding: 6px 16px; background: var(--accent); color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 13px; }
.about-upgrade-btn:hover { opacity: 0.9; }
.about-upgrade-btn:disabled { background: var(--border); color: var(--text-dim); cursor: default; }
.about-desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin: 0 0 16px 0; }
.about-info-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.about-info-row span:first-child { color: var(--text-dim); }
.about-info-row span:last-child { color: var(--text); }
/* About - Dropzone */
.about-dropzone { margin-top: 12px; width: 100%; padding: 16px; border: 2px dashed var(--border); border-radius: 8px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.about-dropzone:hover { border-color: var(--accent); background: rgba(0, 120, 215, 0.05); }
.about-dropzone-active { border-color: var(--accent); background: rgba(0, 120, 215, 0.1); }
.about-dropzone-icon { font-size: 28px; margin-bottom: 4px; }
.about-dropzone-text { font-size: 13px; color: var(--text); }
.about-dropzone-hint { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* About - Upgrade History */
.about-history-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.about-history-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.about-history-item { padding: 8px 10px; border-radius: 6px; border: 1px solid var(--border); font-size: 12px; }
.about-history-item.success { border-color: rgba(0, 200, 83, 0.3); background: rgba(0, 200, 83, 0.05); }
.about-history-item.failed { border-color: rgba(244, 67, 54, 0.3); background: rgba(244, 67, 54, 0.05); }
.about-history-header { display: flex; align-items: center; gap: 6px; }
.about-history-icon { font-size: 14px; }
.about-history-version { font-weight: 500; color: var(--text); }
.about-history-method { font-size: 11px; color: var(--text-dim); background: var(--border); padding: 1px 6px; border-radius: 3px; margin-left: auto; }
.about-history-time { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.about-history-error { font-size: 11px; color: rgba(244, 67, 54, 0.8); margin-top: 2px; }
.about-rollback-btn { margin-top: 4px; padding: 2px 10px; font-size: 11px; background: var(--accent); color: white; border: none; border-radius: 4px; cursor: pointer; }
.about-rollback-btn:hover { opacity: 0.9; }
.about-history-empty { text-align: center; font-size: 12px; color: var(--text-dim); padding: 20px; }
/* Restart Dialog */
.restart-dialog { background: var(--panel); border-radius: 12px; padding: 32px 40px; text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,0.3); min-width: 280px; }
.restart-icon { font-size: 48px; margin-bottom: 12px; animation: spin 1.5s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.restart-title { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.restart-countdown { font-size: 36px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.restart-hint { font-size: 13px; color: var(--text-dim); }