/* Every dropdown on the site: rounded, translucent box and a rounded, translucent glass menu.
   Uses the customizable <select> (appearance: base-select). Browsers without it keep their native menu
   but still get the rounded translucent box. */
html body select{
  border-radius:12px!important;
  background-color:rgba(255,255,255,.05)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  color:#eef1f7!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
  transition:border-color .15s,background-color .15s,box-shadow .15s;
}
html body select:hover{background-color:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.26)!important}
html body select:focus,html body select:focus-visible,html body select:open{outline:none!important;border-color:rgba(167,139,250,.7)!important;box-shadow:0 0 0 3px rgba(167,139,250,.18)!important}
html body select option{background-color:#1b1e2a;color:#eef1f7}

@supports (appearance:base-select){
  html body select,html body select::picker(select){appearance:base-select}
  html body select{display:inline-flex;align-items:center;gap:8px;cursor:pointer;background-image:none!important}
  html body select::picker-icon{content:'';width:16px;height:16px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;color:rgba(238,241,247,.65);margin-left:auto;transition:transform .2s}
  html body select:open::picker-icon{transform:rotate(180deg)}
  html body select::picker(select){
    margin-top:6px;padding:6px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.16);
    background:linear-gradient(160deg,rgba(40,44,62,.78),rgba(22,24,34,.82));
    backdrop-filter:blur(18px) saturate(1.3);-webkit-backdrop-filter:blur(18px) saturate(1.3);
    box-shadow:0 18px 40px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.06);
    color:#eef1f7;
    opacity:1;transform:translateY(0);
    transition:opacity .14s,transform .14s,overlay .14s allow-discrete,display .14s allow-discrete;
  }
  @starting-style{html body select:open::picker(select){opacity:0;transform:translateY(-4px)}}
  html body select option{
    background:transparent!important;color:#e6e9f2!important;
    padding:9px 12px;border-radius:9px;margin:1px 0;
    font-weight:600;cursor:pointer;
    transition:background .12s;
  }
  html body select option:hover,html body select option:focus-visible{background:rgba(255,255,255,.08)!important;outline:none}
  html body select option:checked{background:rgba(167,139,250,.2)!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(167,139,250,.35)}
  html body select option::checkmark{color:#c4b5fd;order:1;margin-left:auto}
  html body select option:disabled{opacity:.45;cursor:default}
  html body select optgroup{font-size:12px;color:rgba(238,241,247,.55);padding:6px 8px 2px}
}

/* Light theme */
html[data-theme="light"] body select{background-color:rgba(255,255,255,.6)!important;border-color:rgba(20,28,45,.16)!important;color:#1f2430!important}
html[data-theme="light"] body select:hover{background-color:rgba(255,255,255,.85)!important;border-color:rgba(20,28,45,.26)!important}
html[data-theme="light"] body select option{background-color:#fff;color:#1f2430}
@supports (appearance:base-select){
  html[data-theme="light"] body select::picker-icon{color:rgba(31,36,48,.6)}
  html[data-theme="light"] body select::picker(select){background:linear-gradient(160deg,rgba(255,255,255,.82),rgba(240,242,248,.86));border-color:rgba(20,28,45,.12);color:#1f2430;box-shadow:0 18px 40px rgba(20,28,45,.18)}
  html[data-theme="light"] body select option{color:#1f2430!important}
  html[data-theme="light"] body select option:hover{background:rgba(20,28,45,.06)!important}
  html[data-theme="light"] body select option:checked{background:rgba(124,108,246,.14)!important;color:#1f2430!important}
  html[data-theme="light"] body select option::checkmark{color:#6d5ce8}
}
@media (prefers-reduced-motion:reduce){html body select,html body select::picker(select),html body select::picker-icon{transition:none!important}}

/* Confirm pop-up (delete prompts): glass panel, gradient, translucent outline */
#confirmModal{background:rgba(4,5,8,.6)!important;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
#confirmModal .confirm-dialog{width:min(400px,calc(100vw - 32px))!important;padding:24px!important;border-radius:20px!important;background:radial-gradient(120% 100% at 0% 0%,rgba(248,113,113,.14),transparent 55%),linear-gradient(160deg,rgba(36,38,52,.94),rgba(16,17,24,.96))!important;border:1px solid rgba(255,255,255,.14)!important;box-shadow:0 28px 64px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.07)!important;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
#confirmModal #confirmTitle{margin:0 0 6px!important;font-size:20px!important;font-weight:800;color:#fff!important}
#confirmModal #confirmMessage{margin:0 0 4px;color:#aab0c0;font-size:14px;line-height:1.5}
#confirmModal #confirmMessage:empty{display:none}
#confirmModal .dialog-actions{display:flex!important;gap:10px!important;margin-top:18px!important}
#confirmModal .dialog-actions button{flex:1;height:46px;min-height:46px!important;border-radius:14px!important;font-size:15px!important;font-weight:800!important;box-shadow:none!important}
#confirmModal .dialog-actions .ghost{background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.14)!important;color:#e7e9f0!important}
#confirmModal .dialog-actions .ghost:hover{background:rgba(255,255,255,.11)!important}
#confirmModal .dialog-actions .danger{background:linear-gradient(115deg,#ef4444,#e11d48)!important;border:1px solid rgba(255,255,255,.2)!important;color:#fff!important}
#confirmModal .dialog-actions .danger:hover{filter:brightness(1.08)}
html[data-theme="light"] #confirmModal .confirm-dialog{background:radial-gradient(120% 100% at 0% 0%,rgba(248,113,113,.14),transparent 55%),linear-gradient(160deg,rgba(255,255,255,.96),rgba(244,245,249,.97))!important;border-color:rgba(20,28,45,.12)!important}
html[data-theme="light"] #confirmModal #confirmTitle{color:#141822!important}
html[data-theme="light"] #confirmModal .dialog-actions .ghost{background:rgba(20,28,45,.05)!important;border-color:rgba(20,28,45,.14)!important;color:#1f2430!important}
