.fh-tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap;position:sticky;top:var(--jd-heading-bottom,100px);z-index:8;background:#f6f7f9;padding:8px 0}.fh-tools input[type=search]{width:230px;min-width:140px}.fh-tools select{width:auto;max-width:180px}.fh-tools button,.fh-file{width:34px;height:34px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center}.fh-tools input,.fh-tools select{height:34px;padding:5px 8px}.fh-shared{display:flex;align-items:center;gap:5px;font-size:12px}.fh-shared input{width:15px;height:15px}.fh-total{font-size:12px;color:#7a8797;padding:5px}.fh-scroll{overflow:auto}.fh-table{width:100%;border-collapse:collapse;font-size:12px;min-width:780px;table-layout:fixed}.fh-table th,.fh-table td{padding:6px 8px;border-bottom:1px solid #e7ebef;vertical-align:middle;text-align:left;overflow-wrap:anywhere}.fh-table th{background:#f5f7fa;color:#748397;font-weight:500}.fh-table th:first-child{width:55px}.fh-table th:nth-child(2){width:26%}.fh-table th:nth-child(3){width:85px}.fh-table th:nth-child(5){width:82px}.fh-table th:nth-child(6){width:135px}.fh-links{display:flex;gap:4px 8px;flex-wrap:wrap}.fh-links .fh-link{background:transparent!important;padding:0!important;border:0!important;width:auto!important;height:auto!important;color:#2777b3;font-size:12px;text-align:left;white-space:normal}.fh-file{background:#eaf3ff;color:#287ac6;font-size:10px;text-decoration:none}.fh-paging{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px}.fh-size{white-space:nowrap}@media(max-width:600px){.fh-tools{top:90px}.fh-tools input[type=search]{width:100%}.fh-tools select{max-width:145px}.fh-table{min-width:700px}}

#app .fh-links .fh-link{color:#2777b3!important;font-weight:400!important;line-height:1.4!important;min-height:0!important;box-shadow:none!important}#app .fh-tools button{background:#eef2f7!important;color:#50647b!important;border:1px solid #e1e6ed!important}
/* Unified file folders and metadata tiles; contents open only on click. */
.fh-header{position:sticky;top:var(--jd-heading-bottom,100px);z-index:8;background:#f6f7f9}.fh-header .fh-tools{position:static}.fh-folders{display:flex;gap:4px;overflow-x:auto;padding:4px 0}.fh-folders button{flex:0 0 auto;display:flex;gap:6px;align-items:center;height:34px;border-radius:7px;padding:4px 10px;font-size:12px}.fh-folders button span{font-size:10px;opacity:.7}.fh-folders button.active,.fh-view button.active{color:#0878d8!important;background:#e3f0ff!important;border-color:#c6ddf6!important}.fh-view{display:flex;gap:4px;margin-left:auto}.fh-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px}.fh-tile{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:6px 8px;padding:12px;border:1px solid #e0e6ed;border-radius:10px;background:#fff;font-size:12px}.fh-tile>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.fh-tile .fh-links,.fh-tile>small,.fh-tile .fh-attention{grid-column:1/-1}.fh-tile>small{color:#7a8797}.fh-attention{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.fh-warning{color:#9c700c;background:#fff1cf;border-radius:5px;padding:3px 5px;font-size:11px}.fh-confirm{height:28px!important;min-height:28px!important;font-size:11px!important;padding:3px 6px!important;white-space:nowrap}.fh-table th:last-child{width:155px}.fh-table td{padding:3px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fh-table .fh-links{flex-wrap:nowrap;overflow:hidden}.fh-table .fh-links .fh-link{white-space:nowrap}.fh-table .fh-attention{flex-wrap:nowrap}.fh-table th{position:sticky;top:0}.fh-header .fh-tools{padding:4px 0}@media(max-width:600px){.fh-header{top:var(--jd-heading-bottom,90px)}.fh-tiles{grid-template-columns:repeat(auto-fill,minmax(155px,1fr))}.fh-header .fh-tools input[type=search]{width:100%}}

/* A single annotation owner prevents nested badges from disrupting tile columns. */
#app .fh-tile{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;padding:12px}
#app .fh-tile .fh-links{min-height:17px;flex-wrap:wrap}
#app .fh-document{display:flex;align-items:center;gap:10px;min-width:0;min-height:58px}
#app .fh-document .fh-file{flex:0 0 42px;width:42px;height:50px}
#app .fh-document strong{font-size:12px;line-height:1.4;overflow-wrap:anywhere;min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#app .fh-tile>small{font-size:11px;line-height:1.4}
#app .fh-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:auto;width:100%}
#app .fh-actions button{width:100%;min-width:0;min-height:34px;height:34px;margin:0;padding:5px 8px;font-size:12px;line-height:20px;border-radius:7px;box-sizing:border-box}
#app .fh-table .fh-actions{margin-top:5px}#app .fh-table th:last-child{width:180px}
#app .fh-tiles{grid-template-columns:repeat(auto-fill,minmax(min(210px,100%),1fr))}

/* Document canvas owns the tile; controls overlay without changing its dimensions. */
#app .fh-tile.fh-preview-tile{position:relative;display:block;padding:0;overflow:hidden;min-width:0;background:var(--surface,#fff);aspect-ratio:3/4}
#app .fh-preview-tile .fh-preview{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0;border:0;border-radius:0;margin:0;padding:0;background:var(--surface,#fff);color:var(--muted,#77818e);box-shadow:none;overflow:hidden}
#app .fh-preview-tile .fh-preview img,#app .fh-preview-tile .fh-preview canvas{display:block;width:100%;height:100%;object-fit:contain}
#app .fh-preview-tile .fh-tile-heading{position:absolute;left:8px;right:8px;top:8px;z-index:1;min-height:0;display:flex;gap:4px;pointer-events:none}
#app .fh-preview-tile .fh-tile-heading:empty{display:none}
#app .fh-preview-tile .fh-tile-heading>*{pointer-events:auto;background:rgba(255,255,255,.94)!important;border-radius:6px;padding:4px 7px!important;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 1px 5px #0001}
#app .fh-preview-tile .fh-actions{position:absolute;left:8px;right:8px;bottom:8px;z-index:1;width:auto;margin:0;gap:8px}
#app .fh-preview-tile .fh-actions button{background:rgba(245,247,250,.96)!important;color:#235c8b!important;border:1px solid #d4dfe9;box-shadow:0 1px 5px #0001;min-height:36px;height:36px}
