    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
      background: linear-gradient(135deg, #dce5f2 0%, #e4edf7 30%, #e0e9f6 60%, #ecf2fa 100%);
      color: #333;
      min-height: 100vh;
      background-attachment: fixed;
    }

    /* ===== Login ===== */
    #login-overlay {
      position: fixed;
      inset: 0;
      background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8e 30%, #3b7ec4 60%, #2d5a8e 100%);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }

    .login-box {
      text-align: center;
      padding: 48px 40px;
      background: #fff;
      border-radius: 20px;
      border: 1px solid rgba(0, 0, 0, .08);
      box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
    }

    .login-box h1 {
      font-size: 28px;
      margin-bottom: 8px;
      color: #1a2744;
      font-weight: 700;
      letter-spacing: 2px;
    }

    .login-box p {
      color: #888;
      margin-bottom: 24px;
      font-size: 14px;
    }

    #login-loading {
      color: #888;
      font-size: 14px;
      margin-bottom: 24px;
    }

    .login-box input {
      width: 260px;
      padding: 10px 14px;
      border: 1px solid #d0d5dd;
      border-radius: 8px;
      font-size: 15px;
      outline: none;
      background: #f9fafb;
      color: #333;
      transition: border-color .2s, box-shadow .2s;
    }

    .login-box input::placeholder { color: #aaa; }

    .login-box input:focus {
      border-color: #4d9fff;
      box-shadow: 0 0 0 3px rgba(77, 159, 255, .2);
    }

    .login-box button {
      display: block;
      margin: 16px auto 0;
      padding: 10px 40px;
      background: linear-gradient(135deg, #4d9fff, #0066ff);
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 15px;
      cursor: pointer;
      transition: transform .15s, box-shadow .15s;
    }

    .login-box button:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 16px rgba(0, 102, 255, .4);
    }

    .login-error {
      color: #e00;
      font-size: 14px;
      margin-top: 12px;
      display: none;
    }

    .login-box input.shake {
      animation: shake .4s ease;
      border-color: #e00;
    }

    @keyframes shake {

      0%,
      100% {
        transform: translateX(0);
      }

      25% {
        transform: translateX(-6px);
      }

      50% {
        transform: translateX(6px);
      }

      75% {
        transform: translateX(-3px);
      }
    }

    .login-box button:disabled {
      opacity: .6;
      cursor: not-allowed;
    }

    /* ===== Header ===== */
    header {
      background: rgba(255, 255, 255, .75);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(0, 0, 0, .06);
      padding: 0 24px;
      height: 56px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 10;
    }

    header h1 {
      font-size: 18px;
      font-weight: 600;
    }

    .storage-select {
      position: relative;
      min-width: 120px;
      margin-top: 5px;
      user-select: none;
    }

    .storage-select-trigger {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 5px 10px;
      font-size: 13px;
      border: 1px solid #d0d5dd;
      border-radius: 6px;
      background: #f9fafb;
      color: #333;
      cursor: pointer;
      transition: border-color .2s, box-shadow .2s;
      white-space: nowrap;
    }

    .storage-select-trigger:hover {
      border-color: #b0b8c4;
    }

    .storage-select.open .storage-select-trigger {
      border-color: #4d9fff;
      box-shadow: 0 0 0 3px rgba(77, 159, 255, .15);
    }

    .storage-select-arrow {
      display: inline-block;
      width: 0;
      height: 0;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
      border-top: 5px solid #999;
      transition: transform .2s;
      flex-shrink: 0;
    }

    .storage-select.open .storage-select-arrow {
      transform: rotate(180deg);
    }

    .storage-select-dropdown {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      margin-top: 4px;
      min-width: 100%;
      background: #fff;
      border: 1px solid #d0d5dd;
      border-radius: 8px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
      overflow: hidden;
      z-index: 50;
    }

    .storage-select.open .storage-select-dropdown {
      display: block;
    }

    .storage-option {
      display: block;
      width: 100%;
      padding: 8px 14px;
      font-size: 13px;
      color: #333;
      background: #fff;
      border: none;
      cursor: pointer;
      text-align: left;
      transition: background .1s;
      white-space: nowrap;
    }

    .storage-option:hover {
      background: #e3eeff;
    }

    .storage-option.active {
      color: #0066ff;
      font-weight: 500;
      background: #f5f5f5;
    }

    .header-left {
      display: flex;
      align-items: center;
      gap: 30px;
    }

    .usage {
      font-size: 13px;
      color: #888;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 3px;
      padding-top: 10px;
    }

    .usage-text {
      white-space: nowrap;
    }

    .usage-text.error {
      color: #e84545;
      font-weight: 550;
    }

    .usage-bar-wrap {
      width: 168px;
      height: 10px;
      background: #e6e6e6;
      overflow: hidden;
      border-radius: 3px;
      border: 1px solid #bcbcbc;
      margin-top: 1px;
    }

    .usage-bar-fill {
      height: 100%;
      width: 0;
      transition: width .3s ease;
      background: #26a0da;
    }

    .usage-bar-fill.warn {
      background: #f9ab00;
    }

    .usage-bar-fill.danger {
      background: #ea4335;
    }

    .header-right {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }

    .btn-logout {
      padding: 4px 12px;
      background: linear-gradient(135deg, #8e99ab, #6b7890);
      border: 1px solid transparent;
      border-radius: 6px;
      font-size: 12px;
      cursor: pointer;
      color: #fff;
      transition: all .15s;
    }

    .btn-logout:hover {
      background: linear-gradient(135deg, #6b7890, #505d75);
      box-shadow: 0 4px 12px rgba(107, 120, 144, .35);
    }

    /* ===== Upload Button ===== */
    /* ===== Toolbar ===== */
    .toolbar {
      margin: 20px 40px 0 40px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .toolbar .count {
      font-size: 13px;
      color: #888;
    }

    .toolbar .spacer {
      flex: 1;
    }

    .search-input {
      padding: 0 12px 0 32px;
      border: 1px solid #d0d5dd;
      border-radius: 8px;
      font-size: 14px;
      line-height: normal;
      outline: none;
      width: 180px;
      height: 34px;
      margin-left: 18px;
      background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") 10px center no-repeat;
      transition: border-color .2s, box-shadow .2s;
    }

    .search-input:focus {
      border-color: #4d9fff;
      box-shadow: 0 0 0 3px rgba(77, 159, 255, .15);
    }

    .highlight {
      color: #e53e3e;
      font-weight: 600;
    }

    .btn {
      padding: 7px 16px;
      border: 1px solid #d0d5dd;
      border-radius: 8px;
      font-size: 14px;
      cursor: pointer;
      background: #fff;
      color: #4a5568;
      white-space: nowrap;
      transition: all .15s;
    }

    .btn:hover {
      background: #f7f8fa;
      border-color: #b0b8c4;
      box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    }

    .btn-upload {
      background: linear-gradient(135deg, #5ec53a, #4caf2e);
      color: #fff;
      border-color: transparent;
    }

    .btn-upload:hover {
      background: linear-gradient(135deg, #4caf2e, #3d8b23);
      box-shadow: 0 4px 14px rgba(76, 175, 46, .35);
    }

    .btn-primary {
      background: linear-gradient(135deg, #26a69a, #00897b);
      color: #fff;
      border-color: transparent;
    }

    .btn-primary:hover {
      background: linear-gradient(135deg, #00897b, #00695c);
      box-shadow: 0 4px 14px rgba(0, 137, 123, .35);
    }

    .btn-refresh {
      background: linear-gradient(135deg, #6b7d94, #54657e);
      color: #fff;
      border-color: transparent;
    }

    .btn-refresh:hover {
      background: linear-gradient(135deg, #54657e, #3d4f66);
      box-shadow: 0 4px 14px rgba(84, 101, 126, .35);
    }

    .btn-shares {
      background: linear-gradient(135deg, #9b7fd9, #7c5cbf);
      color: #fff;
      border-color: transparent;
    }

    .btn-shares:hover {
      background: linear-gradient(135deg, #7c5cbf, #6344a8);
      box-shadow: 0 4px 14px rgba(124, 92, 191, .35);
    }

    .btn-hidden {
      visibility: hidden;
      pointer-events: none;
    }

    .btn-overwrite {
      background: #e6a23c;
      border-color: #e6a23c;
      color: #fff;
    }

    .btn-overwrite:hover {
      background: #cf9236;
    }

    .batch-info {
      display: none;
      align-items: center;
      gap: 10px;
      font-size: 13px;
      color: #888;
      white-space: nowrap;
    }

    .batch-dl {
      background: linear-gradient(135deg, #5cadff, #3083e0);
      color: #fff;
      border-color: transparent;
    }

    .batch-dl:hover {
      background: linear-gradient(135deg, #3083e0, #1a6bc4);
      box-shadow: 0 4px 12px rgba(64, 158, 255, .35);
    }

    .batch-del {
      background: linear-gradient(135deg, #ff7875, #e84545);
      color: #fff;
      border-color: transparent;
    }

    .batch-del:hover {
      background: linear-gradient(135deg, #e84545, #c92a2a);
      box-shadow: 0 4px 12px rgba(245, 108, 108, .35);
    }

    .btn-clear {
      background: linear-gradient(135deg, #a0a4ab, #83878f);
      color: #fff;
      border-color: transparent;
    }

    .btn-clear:hover {
      background: linear-gradient(135deg, #83878f, #6c7078);
      box-shadow: 0 4px 12px rgba(144, 147, 153, .35);
    }

    /* ===== Breadcrumb ===== */
    .breadcrumb {
      margin: 12px 24px 0;
      padding: 8px 0;
      font-size: 14px;
      display: flex;
      align-items: center;
    }

    .breadcrumb-item {
      color: #6b7280;
      cursor: pointer;
      transition: color .15s;
      border-radius: 4px;
      padding: 2px 6px;
    }

    .breadcrumb-item:hover {
      color: #1d4ed8;
      background: #eff6ff;
      text-decoration: none;
    }

    .breadcrumb-item:last-child {
      color: #111827;
      cursor: default;
      font-weight: 600;
      background: none;
    }

    .breadcrumb-sep {
      color: #d1d5db;
      margin: 0 2px;
      font-weight: 300;
    }

    /* ===== Folder Row ===== */
    .folder-row {
      cursor: pointer;
    }

    .folder-row:hover td {
      background: #f0f6ff;
    }

    .folder-name {
      color: #333;
    }

    .file-list input[type=checkbox] {
      width: 16px;
      height: 16px;
      cursor: pointer;
      accent-color: #0066ff;
    }
    .file-list input[type=checkbox]:indeterminate {
      accent-color: #8ab4f8;
    }

    /* ===== File List ===== */
    .file-list {
      margin: 12px 24px 24px;
      background: rgba(255, 255, 255, .8);
      backdrop-filter: blur(8px);
      border-radius: 16px;
      border: 1px solid rgba(0, 0, 0, .06);
      overflow: hidden;
      box-shadow: 0 1px 3px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .04);
    }

    .file-list table {
      width: 100%;
      table-layout: fixed;
      border-collapse: separate;
      border-spacing: 0;
    }

    .file-list th {
      text-align: left;
      padding: 12px 20px;
      font-size: 14px;
      font-weight: 600;
      color: #333;
      border-bottom: 2px solid #d0d5dd;
      border-right: 1px solid #e5e7eb;
      user-select: none;
      cursor: pointer;
      position: relative;
      vertical-align: middle;
    }

    .file-list th:first-child {
      border-left: none;
    }

    .file-list td {
      border-right: 1px solid #f0f0f0;
    }

    .file-list td:last-child {
      border-right: none;
    }

    .file-list th:last-child {
      text-align: center;
      border-right: none;
    }

    .file-list th:hover {
      color: #1d4ed8;
    }

    .file-list th.sorted {
      color: #1d4ed8;
    }

    .file-list th.sorted::after {
      content: '';
      display: inline-block;
      margin-left: 4px;
      vertical-align: middle;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
    }

    .file-list th.sorted[data-dir="asc"]::after {
      border-bottom: 6px solid currentColor;
      border-top: 0;
    }

    .file-list th.sorted[data-dir="desc"]::after {
      border-top: 6px solid currentColor;
      border-bottom: 0;
    }

    .file-list th:nth-child(1) {
      width: 5%;
    }

    .file-list th:nth-child(2) {
      width: 30%;
    }

    .file-list th:nth-child(3) {
      width: 10%;
    }

    .file-list th:nth-child(4) {
      width: 15%;
    }

    .file-list th:nth-child(5) {
      width: 40%;
    }

    /* ===== Column Resize Handles ===== */
    .file-list .grip-handle .grip-resizable {
      position: absolute;
      background: transparent;
      opacity: 1;
      width: 8px;
      height: 100%;
      cursor: col-resize;
      top: 0;
      right: 0;
      transform: translateX(50%);
      z-index: 5;
      transition: background .2s;
    }

    .file-list .grip-handle .grip-resizable:hover {
      background: rgba(0, 102, 255, .3);
    }

    .file-list .grip-handle.grip-drag .grip-resizable {
      background: rgba(0, 102, 255, .5);
    }

    .file-list .grip-lastgrip .grip-resizable {
      display: none;
    }

    .file-list td {
      padding: 12px 20px;
      font-size: 14px;
      border-bottom: 1px solid #e0e0e0;
      vertical-align: middle;
    }

    .file-list tr:last-child td {
      border-bottom: none;
    }

    .file-list tr:hover td {
      background: #f5f7fa;
    }

    .file-name {
      font-weight: 500;
      word-break: break-all;
    }

    .file-icon {
      margin-right: 6px;
      font-size: 16px;
    }

    .file-size {
      color: #888;
      font-size: 13px;
      white-space: nowrap;
    }

    .file-date {
      color: #888;
      font-size: 13px;
      white-space: nowrap;
    }

    .actions {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .actions button {
      padding: 6px 16px;
      border: none;
      border-radius: 7px;
      font-size: 14px;
      cursor: pointer;
      color: #fff;
      transition: all .15s;
    }

    .actions button.preview {
      background: linear-gradient(135deg, #a0a4ab, #83878f);
    }

    .actions button.preview:hover {
      background: linear-gradient(135deg, #83878f, #6c7078);
      box-shadow: 0 4px 12px rgba(144, 147, 153, .35);
    }

    .actions button.download {
      background: linear-gradient(135deg, #5cadff, #3083e0);
    }

    .actions button.download:hover {
      background: linear-gradient(135deg, #3083e0, #1a6bc4);
      box-shadow: 0 4px 12px rgba(64, 158, 255, .35);
    }

    .actions button.delete {
      background: linear-gradient(135deg, #ff7875, #e84545);
    }

    .actions button.delete:hover {
      background: linear-gradient(135deg, #e84545, #c92a2a);
      box-shadow: 0 4px 12px rgba(245, 108, 108, .35);
    }

    .actions button.rename {
      background: linear-gradient(135deg, #f9b44a, #e8992e);
    }

    .actions button.rename:hover {
      background: linear-gradient(135deg, #e8992e, #d4891f);
      box-shadow: 0 4px 12px rgba(240, 160, 60, .35);
    }

    .actions button.share {
      background: linear-gradient(135deg, #a78bfa, #7c3aed);
    }

    .actions button.share:hover {
      background: linear-gradient(135deg, #7c3aed, #6d28d9);
      box-shadow: 0 4px 12px rgba(124, 58, 237, .35);
    }

    /* ===== Skeleton Loading ===== */
    .skeleton {
      padding: 12px 0;
    }

    .sk-row {
      display: flex;
      gap: 16px;
      padding: 14px 16px;
      border-bottom: 1px solid rgba(0, 0, 0, .04);
    }

    .sk-bar {
      height: 14px;
      border-radius: 7px;
      background: linear-gradient(90deg, #e2e8f0 25%, #edf2f7 50%, #e2e8f0 75%);
      background-size: 200% 100%;
      animation: sk-shimmer 1.4s ease-in-out infinite;
    }

    .sk-bar.w10 { width: 10%; }
    .sk-bar.w15 { width: 15%; }
    .sk-bar.w20 { width: 20%; }
    .sk-bar.w25 { width: 25%; }
    .sk-bar.w30 { width: 30%; }
    .sk-bar.w35 { width: 35%; }
    .sk-bar.w40 { width: 40%; }
    .sk-bar.w45 { width: 45%; }
    .sk-bar.w50 { width: 50%; }
    .sk-bar.w55 { width: 55%; }
    .sk-bar.w60 { width: 60%; }
    .sk-bar.w65 { width: 65%; }
    .sk-bar.w70 { width: 70%; }

    @keyframes sk-shimmer {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    /* ===== Empty State ===== */
    .empty {
      text-align: center;
      padding: 60px 20px;
      color: #aaa;
    }

    .empty .icon {
      font-size: 48px;
      margin-bottom: 12px;
    }

    /* ===== Toast ===== */
    .toast {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 100;
      padding: 12px 20px;
      border-radius: 8px;
      font-size: 14px;
      color: #fff;
      animation: slideIn .2s ease;
    }

    .toast.success {
      background: linear-gradient(135deg, #22c55e, #16a34a);
    }

    .toast.error {
      background: linear-gradient(135deg, #ef4444, #dc2626);
    }

    .toast.info {
      background: linear-gradient(135deg, #4d9fff, #2563eb);
    }

    .toast.warning {
      background: linear-gradient(135deg, #f59e0b, #e67e22);
    }

    @keyframes slideIn {
      from {
        transform: translateY(10px);
        opacity: 0;
      }

      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    /* ===== Drag Overlay ===== */
    .drag-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 102, 255, 0.06);
      border: 3px dashed #0066ff;
      z-index: 999;
      display: none;
      align-items: center;
      justify-content: center;
      pointer-events: none;
    }

    .drag-overlay.visible {
      display: flex;
    }

    .drag-overlay-content {
      background: #fff;
      padding: 28px 40px;
      border-radius: 12px;
      box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
      font-size: 18px;
      color: #333;
    }

    /* ===== Progress ===== */
    .progress-bar {
      position: fixed;
      top: 0;
      left: 0;
      height: 3px;
      background: linear-gradient(90deg, #4d9fff, #0066ff, #4d9fff);
      background-size: 200% 100%;
      animation: progressShimmer 1.5s linear infinite;
      transition: width .2s;
      z-index: 200;
      display: none;
    }

    @keyframes progressShimmer {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

/* ===== Confirm Dialog ===== */
    .dialog-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .3);
      z-index: 500;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .dialog-box {
      background: #fff;
      border-radius: 16px;
      padding: 28px;
      max-width: 360px;
      width: 90%;
      box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
      position: relative;
    }

    .dialog-close {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 32px;
      height: 32px;
      border: none;
      background: none;
      cursor: pointer;
      font-size: 20px;
      color: #999;
      line-height: 32px;
      text-align: center;
      border-radius: 8px;
      transition: color .15s, background .15s;
    }

    .dialog-close:hover {
      color: #333;
      background: #f0f0f0;
    }

    .dialog-box h3 {
      font-size: 16px;
      margin-bottom: 8px;
    }

    .dialog-box p {
      font-size: 14px;
      color: #666;
      margin-bottom: 20px;
      word-break: break-all;
    }

    .dialog-buttons {
      display: flex;
      gap: 8px;
      justify-content: flex-end;
    }

    .dialog-buttons button {
      padding: 8px 20px;
      border-radius: 6px;
      font-size: 14px;
      cursor: pointer;
      border: 1px solid #bbb;
    }

    .dialog-buttons .btn-cancel {
      background: #fff;
    }

    .dialog-buttons .btn-rename {
      background: #fff;
      color: #0066ff;
      border-color: #0066ff;
    }

    .dialog-buttons .btn-rename:hover {
      background: #f0f6ff;
    }

    .dialog-buttons .btn-confirm {
      background: linear-gradient(135deg, #ff7875, #e84545);
      color: #fff;
      border-color: transparent;
    }

    .dialog-buttons .btn-confirm:hover {
      background: linear-gradient(135deg, #e84545, #c92a2a);
      box-shadow: 0 4px 14px rgba(245, 108, 108, .35);
    }

    /* 容量超限弹窗 */
    .capacity-exceed-info {
      margin: 16px 0;
    }
    .capacity-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 14px;
      margin-bottom: 6px;
      border-radius: 6px;
      background: #f5f5f5;
      font-size: 14px;
    }
    .capacity-row .capacity-value {
      font-weight: 600;
      font-size: 15px;
    }
    .capacity-row.exceed {
      background: #fff0f0;
      color: #d32f2f;
    }
    .capacity-row.exceed .capacity-value {
      color: #d32f2f;
    }

    /* ===== Prompt Dialog ===== */
    .prompt-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .3);
      z-index: 500;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .prompt-box {
      background: #fff;
      border-radius: 16px;
      padding: 28px;
      max-width: 400px;
      width: 90%;
      box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
    }

    .prompt-box h3 {
      font-size: 16px;
      margin-bottom: 16px;
    }

    .prompt-input {
      width: 100%;
      padding: 10px 14px;
      border: 1px solid #d0d5dd;
      border-radius: 8px;
      font-size: 15px;
      outline: none;
      color: #333;
      background: #f9fafb;
      transition: border-color .2s, box-shadow .2s;
      margin-bottom: 20px;
    }

    .prompt-input:focus {
      border-color: #4d9fff;
      box-shadow: 0 0 0 3px rgba(77, 159, 255, .15);
      background: #fff;
    }

    .prompt-buttons {
      display: flex;
      gap: 8px;
      justify-content: flex-end;
    }

    .prompt-buttons button {
      padding: 8px 20px;
      border-radius: 8px;
      font-size: 14px;
      cursor: pointer;
      border: 1px solid #d0d5dd;
      background: #fff;
      color: #4a5568;
      transition: all .15s;
    }

    .prompt-buttons button:hover {
      background: #f7f8fa;
      border-color: #b0b8c4;
    }

    .prompt-buttons .btn-confirm {
      background: linear-gradient(135deg, #5ec53a, #4caf2e);
      color: #fff;
      border-color: transparent;
    }

    .prompt-buttons .btn-confirm:hover {
      background: linear-gradient(135deg, #4caf2e, #3d8b23);
      box-shadow: 0 4px 14px rgba(76, 175, 46, .35);
    }

    /* ===== Share Dialog ===== */
    .share-field {
      margin-bottom: 14px;
    }

    .share-field label {
      display: block;
      font-size: 13px;
      color: #666;
      margin-bottom: 4px;
    }

    .share-field input,
    .share-field select {
      width: 100%;
      padding: 8px 12px;
      border: 1px solid #d0d5dd;
      border-radius: 8px;
      font-size: 14px;
      outline: none;
      background: #f9fafb;
      color: #333;
      transition: border-color .2s, box-shadow .2s;
    }

    .share-field input:focus,
    .share-field select:focus {
      border-color: #4d9fff;
      box-shadow: 0 0 0 3px rgba(77, 159, 255, .15);
      background: #fff;
    }

    .share-pw-row {
      display: flex;
      gap: 8px;
      align-items: flex-end;
    }

    .share-pw-row .share-field {
      flex: 1;
      margin-bottom: 0;
    }

    .share-pw-row button {
      padding: 8px 14px;
      border: 1px solid #d0d5dd;
      border-radius: 8px;
      font-size: 13px;
      cursor: pointer;
      background: #fff;
      color: #4a5568;
      white-space: nowrap;
      transition: all .15s;
      height: 38px;
    }

    .share-pw-row button:hover {
      background: #f0f6ff;
      border-color: #4d9fff;
      color: #0066ff;
    }

    .share-qrcode {
      text-align: center;
    }

    .share-save-qr-btn {
      display: block;
      margin: 10px auto 0;
      padding: 6px 16px;
      border: 1px solid #d0d5dd;
      border-radius: 6px;
      font-size: 13px;
      cursor: pointer;
      background: #fff;
      color: #4a5568;
      transition: all .15s;
    }

    .share-save-qr-btn:hover {
      background: #f0f6ff;
      border-color: #4d9fff;
      color: #0066ff;
    }

    .share-result {
      margin-top: 12px;
      padding: 12px;
      background: #f0fdf4;
      border: 1px solid #bbf7d0;
      border-radius: 8px;
      font-size: 13px;
    }

    .share-result .label {
      color: #166534;
      font-weight: 500;
      margin-bottom: 8px;
    }

    .share-link-row {
      display: flex;
      gap: 8px;
    }

    .share-link-row input {
      flex: 1;
      padding: 6px 10px;
      border: 1px solid #d0d5dd;
      border-radius: 6px;
      font-size: 13px;
      background: #fff;
      color: #333;
      outline: none;
    }

    .share-link-row button {
      padding: 6px 14px;
      border: none;
      border-radius: 6px;
      font-size: 13px;
      cursor: pointer;
      color: #fff;
      background: linear-gradient(135deg, #5cadff, #3083e0);
      white-space: nowrap;
      transition: all .15s;
    }

    .share-link-row button:hover {
      background: linear-gradient(135deg, #3083e0, #1a6bc4);
    }

    /* Share management table */
    .share-mgmt-table {
      width: 100%;
      table-layout: fixed;
      border-collapse: separate;
      border-spacing: 0;
      margin-top: 8px;
      font-size: 13px;
    }

    .share-mgmt-table th {
      text-align: left;
      padding: 10px 12px;
      font-size: 14px;
      font-weight: 600;
      color: #333;
      border-bottom: 2px solid #d0d5dd;
      border-right: 1px solid #e5e7eb;
      user-select: none;
      white-space: nowrap;
    }

    .share-mgmt-table th[data-sort] {
      cursor: pointer;
    }

    .share-mgmt-table th[data-sort]:hover {
      color: #1d4ed8;
    }

    .share-mgmt-table th.sorted {
      color: #1d4ed8;
    }

    .share-mgmt-table th.sorted::after {
      content: '';
      display: inline-block;
      margin-left: 4px;
      vertical-align: middle;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
    }

    .share-mgmt-table th.sorted[data-dir="asc"]::after {
      border-bottom: 6px solid currentColor;
      border-top: 0;
    }

    .share-mgmt-table th.sorted[data-dir="desc"]::after {
      border-top: 6px solid currentColor;
      border-bottom: 0;
    }

    .share-mgmt-table th:first-child {
      border-left: none;
    }

    .share-mgmt-table th:last-child {
      text-align: center;
      border-right: none;
      cursor: default;
    }

    .share-mgmt-table td {
      padding: 10px 12px;
      font-size: 14px;
      border-bottom: 1px solid #e0e0e0;
      border-right: 1px solid #f0f0f0;
      white-space: nowrap;
    }

    .share-mgmt-table td:last-child {
      border-right: none;
    }

    .share-mgmt-table tr:last-child td {
      border-bottom: none;
    }

    .share-mgmt-table tr:hover td {
      background: #f5f7fa;
    }

    .share-mgmt-table .name-col {
      max-width: 180px;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .share-mgmt-table .btn-sm {
      padding: 3px 10px;
      border: none;
      border-radius: 4px;
      font-size: 12px;
      cursor: pointer;
      color: #fff;
      transition: all .15s;
      margin-right: 4px;
    }

    .share-mgmt-table .btn-share-addr {
      background: linear-gradient(135deg, #5cadff, #3083e0);
    }

    .share-mgmt-table .btn-share-addr:hover {
      box-shadow: 0 2px 8px rgba(64, 158, 255, .35);
    }

    .share-mgmt-table .btn-del {
      background: linear-gradient(135deg, #ff7875, #e84545);
    }

    .share-mgmt-table .btn-del:hover {
      box-shadow: 0 2px 8px rgba(245, 108, 108, .35);
    }

    .share-empty {
      text-align: center;
      padding: 24px;
      color: #aaa;
      font-size: 14px;
    }

    /* Share management toolbar */
    .share-mgmt-toolbar {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 8px 0;
      margin-top: 4px;
    }

    .share-select-all-label {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 13px;
      color: #666;
      cursor: pointer;
      user-select: none;
    }

    .share-select-all-label input[type=checkbox] {
      width: 15px;
      height: 15px;
      cursor: pointer;
      accent-color: #0066ff;
    }

    .share-batch-info {
      font-size: 13px;
      color: #888;
    }

    .share-batch-del-btn {
      background: linear-gradient(135deg, #ff7875, #e84545) !important;
      color: #fff !important;
      border-color: transparent !important;
      font-size: 13px !important;
    }

    .share-batch-del-btn:hover {
      background: linear-gradient(135deg, #e84545, #c92a2a) !important;
      box-shadow: 0 4px 12px rgba(245,108,108,.35) !important;
    }

    .share-mgmt-table .share-row-checkbox {
      width: 15px;
      height: 15px;
      cursor: pointer;
      accent-color: #0066ff;
    }

    .share-pagination {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      padding: 16px 0 4px;
      user-select: none;
    }

    .share-page-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 30px;
      height: 30px;
      padding: 0 6px;
      border: 1px solid #d0d5dd;
      border-radius: 6px;
      background: #fff;
      color: #555;
      font-size: 15px;
      cursor: pointer;
      transition: all .15s;
      text-decoration: none;
    }

    .share-page-btn:hover:not(:disabled) {
      background: #f0f5ff;
      border-color: #4d9fff;
      color: #0066ff;
    }

    .share-page-btn:disabled {
      opacity: .3;
      cursor: default;
    }

    .share-page-num {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 30px;
      height: 30px;
      padding: 0 4px;
      border: 1px solid #d0d5dd;
      border-radius: 6px;
      background: #fff;
      color: #333;
      font-size: 13px;
      cursor: pointer;
      transition: all .15s;
    }

    .share-page-num:hover {
      background: #f0f5ff;
      border-color: #4d9fff;
      color: #0066ff;
    }

    .share-page-num.active {
      background: linear-gradient(135deg, #4d9fff, #0066ff);
      border-color: transparent;
      color: #fff;
      font-weight: 500;
      cursor: default;
    }

    .share-page-ellipsis {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 30px;
      height: 30px;
      color: #aaa;
      font-size: 13px;
      letter-spacing: 1px;
    }

    .share-page-info {
      margin-left: 12px;
      font-size: 13px;
      color: #888;
    }

    /* ===== Context Menu ===== */
    .context-menu {
      position: fixed;
      z-index: 500;
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
      padding: 4px 0;
      min-width: 140px;
      display: none;
    }

    .context-item {
      padding: 8px 20px;
      font-size: 14px;
      cursor: pointer;
      color: #333;
      transition: background .1s;
      user-select: none;
    }

    .context-item:hover {
      background: #f0f6ff;
    }

    /* ===== Responsive ===== */
    @media (max-width: 640px) {

      /* ===== Login (mobile) ===== */
      .login-box {
        padding: 36px 24px;
        width: calc(100vw - 40px);
        max-width: 360px;
        border-radius: 16px;
      }

      .login-box h1 { font-size: 24px; }

      .login-box input {
        width: 100%;
        max-width: 260px;
      }

      /* Hide date column on mobile */
      .file-list th:nth-child(4),
      .file-list td:nth-child(4) {
        display: none;
      }

      /* Match skeleton to hidden date column */
      .sk-row .sk-bar:nth-child(3) {
        display: none;
      }

      /* Limit filename to 2 lines on mobile */
      .file-name {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        word-break: break-all;
      }

      .file-list td,
      .file-list th {
        padding: 10px 8px;
      }

      /* Redistribute column widths — only 4 visible after hiding date column */
      .file-list th:nth-child(1) { width: 5%; }
      .file-list th:nth-child(2) { width: 38%; }
      .file-list th:nth-child(3) { width: 15%; }
      .file-list th:nth-child(5) { width: 42%; }

      .file-list {
        overflow-x: auto;
      }

      /* Fix table min-width to prevent squishing */
      .file-list table {
        min-width: 420px;
      }

      .file-size {
        font-size: 11px;
      }

      .actions {
        gap: 4px;
        flex-wrap: nowrap;
      }

      .actions button {
        padding: 4px 7px;
        font-size: 11px;
        border-radius: 4px;
        white-space: nowrap;
        flex-shrink: 0;
      }

      .btn-hidden {
        display: none;
      }

      .upload-zone {
        margin: 16px 16px 0;
        padding: 28px 16px;
      }

      .file-list,
      .toolbar {
        margin-left: 12px;
        margin-right: 12px;
      }

      header {
        padding: 0 12px;
      }

      .usage {
        display: none;
      }

      .prompt-box {
        padding: 20px 16px;
      }

      .prompt-buttons button {
        padding: 8px 14px;
        font-size: 13px;
      }
    }

    /* ===== Drag-and-drop move ===== */
    .folder-row.drag-over-folder {
      background: rgba(0, 102, 255, 0.1) !important;
      outline: 2px solid #0066ff;
      outline-offset: -2px;
    }

    tr[draggable="true"] {
      cursor: grab;
    }

    tr[draggable="true"]:active {
      cursor: grabbing;
    }

    tr.drag-source {
      opacity: 0.4;
    }
