/* Scoped extension of the existing light / indigo DEVESSA Files theme. */
:root{--df-accent:#4b0082;--df-ink:#2b2436;--df-muted:#6a5c7a;--df-line:#e8e2ed;--df-soft:#f6f3f9;--df-success:#236047}
.df-settings,.df-status,.df-steps,.df-review{font-family:'Prompt',-apple-system,sans-serif;color:var(--df-ink);box-sizing:border-box}
.df-settings *,.df-status *,.df-steps *,.df-review *{box-sizing:border-box}
.df-settings{margin:24px auto 32px;padding:32px;background:#fff;border:1px solid var(--df-line);border-radius:20px;max-width:1120px}
.df-eyebrow{font-size:11px;letter-spacing:.16em;color:var(--df-accent);font-weight:600}
.df-settings h2{font-size:clamp(22px,2.8vw,30px);line-height:1.5;letter-spacing:-.02em;margin:8px 0;color:var(--df-ink)}
.df-settings h3,.df-review h3{font-size:16px;margin:0 0 12px;color:var(--df-ink)}
.df-settings p{line-height:1.7;margin:8px 0;color:var(--df-muted)}
.df-subtitle{font-size:14px}
.df-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin:32px 0;border-top:1px solid var(--df-line);border-bottom:1px solid var(--df-line);padding:24px 0}
.df-storage-total{display:block;font-size:28px;letter-spacing:-.02em;font-weight:500;margin:12px 0}
.df-storage-meter{height:8px;border-radius:12px;background:var(--df-soft);overflow:hidden;margin:12px 0}
.df-storage-meter span{height:100%;background:var(--df-accent);display:block;border-radius:12px}
.df-caption,.df-settings .df-caption{display:block;font-size:12px;line-height:1.7;color:var(--df-muted);margin:8px 0}
.df-settings small{color:var(--df-muted);font-size:11px}
.df-setting-line{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.df-setting-line h3{margin:0}
.df-button{font:inherit;font-size:13px;line-height:1.5;min-height:44px;padding:10px 16px;border:1px solid var(--df-line);border-radius:10px;background:#fff;color:var(--df-accent);cursor:pointer;white-space:normal;transition:background .15s ease}
.df-button:hover{background:var(--df-soft)}
.df-button:focus-visible,.card.floating button:focus-visible{outline:3px solid #b597ce;outline-offset:3px}
.df-toggle{min-width:68px;background:var(--df-soft);font-weight:500}
.df-toggle[aria-checked=true]{background:var(--df-accent);border-color:var(--df-accent);color:#fff}
.df-flow-row{display:flex;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid var(--df-line)}
.df-flow-row:last-child{border-bottom:0}
.df-flow-row>div{flex:1;min-width:0}
.df-flow-row strong{font-size:14px;font-weight:500}
.df-flow-row p{font-size:12px;margin:4px 0 0}
.df-flow-number{font-size:12px;color:var(--df-muted);font-variant-numeric:tabular-nums;align-self:flex-start;padding-top:4px}
.df-flow-row .df-button{min-width:64px}
.df-history{border-top:1px solid var(--df-line);margin-top:24px;padding-top:24px}
.df-history .df-button{margin-top:12px}
.df-steps{list-style:none!important;display:flex;gap:8px;padding:16px 24px!important;margin:0!important;border-top:1px solid var(--df-line);border-bottom:1px solid var(--df-line);background:#fcfbfd}
.df-steps li{display:flex;flex:1;align-items:center;gap:8px;color:var(--df-muted);font-size:12px;line-height:1.5;min-width:0}
.df-step-number{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:24px;height:24px;border:1px solid #d8cde3;border-radius:50%;font-size:11px}
.df-steps .df-current{font-weight:500;color:var(--df-accent)}
.df-current .df-step-number{background:var(--df-accent);color:#fff;border-color:var(--df-accent)}
.df-complete .df-step-number{background:#e7f3ed;color:var(--df-success);border-color:#c9e3d5}
.df-review{padding:24px}
.df-review p{font-size:13px!important;line-height:1.8!important;margin:12px 0 0!important}
.df-name{display:block;font-family:inherit;font-size:18px;overflow-wrap:anywhere;background:var(--df-soft);padding:12px 16px;border-radius:10px}
.df-danger-note,.card .df-danger-note{color:#900024!important;font-weight:500}
.df-delete-list{max-height:160px;overflow:auto;padding-left:20px;margin:12px 0}
.df-field-error,.card .df-field-error{color:#900024!important;font-size:13px}
.df-field-error:empty{display:none}
.card.floating[data-df-prompt] .card-action{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;padding:16px 24px}
.card.floating[data-df-prompt] .card-action button{min-height:44px;margin:0}
.card.floating[data-df-prompt] .card-action button:last-child{background:var(--df-accent)!important;color:#fff!important;border-radius:10px}
.card.floating[data-df-prompt=delete] .card-action button:last-child{background:#900024!important}
.card.floating[data-df-prompt] .df-back{margin-right:auto}
.card.floating [hidden],.df-status[hidden],.df-settings [hidden]{display:none!important}
.df-status{position:fixed;right:24px;bottom:24px;width:380px;max-width:calc(100vw - 32px);max-height:55vh;overflow:auto;background:#fff;border:1px solid var(--df-line);border-radius:16px;box-shadow:0 12px 48px #2b243626;z-index:1100;padding:16px;animation:df-arrive .18s ease-out}
.df-status-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}
.df-status-heading strong{font-size:14px;font-weight:500}
.df-dismiss{font-size:12px;min-height:36px;padding:6px 10px;border:0;color:var(--df-muted)}
.df-result{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--df-line)}
.df-result:last-child{border-bottom:0}
.df-result>div{flex:1;min-width:0}
.df-result strong{font-size:12px;line-height:1.7;font-weight:500;display:block}
.df-result-icon{display:flex;align-items:center;justify-content:center;background:var(--df-soft);width:28px;height:28px;border-radius:50%;flex-shrink:0;color:var(--df-accent)}
.df-done .df-result-icon{background:#e7f3ed;color:var(--df-success)}
.df-error .df-result-icon{background:#fbe9ed;color:#900024}
.df-file-name{display:block;font-family:inherit;font-size:12px;line-height:1.6;color:var(--df-muted);overflow-wrap:anywhere;margin-top:4px}
.df-result progress{width:100%;height:5px;accent-color:var(--df-accent);display:block;margin-top:8px}
@keyframes df-arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:736px){.df-settings{margin:16px 12px 24px;padding:24px 16px;border-radius:16px}.df-settings-grid{grid-template-columns:1fr;gap:24px;margin:24px 0}.df-feedback{border-top:1px solid var(--df-line);padding-top:24px}.df-steps{padding:16px!important;gap:4px}.df-steps li{font-size:11px;gap:4px;flex-direction:column;text-align:center}.df-review{padding:20px 16px}.df-flow-row{gap:12px}.df-status{right:16px;bottom:max(16px,env(safe-area-inset-bottom));max-height:40vh}.card.floating[data-df-prompt] .card-action{padding:16px}.df-settings h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){.df-status{animation:none}.df-button{transition:none}}
