/* FHC 雲端硬碟 (fhc_drive) — 所有樣式都加上 fhc- 前綴，不影響佈景 */
.fhc-drive {
  --fhc-blue: #1a73e8; --fhc-blue-soft: #e8f0fe; --fhc-border: #e3e6ea; --fhc-muted: #5f6368;
  --fhc-hover: #f1f3f4; --fhc-sel: #c2e7ff; --fhc-red: #d93025; --fhc-amber: #b06000; --fhc-bg: #fff;
  font-size: 14px; line-height: 1.5; color: #202124; position: relative; text-align: left;
}
.fhc-drive *, .fhc-drive *::before, .fhc-drive *::after { box-sizing: border-box; }
.fhc-drive a { color: inherit; text-decoration: none; }
.fhc-drive a:hover { color: var(--fhc-blue); }
.fhc-ic { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; fill: currentColor; display: inline-block; }
.fhc-lock { width: 14px; height: 14px; color: var(--fhc-amber); }
.fhc-muted { color: var(--fhc-muted); }
.fhc-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }
.fhc-nowrap { white-space: nowrap; }
.fhc-grow { flex: 1; }
[hidden] { display: none !important; }

/* 按鈕 */
.fhc-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid #dadce0; border-radius: 18px; background: #fff;
  color: #3c4043 !important; font-size: 14px; cursor: pointer; line-height: 1.3; white-space: nowrap; text-decoration: none !important; }
.fhc-btn:hover { background: var(--fhc-hover); }
.fhc-btn .fhc-ic { width: 18px; height: 18px; }
.fhc-btn-primary { background: var(--fhc-blue); border-color: var(--fhc-blue); color: #fff !important; }
.fhc-btn-primary:hover { background: #1765cc; }
.fhc-btn-danger { color: var(--fhc-red) !important; border-color: #f3c3bf; }
.fhc-btn-danger:hover { background: #fce8e6; }
.fhc-modal .fhc-btn-danger { background: var(--fhc-red); color: #fff !important; border-color: var(--fhc-red); }
.fhc-btn-sm { padding: 4px 10px; font-size: 13px; }
.fhc-btn-link { border-color: transparent; background: transparent; }
.fhc-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: transparent; color: var(--fhc-muted) !important; cursor: pointer; padding: 0; font-size: 14px; }
.fhc-icon-btn:hover, .fhc-icon-btn.active { background: var(--fhc-hover); color: #202124 !important; }
.fhc-icon-btn.active { background: var(--fhc-blue-soft); color: var(--fhc-blue) !important; }

/* 上方列 */
.fhc-top { display: flex; align-items: center; gap: 12px; padding: 4px 0 12px; flex-wrap: wrap; }
.fhc-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 500; color: #3c4043 !important; white-space: nowrap; }
.fhc-brand .fhc-ic { width: 30px; height: 30px; color: #fbbc04; }
.fhc-page-title { margin: 0; font-size: 18px; font-weight: 500; display: flex; align-items: center; gap: 6px; flex: 1; }
.fhc-search { flex: 1; min-width: 200px; max-width: 720px; display: flex; align-items: center; background: #f1f3f4; border-radius: 24px; padding: 0 14px; }
.fhc-search:focus-within { background: #fff; box-shadow: 0 1px 3px rgba(60,64,67,.3); }
.fhc-search .fhc-ic { color: var(--fhc-muted); }
.fhc-search input { flex: 1; border: 0 !important; background: transparent !important; outline: 0; padding: 10px; font-size: 15px; box-shadow: none !important; min-width: 0; }
.fhc-top-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }

/* 版面 */
.fhc-layout { display: flex; gap: 16px; align-items: flex-start; }
.fhc-side { width: 240px; flex: 0 0 240px; position: sticky; top: 10px; max-height: calc(100vh - 20px); overflow: auto; }
.fhc-main { flex: 1; min-width: 0; position: relative; min-height: 320px; border-radius: 12px; }
.fhc-new { padding: 0 0 12px; }
.fhc-new-mobile { display: none; }
.fhc-new-btn { padding: 12px 22px; border-radius: 16px; box-shadow: 0 1px 3px rgba(60,64,67,.3); font-size: 15px; }

/* 資料夾樹 */
.fhc-tree { font-size: 13.5px; }
.fhc-tree-list { list-style: none; margin: 0; padding: 0; }
.fhc-tree-list .fhc-tree-list { display: none; }
.fhc-tree-list li.open > .fhc-tree-list { display: block; }
.fhc-tree-row { display: flex; align-items: center; border-radius: 0 16px 16px 0; padding-right: 8px; min-height: 32px; }
.fhc-tree-row:hover { background: var(--fhc-hover); }
.fhc-tree-row.active { background: var(--fhc-sel); font-weight: 600; }
.fhc-tree-row a { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding: 5px 0; }
.fhc-tree-row a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fhc-tree-row .fhc-ic { width: 18px; height: 18px; color: var(--fhc-muted); }
.fhc-tree-toggle, .fhc-tree-spacer { width: 20px; height: 20px; flex: 0 0 20px; border: 0; background: transparent; color: var(--fhc-muted); cursor: pointer; padding: 0; transition: transform .15s; font-size: 12px; }
li.open > .fhc-tree-row .fhc-tree-toggle { transform: rotate(90deg); }

/* 麵包屑 */
.fhc-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 18px; padding: 4px 0 10px; }
.fhc-crumbs a { padding: 2px 8px; border-radius: 8px; color: #3c4043; }
.fhc-crumbs a:hover { background: var(--fhc-hover); }
.fhc-crumb-current { padding: 2px 8px; font-weight: 500; }
.fhc-sep { color: var(--fhc-muted); }
.fhc-crumb-tools { margin-left: auto; display: flex; gap: 6px; font-size: 14px; flex-wrap: wrap; }

.fhc-notice { background: #f1f3f4; border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fhc-notice a { color: var(--fhc-blue) !important; }
.fhc-notice-private { background: #fef7e0; color: #7a4c00; }
.fhc-notice-danger { background: #fce8e6; color: #a50e0e; }
.fhc-folder-desc { background: #f8f9fa; border-left: 4px solid var(--fhc-blue); border-radius: 6px; padding: 10px 14px; margin: 0 0 12px; }

/* 選取列 */
.fhc-selbar { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; background: var(--fhc-blue-soft);
  border-radius: 24px; padding: 6px 12px; margin-bottom: 8px; }
.fhc-selcount { font-weight: 600; margin-right: 6px; }

/* 清單 */
.fhc-list { border-top: 1px solid var(--fhc-border); }
.fhc-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--fhc-border); padding: 0 8px; min-height: 48px; }
.fhc-head { min-height: 40px; color: var(--fhc-muted); font-weight: 500; font-size: 13px; }
.fhc-head a.active { color: #202124; }
.fhc-item { cursor: pointer; }
.fhc-item:hover { background: var(--fhc-hover); }
.fhc-item.selected { background: var(--fhc-sel); }
.fhc-c-check { width: 24px; flex: 0 0 24px; }
.fhc-c-check input { margin: 0; cursor: pointer; width: 16px; height: 16px; }
.fhc-c-name { flex: 1; min-width: 150px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; }
.fhc-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.fhc-c-owner { width: 150px; flex: 0 0 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fhc-muted); }
.fhc-c-date { width: 140px; flex: 0 0 140px; color: var(--fhc-muted); white-space: nowrap; }
.fhc-c-size { width: 90px; flex: 0 0 90px; color: var(--fhc-muted); white-space: nowrap; text-align: right; }
.fhc-c-dl { width: 72px; flex: 0 0 72px; text-align: right; color: var(--fhc-muted); }
.fhc-c-act { width: 80px; flex: 0 0 80px; display: flex; justify-content: flex-end; }
.fhc-head .fhc-c-act { visibility: hidden; }
.fhc-path { width: 100%; font-size: 12px; color: var(--fhc-muted); padding-left: 42px; margin-top: -6px; }
.fhc-desc { width: 100%; font-size: 12px; color: var(--fhc-muted); padding-left: 42px; margin-top: -6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fhc-badge { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; line-height: 1; padding: 3px 7px; border-radius: 10px; background: #e8eaed; color: #3c4043; font-weight: 500; }
.fhc-badge .fhc-ic { width: 12px; height: 12px; }
.fhc-badge-private { background: #fef7e0; color: #7a4c00; }

/* 檔案圖示 */
.fhc-thumb { width: 32px; height: 32px; flex: 0 0 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; position: relative; overflow: hidden; }
.fhc-thumb .fhc-ic { width: 24px; height: 24px; }
.fhc-thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fhc-thumb.has-img .fhc-ic { visibility: hidden; }
.fhc-thumb-sm { width: 24px; height: 24px; flex-basis: 24px; vertical-align: middle; margin-right: 6px; }
.fhc-thumb-sm .fhc-ic { width: 18px; height: 18px; }
.fhc-thumb-lg { width: 56px; height: 56px; flex-basis: 56px; border-radius: 12px; }
.fhc-thumb-lg .fhc-ic { width: 40px; height: 40px; }
.fhc-k-folder { color: #5f6368; } .fhc-folder .fhc-k-folder { color: #fbbc04; }
.fhc-k-file { color: #5f6368; } .fhc-k-image { color: #d93025; } .fhc-k-video { color: #d93025; } .fhc-k-audio { color: #9334e6; }
.fhc-k-pdf { color: #ea4335; } .fhc-k-doc { color: #4285f4; } .fhc-k-sheet { color: #0f9d58; } .fhc-k-slide { color: #f4b400; }
.fhc-k-archive { color: #795548; } .fhc-k-code { color: #00897b; } .fhc-k-text { color: #607d8b; }

/* 格狀檢視 */
.fhc-list.fhc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; border: 0; }
.fhc-grid .fhc-head { display: none; }
.fhc-grid .fhc-row { flex-direction: column; align-items: stretch; border: 1px solid var(--fhc-border); border-radius: 12px; padding: 8px; min-height: 0; gap: 4px; position: relative; background: #f8f9fa; }
.fhc-grid .fhc-row:hover { background: #eef0f2; }
.fhc-grid .fhc-row.selected { background: var(--fhc-sel); }
.fhc-grid .fhc-c-check { position: absolute; top: 10px; left: 10px; z-index: 2; }
.fhc-grid .fhc-c-name { flex-direction: column; align-items: stretch; gap: 6px; padding: 0; }
.fhc-grid .fhc-thumb { width: 100%; height: 120px; flex-basis: auto; background: #fff; border-radius: 8px; }
.fhc-grid .fhc-thumb .fhc-ic { width: 52px; height: 52px; }
.fhc-grid .fhc-name { white-space: nowrap; font-size: 13px; }
.fhc-grid .fhc-path, .fhc-grid .fhc-desc { padding-left: 0; margin: 0; }
.fhc-grid .fhc-c-owner, .fhc-grid .fhc-c-date, .fhc-grid .fhc-c-dl { display: none; }
.fhc-grid .fhc-c-size { width: auto; flex: none; text-align: left; font-size: 12px; }
.fhc-grid .fhc-c-act { position: absolute; top: 8px; right: 8px; width: auto; background: rgba(255,255,255,.9); border-radius: 18px; }
.fhc-grid .fhc-folder .fhc-thumb { height: 56px; background: transparent; justify-content: flex-start; }
.fhc-grid .fhc-badge { align-self: flex-start; }

.fhc-foot { padding: 10px 8px; font-size: 13px; }
.fhc-empty { text-align: center; padding: 60px 20px; color: var(--fhc-muted); }
.fhc-empty .fhc-ic { width: 72px; height: 72px; color: #dadce0; }
.fhc-empty p { margin: 8px 0 0; }

/* 拖放 */
.fhc-drop-overlay { display: none; position: absolute; inset: 0; border: 2px dashed var(--fhc-blue); border-radius: 12px; background: rgba(232,240,254,.85);
  align-items: center; justify-content: center; text-align: center; color: var(--fhc-blue); font-size: 16px; z-index: 20; pointer-events: none; }
.fhc-drop-overlay .fhc-ic { width: 56px; height: 56px; }
.fhc-main.dragging .fhc-drop-overlay { display: flex; }

/* 選單 */
.fhc-menu { position: absolute; z-index: 100000; min-width: 220px; background: #fff; border-radius: 8px; padding: 6px 0;
  box-shadow: 0 2px 6px rgba(60,64,67,.3), 0 6px 20px rgba(60,64,67,.15); font-size: 14px; }
.fhc-menu button { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; padding: 8px 16px; text-align: left; cursor: pointer; color: #202124; font-size: 14px; }
.fhc-menu button:hover { background: var(--fhc-hover); }
.fhc-menu button.danger { color: var(--fhc-red); }
.fhc-menu .fhc-ic { width: 18px; height: 18px; color: var(--fhc-muted); }
.fhc-menu-sep { height: 1px; background: var(--fhc-border); margin: 6px 0; }

/* 對話框 */
.fhc-modal-back { position: fixed; inset: 0; background: rgba(32,33,36,.5); z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 16px; }
.fhc-modal { background: #fff; border-radius: 12px; width: 100%; max-width: 460px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 8px 30px rgba(0,0,0,.25); font-size: 14px; color: #202124; }
.fhc-modal-head { font-size: 18px; padding: 20px 24px 8px; font-weight: 500; }
.fhc-modal-body { padding: 8px 24px; overflow: auto; }
.fhc-modal-body p { margin: 0 0 10px; }
.fhc-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px 18px; }
.fhc-field { display: block; }
.fhc-field > span { display: block; color: var(--fhc-muted); font-size: 13px; margin-bottom: 6px; }
.fhc-input { width: 100%; border: 1px solid #dadce0; border-radius: 6px; padding: 9px 12px; font-size: 15px; font-family: inherit; }
.fhc-input:focus { outline: 2px solid var(--fhc-blue); border-color: transparent; }
.fhc-check, .fhc-radio { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; cursor: pointer; }
.fhc-picker { border: 1px solid var(--fhc-border); border-radius: 8px; max-height: 50vh; overflow: auto; }
.fhc-picker-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; cursor: pointer; }
.fhc-picker-row:hover { background: var(--fhc-hover); }
.fhc-picker-row.active { background: var(--fhc-sel); }
.fhc-picker-row.current span::after { content: ' ●'; color: var(--fhc-blue); font-size: 10px; }
.fhc-picker-row.disabled { opacity: .4; cursor: not-allowed; }
.fhc-picker-row .fhc-ic { width: 18px; height: 18px; color: #fbbc04; }
.fhc-picker-row .fhc-lock { width: 14px; height: 14px; color: var(--fhc-amber); }

/* 上傳面板 */
.fhc-up-panel { position: fixed; right: 20px; bottom: 0; width: 380px; max-width: calc(100vw - 20px); background: #fff; border-radius: 12px 12px 0 0;
  box-shadow: 0 4px 20px rgba(0,0,0,.25); z-index: 99999; font-size: 13px; color: #202124; }
.fhc-up-head { display: flex; align-items: center; gap: 4px; padding: 10px 10px 10px 16px; background: #202124; color: #fff; border-radius: 12px 12px 0 0; font-size: 15px; }
.fhc-up-head .fhc-icon-btn { color: #fff !important; width: 30px; height: 30px; }
.fhc-up-head .fhc-icon-btn:hover { background: rgba(255,255,255,.15); }
.fhc-up-list { max-height: 300px; overflow: auto; }
.fhc-up-panel.min .fhc-up-list { display: none; }
.fhc-up-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--fhc-border); }
.fhc-up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fhc-up-bar { grid-column: 1; height: 4px; background: #e8eaed; border-radius: 2px; overflow: hidden; }
.fhc-up-bar i { display: block; height: 100%; width: 0; background: var(--fhc-blue); transition: width .2s; }
.fhc-up-status { grid-column: 2; font-size: 12px; color: var(--fhc-muted); text-align: right; min-width: 36px; }
.fhc-up-row.done .fhc-up-bar i { background: #188038; width: 100%; }
.fhc-up-row.done .fhc-up-status { color: #188038; font-weight: bold; }
.fhc-up-row.err .fhc-up-status, .fhc-up-row.err .fhc-up-name { color: var(--fhc-red); }
.fhc-up-row.err .fhc-up-status { grid-column: 1 / span 2; text-align: left; }
.fhc-up-row.err .fhc-up-bar { display: none; }
.fhc-up-row.done .fhc-icon-btn, .fhc-up-row.err .fhc-icon-btn, .fhc-up-row.cancel .fhc-icon-btn { visibility: hidden; }
.fhc-up-row.cancel { opacity: .5; }
.fhc-up-row .fhc-icon-btn { width: 24px; height: 24px; font-size: 12px; }

/* 提示 */
.fhc-toasts { position: fixed; left: 20px; bottom: 20px; z-index: 100002; display: flex; flex-direction: column; gap: 8px; }
.fhc-toast { background: #323232; color: #fff; padding: 12px 18px; border-radius: 6px; box-shadow: 0 3px 10px rgba(0,0,0,.3); font-size: 14px; max-width: 420px; transition: opacity .4s; }
.fhc-toast-error { background: #b3261e; }
.fhc-toast.out { opacity: 0; }
html.fhc-busy, html.fhc-busy * { cursor: progress !important; }

/* 檔案頁 */
.fhc-file-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.fhc-file-title { flex: 1; min-width: 200px; }
.fhc-file-title h2 { margin: 0 0 2px; font-size: 22px; font-weight: 500; word-break: break-all; }
.fhc-file-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fhc-file-body { display: flex; gap: 20px; align-items: flex-start; }
.fhc-preview { flex: 1 1 auto; min-width: 0; width: 100%; background: #f1f3f4; border-radius: 12px; min-height: 260px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fhc-preview img { max-width: 100%; max-height: 75vh; display: block; }
.fhc-preview video { width: 100%; max-height: 75vh; background: #000; display: block; }
.fhc-preview audio { width: 90%; }
.fhc-preview iframe { width: 100%; height: 78vh; border: 0; background: #fff; }
.fhc-preview-text { width: 100%; margin: 0; padding: 16px; max-height: 75vh; overflow: auto; background: #fff; font-size: 13px; white-space: pre-wrap; word-break: break-all; text-align: left; }
.fhc-preview-none { text-align: center; color: var(--fhc-muted); padding: 40px 20px; }
.fhc-preview-none .fhc-ic { width: 80px; height: 80px; opacity: .6; }
.fhc-info { width: 320px; flex: 0 0 320px; border: 1px solid var(--fhc-border); border-radius: 12px; padding: 16px; }
.fhc-info h3 { font-size: 15px; margin: 0 0 10px; font-weight: 600; }
.fhc-info dl { margin: 0 0 12px; display: grid; grid-template-columns: 84px 1fr; gap: 8px 10px; }
.fhc-info dt { color: var(--fhc-muted); font-weight: normal; }
.fhc-info dd { margin: 0; word-break: break-word; }
.fhc-info dd a { color: var(--fhc-blue) !important; }
.fhc-file-desc { white-space: normal; }

/* 分頁 */
.fhc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--fhc-border); margin: 24px 0 12px; overflow-x: auto; }
.fhc-tabs button, .fhc-tabs a { border: 0; background: transparent; padding: 10px 16px; cursor: pointer; font-size: 14px; color: var(--fhc-muted) !important;
  border-bottom: 3px solid transparent; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.fhc-tabs .active { color: var(--fhc-blue) !important; border-bottom-color: var(--fhc-blue); font-weight: 600; }

/* 表格 */
.fhc-table-wrap { overflow-x: auto; }
.fhc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fhc-table th { text-align: left; color: var(--fhc-muted); font-weight: 500; border-bottom: 1px solid var(--fhc-border); padding: 8px 10px; background: #f8f9fa; white-space: nowrap; }
.fhc-table td { border-bottom: 1px solid var(--fhc-border); padding: 8px 10px; vertical-align: middle; }
.fhc-table tr:hover td { background: #fafafa; }
.fhc-table a { color: var(--fhc-blue) !important; }
.fhc-current-version td { background: var(--fhc-blue-soft); }
.fhc-act { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; background: #e8eaed; white-space: nowrap; }
.fhc-act-file_upload, .fhc-act-folder_create, .fhc-act-file_version { background: #e6f4ea; color: #137333; }
.fhc-act-file_delete, .fhc-act-folder_delete, .fhc-act-file_purge, .fhc-act-folder_purge, .fhc-act-trash_empty, .fhc-act-version_delete { background: #fce8e6; color: #a50e0e; }
.fhc-act-file_private, .fhc-act-folder_private { background: #fef7e0; color: #7a4c00; }
.fhc-act-file_restore, .fhc-act-folder_restore, .fhc-act-version_restore { background: #e8f0fe; color: #174ea6; }

/* 紀錄頁 */
.fhc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 8px; }
.fhc-stats > div { background: #f8f9fa; border: 1px solid var(--fhc-border); border-radius: 12px; padding: 12px 16px; }
.fhc-stats b { display: block; font-size: 22px; color: var(--fhc-blue); font-weight: 500; }
.fhc-stats span { color: var(--fhc-muted); font-size: 13px; }
.fhc-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 10px; }
.fhc-filter label { display: flex; flex-direction: column; font-size: 12px; color: var(--fhc-muted); gap: 3px; }
.fhc-filter input, .fhc-filter select { border: 1px solid #dadce0; border-radius: 6px; padding: 6px 8px; font-size: 14px; min-width: 120px; height: 34px; background: #fff; }
.fhc-pagenav { margin: 12px 0; text-align: center; }

/* 依模組實際寬度調整（佈景有側欄時，可用寬度比螢幕小很多） */
.fhc-drive { container-type: inline-size; container-name: fhcdrive; }
.fhc-main { container-type: inline-size; container-name: fhcmain; }
@container fhcdrive (max-width: 860px) {
  .fhc-side { display: none; }
  .fhc-new-mobile { display: inline-flex; }
  .fhc-file-body { flex-direction: column; align-items: stretch; }
  .fhc-info { width: 100%; flex-basis: auto; }
}
@container fhcmain (max-width: 820px) { .fhc-c-owner { display: none; } }
@container fhcmain (max-width: 640px) { .fhc-c-dl { display: none; } }
@container fhcmain (max-width: 540px) {
  .fhc-c-date, .fhc-head .fhc-c-size { display: none; }
  .fhc-c-size { width: 64px; flex-basis: 64px; font-size: 12px; }
  .fhc-c-act { width: 68px; flex-basis: 68px; }
  .fhc-crumbs { font-size: 16px; }
  .fhc-list.fhc-grid { grid-template-columns: repeat(2, 1fr); }
  .fhc-grid .fhc-thumb { height: 96px; }
}

/* 手機（不支援 container query 的舊瀏覽器） */
@media (max-width: 900px) {
  .fhc-side { display: none; }
  .fhc-c-owner { display: none; }
  .fhc-file-body { flex-direction: column; align-items: stretch; }
  .fhc-info { width: 100%; flex-basis: auto; }
  .fhc-new-mobile { display: inline-flex; }
}
@media (max-width: 640px) {
  .fhc-c-date, .fhc-c-dl, .fhc-head .fhc-c-size { display: none; }
  .fhc-c-size { width: 70px; flex-basis: 70px; font-size: 12px; }
  .fhc-c-act { width: 68px; flex-basis: 68px; }
  .fhc-crumbs { font-size: 16px; }
  .fhc-list.fhc-grid { grid-template-columns: repeat(2, 1fr); }
  .fhc-grid .fhc-thumb { height: 96px; }
  .fhc-up-panel { right: 10px; }
}
