.files-page{color:var(--ui-ink)}.files-heading{align-items:baseline;gap:16px;margin-bottom:20px;display:flex}.files-heading h1{letter-spacing:-.03em;font-size:26px;font-weight:650}.files-heading>span,.files-footer{color:var(--ui-muted);font-size:12px}.files-workspace{min-height:calc(var(--workspace-height) - 180px);grid-template-columns:230px minmax(0,1fr);gap:24px;display:grid}.files-sidebar h2{color:var(--ui-muted);padding:12px;font-size:12px;font-weight:600}.files-sidebar ul{list-style:none}.files-sidebar{--files-location-height:48px}.files-sidebar button{width:100%;min-height:var(--files-location-height);text-align:left;border-radius:24px;align-items:center;gap:10px;padding:0 12px;display:flex}.files-sidebar button span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.files-sidebar button svg{flex-shrink:0}.files-sidebar button[aria-current=true]{color:#174a80;background:#dceafa;font-weight:600}.files-sidebar button:hover{background:#e7edf5}.files-main{border:1px solid var(--ui-border);border-radius:var(--ui-panel-radius);background:#fff;flex-direction:column;min-width:0;padding:24px;display:flex}.files-location{justify-content:space-between;align-items:center;gap:12px;min-height:40px;margin-bottom:24px;display:flex}.files-location h2{overflow-wrap:anywhere;align-items:center;gap:10px;min-width:0;font-size:20px;font-weight:600;display:flex}.files-location h2 svg{flex-shrink:0}.files-location a{white-space:nowrap;min-height:40px;color:var(--ui-accent);align-items:center;gap:8px;font-size:13px;display:inline-flex}.files-toolbar{border-bottom:1px solid var(--ui-border);flex-wrap:wrap;align-items:center;gap:8px;padding-bottom:18px;display:flex}.files-search{background:#f2f5f8;border-radius:24px;flex:1;align-items:center;gap:8px;min-width:150px;padding:10px 14px;display:flex}.files-search input{outline-offset:4px;background:0 0;width:100%;min-width:0}.files-toolbar select{border:1px solid var(--ui-border);background:#fff;border-radius:8px;padding:9px}.files-toolbar button{border-radius:8px;place-items:center;width:38px;height:40px;display:grid}.files-toolbar button:hover,.files-toolbar button[aria-pressed=true]{background:#eaf2fc}.files-empty{text-align:center;color:var(--ui-muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:12px;padding:64px 12px;display:flex}.files-empty h2{color:var(--ui-ink);font-size:20px;font-weight:600}.files-empty>svg{color:#7a9dbd}.files-empty button{color:var(--ui-accent);min-height:44px}.files-results{--files-file-row-size:78px;min-block-size:calc(3 * var(--files-file-row-size));flex-direction:column;flex:1;display:flex}.files-locations-empty{min-block-size:calc(3 * var(--files-location-height));color:var(--ui-muted);align-content:center;padding:0 12px;display:grid}.files-sidebar .files-locations-error{min-block-size:calc(3 * var(--files-location-height));align-content:center;padding:8px 12px}.files-sidebar .files-locations-error button{width:auto;min-height:36px}.files-results .files-results-error{padding-block:16px}.files-location-skeleton{--skeleton-row-height:var(--files-location-height)}.files-location-skeleton .ui-list-skeleton-row{gap:10px}.files-location-skeleton .ui-list-skeleton-short{display:none}.files-location-skeleton .ui-list-skeleton-leading{flex-basis:20px;height:20px}.files-list-skeleton{--skeleton-row-height:var(--files-file-row-size)}.files-list-skeleton .ui-list-skeleton-row{border-bottom:1px solid var(--ui-border)}.files-location-placeholder{justify-content:space-between;align-items:center;width:100%;display:flex}.files-location-placeholder>span:first-child{width:min(45%,220px);height:20px}.files-location-placeholder>span:last-child{width:78px;height:16px}.files-toolbar[data-loading]>*{background:var(--ui-inset);border-radius:8px}.files-toolbar[data-loading]>*>*{visibility:hidden}.files-items{list-style:none}.files-items .chat-message-attachment{border:0;border-bottom:1px solid var(--ui-border);min-height:var(--files-file-row-size);background:#fff;border-radius:0;margin:0}.files-items .chat-message-attachment:hover{background:#f8fafc}.files-items .chat-message-attachment-actions button:hover{background:#e9eff7}.files-items .chat-error{color:var(--ui-danger);flex-basis:100%}.files-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px;padding-top:18px;display:grid}.files-grid .chat-message-attachment{border:1px solid var(--ui-border);border-radius:12px;flex-wrap:wrap;align-content:start;padding:16px;display:flex}.files-grid .file-type-icon{width:100%;height:100px}.files-grid .chat-message-attachment>div:first-of-type{flex-basis:100%}.files-grid .ui-list-skeleton-row{border:1px solid var(--ui-border);border-radius:12px;flex-wrap:wrap;align-content:start;padding:16px}.files-grid .ui-list-skeleton-leading{flex-basis:100%;height:100px}.files-grid .ui-list-skeleton-lines{flex-basis:100%;align-content:center;min-height:40px}.files-footer{justify-content:space-between;align-items:center;gap:12px;min-height:50px;padding-top:16px;display:flex}.files-footer button{color:var(--ui-accent);min-height:40px}@media (width<=800px){.files-workspace{grid-template-columns:minmax(0,1fr);gap:12px}.files-sidebar ul{gap:8px;display:flex;overflow-x:auto}.files-sidebar li{flex-shrink:0;min-width:150px;max-width:220px}.files-sidebar h2{padding-top:0}.files-main{padding:16px}}@media (width<=480px){.files-heading{margin-bottom:12px}.files-heading>span{font-size:11px}.files-location h2{font-size:17px}.files-location a span{display:none}.files-search{flex-basis:100%}.files-toolbar :is(button,select){min-height:44px}.files-items .chat-message-attachment{gap:8px;padding-inline:0}.files-items .file-type-icon{width:34px}.files-grid{grid-template-columns:minmax(0,1fr)}.files-grid .file-type-icon{width:100%}.files-grid .chat-message-attachment{padding-inline:12px}}@media (width<=800px){.files-workspace{grid-template-rows:auto 1fr}.files-sidebar{--files-location-width:168px}.files-locations-empty{min-block-size:var(--files-location-height)}.files-sidebar .files-locations-error{min-block-size:var(--files-location-height);text-align:start;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding-block:1px}.files-sidebar li{flex-basis:var(--files-location-width)}.files-location-skeleton{gap:8px;display:flex;overflow:hidden}.files-location-skeleton .ui-list-skeleton-row{flex:0 0 var(--files-location-width)}}@media (pointer:coarse){.files-sidebar .files-locations-error button{min-height:44px}}@media (width<=480px){.files-location-placeholder>span:last-child{width:18px}.files-list-skeleton .ui-list-skeleton-row{padding-inline:0}}.files-compact-toolbar{flex-direction:column;flex-shrink:0;gap:8px;padding-bottom:12px;display:flex}.files-compact-search{background:var(--ui-inset);border:1px solid var(--ui-border);min-height:40px;color:var(--ui-muted);border-radius:10px;align-items:center;gap:8px;padding:0 10px;display:flex}.files-compact-search svg{flex-shrink:0}.chat-page .chat-files-panel .files-compact-search input[type=search]{color:var(--ui-ink);background:0 0;border:0;border-radius:0;padding:9px 0;font-size:13px}.files-compact-search:focus-within{outline:2px solid var(--ui-accent);outline-offset:2px}.chat-page .chat-files-panel .files-compact-search input:focus-visible{outline:none}.files-compact-search input::placeholder{color:var(--ui-muted)}.files-compact-filters{align-items:center;gap:8px;display:flex}.files-compact-filters select{border:1px solid var(--ui-border);background:var(--ui-surface);min-width:0;min-height:36px;color:var(--ui-ink);border-radius:8px;flex:1;padding:6px 8px;font-size:12px}.chat-page .files-compact-filters button{width:36px;min-width:36px;height:36px;color:var(--ui-muted);place-items:center;padding:0;display:grid}.chat-files-panel .files-results{--files-file-row-size:64px;min-block-size:calc(3 * var(--files-file-row-size) + 8px)}.chat-files-panel .files-empty{gap:8px;padding:28px 12px}.chat-files-panel .files-empty>svg{color:var(--ui-muted)}.chat-files-panel .files-empty h3{color:var(--ui-ink);font-size:14px;font-weight:600}.chat-files-panel .files-empty p{font-size:12px;line-height:1.5}.chat-files-panel .files-footer{justify-content:center;min-height:40px;padding-top:8px}.chat-files-panel .files-items .chat-message-attachment{background:0 0;gap:8px;min-height:64px;padding:10px 0}.chat-files-panel .files-items .chat-message-attachment:hover{background:var(--ui-inset)}.files-compact-loading{padding:4px 0}.files-compact-skeleton{border-bottom:1px solid var(--ui-border);align-items:center;gap:10px;min-height:64px;display:flex}.files-compact-skeleton>span{background:var(--ui-inset);border-radius:6px;width:32px;height:36px}.files-compact-skeleton>div{flex-direction:column;flex:1;gap:8px;display:flex}.files-compact-skeleton>div>span{background:var(--ui-inset);border-radius:4px;width:70%;height:10px}.files-compact-skeleton>div>span:last-child{width:35%;height:8px}@media (width<=640px){.files-compact-search,.files-compact-filters select{min-height:44px}.chat-page .files-compact-filters button{width:44px;min-width:44px;height:44px}}
