/* LIBRAVIUM 4.1 · Cloud Bridge */
.drive-hero{background:linear-gradient(140deg,#14233d,#243551 65%,#27374f);border:1px solid rgba(212,177,113,.23)}
.drive-hero h1{margin:.25rem 0 .65rem;font-size:clamp(1.6rem,3vw,2.35rem)}
.drive-hero .eyebrow{color:#d7b87d}.drive-hero p{max-width:68ch}
.drive-status{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;margin-top:1.25rem}
.drive-status form{margin:0}.drive-status .drive-dot{width:10px;height:10px;border-radius:50%;background:#9ca3af;box-shadow:0 0 0 5px rgba(148,163,184,.12)}
.drive-status .drive-dot.connected{background:#63dab1;box-shadow:0 0 0 5px rgba(99,218,177,.14)}
.drive-fields{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.drive-add input,.drive-add select,.drive-admin input{max-width:100%;width:100%}
.drive-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:1rem;margin-top:1.1rem}
.drive-card{display:flex;gap:1rem;padding:1rem;border-radius:16px;background:rgba(127,142,161,.07);border:1px solid rgba(161,177,195,.18)}
.drive-card-icon{width:54px;height:68px;border-radius:8px;background:linear-gradient(155deg,#d9ba7e,#8f7047);display:grid;place-items:center;font-size:1.8rem;color:#15253b;flex:none}
.drive-card-body{min-width:0;flex:1}.drive-card-body h3{margin:0 0 .3rem;line-height:1.3;overflow-wrap:anywhere}
.drive-card-body p{margin:0 0 .85rem;font-size:.86rem;color:var(--muted,#9ca7bc)}
.drive-card-actions{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center}.drive-card-actions form{display:inline-flex;gap:.4rem;align-items:center;margin:0}
.drive-card-actions select{max-width:150px}.drive-cloud-label{font-size:.77rem;opacity:.82}
.drive-preview-wrap{border:1px solid rgba(192,200,220,.25);border-radius:16px;overflow:hidden;background:#1b2637;min-height:560px}
.drive-preview-wrap iframe{display:block;width:100%;height:min(78vh,950px);min-height:540px;border:0;background:#f6f5f2}
.drive-preview-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem}.drive-library-callout{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.drive-library-callout p{margin:.3rem 0 0}
@media(max-width:650px){.drive-fields{grid-template-columns:1fr}.drive-card{padding:.85rem}.drive-preview-wrap iframe{height:70vh;min-height:470px}.drive-preview-wrap{min-height:470px}}
@media(prefers-reduced-motion:reduce){.drive-card,.drive-card *{animation:none!important;transition:none!important}}
/* Foreground contrast over the dark Cloud Bridge hero (independent of global theme). */
.drive-hero h1,.drive-hero h2,.drive-hero p:not(.eyebrow),.drive-hero .drive-status strong{color:#f2f5fa}
.drive-hero .muted{color:#d5deec}
.drive-hero .drive-status .secondary{background:#f5f7fb;color:#182943}
/* 4.1.1 · anteprima Drive a schermo intero */
.drive-preview-wrap:fullscreen{border:0;border-radius:0;width:100vw;height:100vh}
.drive-preview-wrap:fullscreen iframe{height:100vh;min-height:0}
.drive-preview-wrap:-webkit-full-screen{border:0;border-radius:0;width:100vw;height:100vh}
.drive-preview-wrap:-webkit-full-screen iframe{height:100vh;min-height:0}
.drive-preview-wrap.is-maximized{position:fixed;inset:0;z-index:1000;border-radius:0;min-height:0}
.drive-preview-wrap.is-maximized iframe{height:100dvh;min-height:0}
