.drive { display: flex; height: 100vh; background: var(--bg); }
.drive-side { width: 240px; flex-shrink: 0; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; background: var(--side-bg); border-right: 1px solid var(--border); }
.drive-brand { font-size: 18px; font-weight: 600; padding: 4px 8px 8px; }
.new-btn.big { height: 48px; border-radius: 24px; font-size: 14px; font-weight: 600; box-shadow: 0 1px 3px rgba(60,64,67,.3); background: #fff; color: var(--text); text-align: left; padding: 0 22px; width: 120px; }
.new-btn.big:hover { background: #e8f0fe; }
.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.nav button { display: flex; align-items: center; gap: 12px; height: 38px; border: none; border-radius: 19px; background: transparent; padding: 0 16px; font-size: 14px; color: var(--text); cursor: pointer; text-align: left; }
.nav button:hover { background: #e8eaed; }
.nav button.active { background: #c2e7ff; font-weight: 600; }
.nav button span { width: 20px; text-align: center; }
.cloud-nav { margin-top: 14px; padding-top: 10px; border-top: 1px solid #e0e3e7; }
.cloud-nav button b { font-weight: 400; }
.cloud-nav button:disabled { opacity: .7; cursor: default; }
.drive-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #fff; margin: 8px 8px 0 0; border-radius: 16px 16px 0 0; overflow: hidden; }
.drive-top { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.crumbs { display: flex; align-items: center; gap: 4px; font-size: 18px; flex: 1; min-width: 0; flex-wrap: wrap; }
.crumbs button { border: none; background: transparent; font-size: 18px; padding: 4px 8px; border-radius: 16px; cursor: pointer; color: var(--text); }
.crumbs button:hover { background: var(--hover); }
.crumbs .sepc { color: var(--muted); }
.crumbs .cur { padding: 4px 8px; }
.search.wide { width: 280px; height: 36px; border-radius: 18px; background: #f1f3f4; border-color: transparent; padding: 0 16px; }
.search.wide:focus { background: #fff; border-color: var(--accent); }
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; flex-shrink: 0; }
.view-toggle button { height: 34px; padding: 0 14px; border: none; background: #fff; cursor: pointer; font-size: 13px; color: var(--muted); }
.view-toggle button.on { background: #c2e7ff; color: #001d35; font-weight: 600; }
.trash-banner { background: #f1f3f4; padding: 8px 20px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.trash-banner[hidden] { display: none; }
.trash-banner button { border: none; background: transparent; color: var(--accent); cursor: pointer; font-size: 13px; }
.content-area { flex: 1; overflow-y: auto; padding: 16px 20px 40px; }
.section-title { font-size: 13px; color: var(--muted); font-weight: 600; margin: 8px 0 10px; }
.empty-state { text-align: center; color: var(--muted); padding: 80px 20px; line-height: 1.8; }
.empty-state .big { font-size: 56px; }

/* 清單檢視 */
.list-head, .row { display: grid; grid-template-columns: minmax(200px, 1fr) 160px 150px 90px 70px; align-items: center; gap: 8px; padding: 0 10px; }
.list-head { height: 34px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--border); position: sticky; top: -16px; background: #fff; z-index: 1; }
.row { height: 44px; border-bottom: 1px solid #f1f3f4; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.row:hover { background: #f1f3f4; }
.row .name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row .name .ico { font-size: 20px; width: 24px; text-align: center; flex-shrink: 0; }
.row .name .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .muted { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .acts { display: flex; justify-content: flex-end; gap: 2px; }
.icon-act { width: 30px; height: 30px; border: none; background: transparent; border-radius: 50%; cursor: pointer; color: var(--muted); font-size: 15px; }
.icon-act:hover { background: #dadce0; }
.icon-act.on { color: #f9ab00; }

/* 圖示檢視 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; background: #fff; display: flex; flex-direction: column; position: relative; }
.card:hover { box-shadow: 0 1px 4px rgba(60,64,67,.3); background: #fafbfc; }
.card .preview { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 54px; position: relative; overflow: hidden; }
.card .preview .snippet { position: absolute; inset: 10px 12px 0; font-size: 10.5px; line-height: 1.5; color: #5f6368; overflow: hidden; text-align: left; background: #fff; padding: 8px; border-radius: 4px 4px 0 0; box-shadow: 0 0 0 1px #eceef2; }
.card .preview .snippet.hasicon { opacity: 0.0; }
.card.folder { flex-direction: row; align-items: center; height: 56px; padding: 0 12px; gap: 10px; background: #f8f9fa; }
.card.folder .ico { font-size: 24px; }
.card .meta { padding: 8px 12px 10px; display: flex; align-items: center; gap: 8px; border-top: 1px solid #f1f3f4; }
.card .meta .ico { font-size: 16px; }
.card .meta .t { flex: 1; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .more { position: absolute; top: 6px; right: 6px; background: rgba(255,255,255,.9); }
.card.folder .t { flex: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-doc .preview { background: #e8f0fe; } .k-sheet .preview { background: #e6f4ea; } .k-slides .preview { background: #fef7e0; }

/* 上傳：拖檔案進來時的提示框、圖片縮圖 */
.drive-main.drop { outline: 3px dashed var(--accent); outline-offset: -8px; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.card .preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 開啟 PDF 的選擇（兩行的選項按鈕、記住我的選擇） */
.dialog-body .choice-intro { margin: 0 0 12px; }
.dialog-body .choice.two-line { height: auto; padding: 9px 12px; line-height: 1.4; }
.dialog-body .choice.two-line b { display: block; font-weight: 600; }
.dialog-body .choice.two-line small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.dialog-body .remember { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
