/* Scoped to the optional cloud drive; uses the existing desk theme. */
.cd-section{margin:22px 0;border:1px solid var(--ws-line);border-radius:22px;background:var(--ws-panel);color:var(--ws-text);min-width:0;overflow:clip}.cd-section>summary{padding:20px 24px;min-height:64px;cursor:pointer;font-weight:700;display:flex;align-items:center;gap:12px;list-style:none}.cd-section>summary::-webkit-details-marker{display:none}.cd-section>summary::after{content:'＋';margin-inline-start:auto;font-size:22px;font-weight:400}.cd-section[open]>summary::after{content:'−'}.cd-cloud-mark{width:32px;height:32px;display:grid;place-items:center;color:var(--ws-accent);font-size:25px}.cd-shell{padding:0 24px 24px;min-width:0}.cd-heading,.cd-tools,.cd-meter-copy,.cd-actions{display:flex;align-items:center;gap:10px}.cd-heading{justify-content:space-between;align-items:flex-start;flex-wrap:wrap}.cd-heading>div:first-child{flex:1 1 280px}.cd-heading h2{margin:0 0 8px;font-size:24px}.cd-help,.cd-status,.cd-file-meta{font-size:13px;color:var(--ws-muted);line-height:1.7;margin:7px 0}.cd-actions{flex-wrap:wrap}.cd-section button{min-height:44px;white-space:normal}.cd-section .cd-primary{background:var(--ws-solid);color:#fff;border-color:var(--ws-solid)}.cd-section .cd-danger{color:#ffacae;border-color:#a34c58}.ws-page[data-fakkiha-theme=light] .cd-danger,[data-fakkiha-theme=light] .cd-section .cd-danger{color:#a12538;border-color:#d98996}.cd-meter{background:var(--ws-bg);padding:16px 18px;border:1px solid var(--ws-line);border-radius:16px;margin:20px 0}.cd-meter-copy{justify-content:space-between;flex-wrap:wrap;font-size:14px}.cd-meter-copy>span{direction:ltr;unicode-bidi:isolate;font-variant-numeric:tabular-nums}.cd-meter-track{height:8px;border-radius:8px;margin:14px 0 10px;background:var(--ws-line);overflow:hidden}.cd-meter-track>span{height:100%;display:block;background:var(--ws-accent);border-radius:inherit;max-width:100%;min-width:0}.cd-tools{flex-wrap:wrap;margin:18px 0}.cd-tools>label:first-child{display:grid;gap:4px;font-size:12px;flex:0 1 230px}.cd-tools select{width:100%}.cd-search{flex:1 1 250px}.cd-search input{width:100%;min-height:48px}.cd-status:empty,.cd-error:empty{display:none}.cd-error{padding:10px 12px;border:1px solid #a34c58;background:#8a28351a;color:#ffacae;border-radius:10px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}[data-fakkiha-theme=light] .cd-error{color:#a12538}.cd-cleanup{padding:12px 16px;border:1px solid var(--ws-line);border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:14px;margin:16px 0}.cd-cleanup p{margin:0;font-size:13px}.cd-files{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}.cd-file{border:1px solid var(--ws-line);border-radius:16px;padding:15px;min-width:0;background:var(--ws-bg)}.cd-section .cd-file-open{width:100%;border:0;background:transparent;padding:0;min-height:100px;display:flex;flex-direction:column;align-items:flex-start;gap:12px;text-align:start}.cd-file-icon{font:700 13px/1 Arial,sans-serif;display:grid;place-items:center;min-width:50px;min-height:48px;padding:10px;border:1px solid var(--ws-line);border-radius:12px;background:var(--ws-raised);color:var(--ws-accent)}.cd-file-name{font-size:15px;overflow-wrap:anywhere;word-break:break-word}.cd-file-meta{margin:12px 0}.cd-file-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.cd-section .cd-file-actions button{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;min-width:0;padding:7px}.cd-action-icon{font:500 20px/1 Arial,sans-serif;display:inline-flex;width:20px;height:20px;align-items:center;justify-content:center;flex:none}.cd-empty{padding:30px 12px;text-align:center;color:var(--ws-muted)}.cd-more{display:block;margin:20px auto 0;min-width:160px}.cd-queue:empty{display:none}.cd-queue{border:1px solid var(--ws-line);border-radius:16px;padding:14px;margin:16px 0}.cd-queue h3{font-size:15px;margin:0 0 10px}.cd-queue-row{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid var(--ws-line);padding:12px 0}.cd-queue-row>div{min-width:0}.cd-queue-row strong{overflow-wrap:anywhere;font-size:13px}.cd-queue-row button{flex:none}.cd-insights{border-top:1px solid var(--ws-line);margin-top:24px;padding-top:16px}.cd-insights>summary{cursor:pointer;min-height:44px;color:var(--ws-accent);font-weight:700}.cd-insights-body{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:14px}.cd-insight-group{min-width:0}.cd-insight-group h3{font-size:14px}.cd-insight-row p{font-size:12px;display:flex;justify-content:space-between;gap:12px}.cd-insight-row p>span{overflow-wrap:anywhere}.cd-insight-row strong{white-space:nowrap;direction:ltr}.cd-insight-bar{height:6px;display:block;background:var(--ws-line);border-radius:6px;overflow:hidden}.cd-insight-bar::after{content:'';height:100%;width:var(--cd-bar,0%);max-width:100%;display:block;background:var(--ws-accent)}.cd-section .cd-largest{width:100%;display:flex;justify-content:space-between;text-align:start;gap:12px;font-size:12px;margin:8px 0;overflow-wrap:anywhere}.cd-largest>span{white-space:nowrap;direction:ltr}.cd-dialog,.cd-viewer{background:var(--ws-panel);color:var(--ws-text);border:1px solid var(--ws-line);border-radius:20px;padding:24px;width:min(520px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);overflow:auto}.cd-dialog::backdrop,.cd-viewer::backdrop{background:#0009}.cd-dialog h2{font-size:21px;margin-top:0}.cd-dialog-name{font-weight:700;overflow-wrap:anywhere}.cd-dialog label{display:grid;gap:8px;margin:16px 0}.cd-dialog form>.cd-actions{justify-content:flex-end;margin-top:20px}.cd-viewer{width:min(1200px,calc(100vw - 24px));height:min(900px,calc(100dvh - 24px));padding:18px}.cd-viewer-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-bottom:12px;border-bottom:1px solid var(--ws-line)}.cd-viewer-top h2{flex:1 1 220px;min-width:0;font-size:17px;margin:0;overflow-wrap:anywhere}.cd-viewer-body{min-height:180px;text-align:center;margin-top:16px;overflow:auto}.cd-image-preview{max-width:100%;max-height:70dvh;object-fit:contain}.cd-text-preview{text-align:start;white-space:pre-wrap;overflow-wrap:anywhere;font:15px/1.9 Arial,sans-serif;padding:18px;background:var(--ws-bg);border-radius:12px;color:var(--ws-text);max-width:100%}.cd-pdf-preview{display:block;margin:auto;max-width:100%;height:auto;background:white}.cd-viewer-pager{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:16px}.cd-viewer-pager span{font-size:13px}.cd-section summary:focus-visible{outline:3px solid var(--ws-accent);outline-offset:-4px;border-radius:16px}.cd-section [hidden]{display:none!important}
@media(max-width:1100px){.cd-files{grid-template-columns:repeat(2,minmax(0,1fr))}.cd-insights-body{grid-template-columns:repeat(2,minmax(0,1fr))}.cd-insight-group:last-child{grid-column:1/-1}}@media(max-width:600px){.cd-section>summary{padding:16px}.cd-shell{padding:0 14px 18px}.cd-heading h2{font-size:21px}.cd-heading>.cd-actions{width:100%}.cd-heading>.cd-actions button{flex:1 1 90px;padding:8px}.cd-files{grid-template-columns:1fr}.cd-file-open{min-height:90px}.cd-file-actions{grid-template-columns:repeat(4,minmax(0,1fr))}.cd-section .cd-file-actions button{flex-direction:column;font-size:11px;gap:4px}.cd-tools>label:first-child{flex-basis:100%}.cd-tools>.cd-actions{width:100%}.cd-insights-body{grid-template-columns:1fr}.cd-insight-group:last-child{grid-column:auto}.cd-cleanup{align-items:flex-start;flex-direction:column}.cd-queue-row{flex-wrap:wrap}.cd-queue-row>div{flex:1 1 180px}.cd-dialog,.cd-viewer{padding:16px}.cd-viewer-top h2{flex-basis:100%}.cd-viewer-top button{flex:1}.cd-meter-copy{align-items:flex-start;flex-direction:column}}@media(prefers-reduced-motion:reduce){.cd-section *{scroll-behavior:auto;transition:none}}
