/* AITBELLA Drive v12 — security + link options layout refinement */
#app.card{
  max-width:980px!important;
  width:min(980px,calc(100% - 28px))!important;
}
.upload-workspace-v8{
  gap:16px!important;
}
.security-options-row-v12{
  display:grid!important;
  grid-template-columns:minmax(0,.95fr) minmax(340px,1.05fr)!important;
  gap:14px!important;
  align-items:stretch!important;
}
.security-options-row-v12 .upload-section-v8{
  margin:0!important;
  height:100%!important;
}
.security-options-row-v12 .upload-guard-card,
.security-options-row-v12 .advanced-options.link-options-below-upload{
  height:calc(100% - 54px)!important;
  min-height:0!important;
}
.security-options-row-v12 .upload-guard-card{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  gap:12px!important;
}
.terms-under-turnstile-v12{
  display:grid!important;
  gap:10px!important;
  margin-top:4px!important;
}
.terms-under-turnstile-v12 .upload-terms-row-v8{
  margin-top:0!important;
  align-items:flex-start!important;
}
.terms-under-turnstile-v12 .upload-terms-row-v8 input{
  width:auto!important;
  min-width:16px!important;
  margin-top:2px!important;
}
.link-options-column-v12 .link-options-below-upload{
  position:relative!important;
  top:auto!important;
}
.link-options-column-v12 .compact-options-two{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
}
.more-options-section-v12 .more-options-grid-v8{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
}
.more-options-section-v12 .side-details{
  height:100%!important;
}
#app.upload-result-active .security-options-row-v12,
#app.upload-result-active .more-options-section-v12{
  display:none!important;
}
html[data-drive-theme="dark"] .security-options-row-v12 .upload-guard-card,
html[data-drive-theme="dark"] .security-options-row-v12 .advanced-options.link-options-below-upload,
html[data-drive-theme="dark"] .more-options-section-v12 .advanced-options{
  background:linear-gradient(180deg,rgba(19,34,56,.96),rgba(12,26,46,.96))!important;
  border-color:rgba(176,211,239,.20)!important;
  color:#eef7ff!important;
  box-shadow:0 18px 42px rgba(0,0,0,.20)!important;
}
html[data-drive-theme="dark"] .security-options-row-v12 summary,
html[data-drive-theme="dark"] .security-options-row-v12 label,
html[data-drive-theme="dark"] .more-options-section-v12 summary,
html[data-drive-theme="dark"] .more-options-section-v12 label{
  color:#eef7ff!important;
}
html[data-drive-theme="dark"] .terms-under-turnstile-v12 .legal-note{
  background:rgba(7,18,34,.55)!important;
  border-color:rgba(176,211,239,.16)!important;
  color:#b9cbe2!important;
}
html[data-drive-theme="dark"] .link-options-column-v12 input,
html[data-drive-theme="dark"] .link-options-column-v12 select,
html[data-drive-theme="dark"] .more-options-section-v12 input,
html[data-drive-theme="dark"] .more-options-section-v12 textarea{
  background:rgba(7,18,34,.72)!important;
  border-color:rgba(176,211,239,.18)!important;
  color:#eef7ff!important;
}
@media(max-width:900px){
  .security-options-row-v12{grid-template-columns:1fr!important;}
  .security-options-row-v12 .upload-guard-card,
  .security-options-row-v12 .advanced-options.link-options-below-upload{height:auto!important;}
  .more-options-section-v12 .more-options-grid-v8{grid-template-columns:1fr!important;}
}
@media(max-width:620px){
  .link-options-column-v12 .compact-options-two{grid-template-columns:1fr!important;}
}
