.drawer-backdrop,.modal-backdrop {
  position:fixed;
  inset:0;
  z-index:70;
  background:rgba(0,0,0,.68);
  backdrop-filter:blur(4px)
}
.detail-drawer {
  position:fixed;
  z-index:80;
  left:50%;
  bottom:0;
  width:min(100%,720px);
  max-height:92dvh;
  transform:translate(-50%,105%);
  transition:transform .3s cubic-bezier(.22,.8,.22,1);
  border-radius:28px 28px 0 0;
  border:1px solid var(--line);
  border-bottom:0;
  background:linear-gradient(160deg,#12130f,#050605 64%);
  box-shadow:0 -28px 90px rgba(0,0,0,.7);
  padding:8px 16px calc(24px + var(--safe-bottom));
  overflow:auto
}
.detail-drawer.open {
  transform:translate(-50%,0)
}
.drawer-handle {
  width:46px;
  height:4px;
  margin:2px auto 13px;
  border-radius:999px;
  background:rgba(255,255,255,.18)
}
.detail-drawer>header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-bottom:14px;
  border-bottom:1px solid var(--line-soft)
}
.detail-drawer h2 {
  margin:0;
  font-size:21px
}
.drawer-content {
  padding-top:15px
}
.detail-section {
  padding:14px;
  border-radius:18px;
  border:1px solid var(--line-soft);
  background:rgba(255,255,255,.025);
  margin-bottom:10px
}
.detail-section h3 {
  margin:0 0 10px;
  font-size:11px;
  color:var(--gold)
}
.detail-row {
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:7px 0;
  font-size:10px;
  border-bottom:1px solid rgba(255,255,255,.05)
}
.detail-row:last-child {
  border-bottom:0
}
.detail-row span:first-child {
  color:var(--muted)
}
.detail-row span:last-child {
  text-align:right
}
.detail-actions {
  display:grid;
  gap:8px;
  margin-top:14px
}
.detail-actions .action-button {
  min-height:48px;
  width:100%;
  font-size:10px
}
.modal-backdrop {
  display:grid;
  place-items:end center;
  padding:16px
}
.modal {
  width:min(100%,430px);
  max-height:85dvh;
  padding:19px;
  border-radius:24px;
  border:1px solid var(--line);
  background:linear-gradient(145deg,#151511,#070807);
  box-shadow:var(--shadow);
  overflow:auto
}
.modal>header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.modal h2 {
  margin:0;
  font-size:17px
}
.modal label {
  display:grid;
  gap:6px;
  margin-top:13px;
  color:var(--champagne);
  font-size:10px
}
.modal input,.modal textarea,.modal select {
  width:100%;
  border-radius:14px;
  border:1px solid var(--line-soft);
  background:rgba(255,255,255,.035);
  color:var(--text);
  padding:12px;
  outline:0
}
.modal textarea {
  min-height:90px;
  resize:vertical
}
.modal-actions {
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:16px
}
.toast-region {
  position:fixed;
  z-index:120;
  left:50%;
  bottom:calc(88px + var(--safe-bottom));
  transform:translateX(-50%);
  width:min(calc(100% - 28px),420px);
  display:grid;
  gap:8px;
  pointer-events:none
}
.toast {
  padding:12px 14px;
  border-radius:15px;
  border:1px solid var(--line);
  background:rgba(14,15,12,.96);
  box-shadow:0 16px 36px rgba(0,0,0,.45);
  font-size:10px;
  animation:toastIn .25s ease
}
.toast.error {
  border-color:rgba(255,142,142,.35);
  color:#ffd5d5
}
.toast.success {
  border-color:rgba(139,228,185,.32);
  color:#caffdf
}
@keyframes toastIn {
  from {
    opacity:0;
    transform:translateY(8px)
  }
  to {
    opacity:1;
    transform:none
  }
  
}
