.dan-banner[hidden],html[data-dan-exam-enabled="false"] :is(.dan-banner,[data-dan-apply],[data-dan-mine],#dan-member-summary,.dan-dialog){display:none!important}
.dan-entry{display:block;width:100%;margin:10px 0;padding:14px 16px;border:1px solid #a78bfa;border-radius:14px;background:linear-gradient(125deg,#4338ca,#6d28d9);color:white;font:inherit;font-weight:800;line-height:1.5;cursor:pointer}
#profile-main-row>.dan-entry{grid-column:1/-1;min-width:0;min-height:48px;box-sizing:border-box;white-space:normal;word-break:keep-all;overflow-wrap:break-word}
.dan-entry:disabled,.dan-dialog button:disabled{background:#62646b;color:#e5e7eb;border-color:#777;cursor:not-allowed;opacity:.75}
.dan-banner{margin:0 0 12px;border:1px solid #a78bfa;border-radius:12px;padding:10px 12px;background:#211c38;color:#f4edff}
.dan-banner small{display:block;margin-bottom:6px;color:#d8caff}.dan-banner-row{display:flex;gap:10px;align-items:center}.dan-roster-trigger{overflow:hidden;flex:1;min-width:0;background:none;border:0;color:inherit;text-align:left;cursor:pointer}.dan-roster-track{display:inline-block;white-space:nowrap}.dan-roster-track.moving{animation:dan-flow 22s linear infinite}.dan-roster-trigger:hover .moving,.dan-roster-trigger:focus .moving{animation-play-state:paused}@keyframes dan-flow{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.dan-banner button:last-child{flex-shrink:0;border-radius:8px;padding:8px;border:1px solid #a78bfa;background:#45337d;color:white}
.dan-dialog{width:min(560px,94vw);max-width:94vw;max-height:90dvh;border:1px solid #756b9c;border-radius:18px;padding:0;background:#151321;color:#f8f6ff;box-shadow:0 20px 80px #0009;z-index:32000}
.dan-dialog::backdrop{background:#000b}.dan-shell{display:flex;flex-direction:column;max-height:90dvh}.dan-head,.dan-foot{flex-shrink:0;padding:14px 18px;display:flex;align-items:center;gap:10px;background:#211c33}.dan-head{justify-content:space-between}.dan-head h2{margin:0;font-size:18px}.dan-body{overflow:auto;overscroll-behavior:contain;padding:18px;min-height:0}.dan-foot{padding-bottom:max(14px,env(safe-area-inset-bottom));flex-wrap:wrap}
.dan-dialog button{font:inherit;cursor:pointer;min-height:44px;border-radius:10px;padding:9px 14px;border:1px solid #8b7fb2;background:#33284b;color:white}.dan-dialog .dan-primary{background:#6847bb;flex:1;font-weight:800}.dan-dialog img{width:100%;height:auto;display:block}.dan-dialog label{display:block;margin:12px 0;font-size:14px}.dan-dialog input:not([type=checkbox]),.dan-dialog select{box-sizing:border-box;width:100%;padding:12px;margin-top:6px;border:1px solid #817493;border-radius:8px;font:inherit;background:#fff;color:#171421}.dan-dialog input[type=checkbox]{width:20px;height:20px;vertical-align:middle;margin-right:8px}.dan-note{font-size:13px;line-height:1.7;color:#cec7de}.dan-state{padding:12px;border-radius:10px;background:#322748;line-height:1.6}.dan-error{color:#ffb9b9;white-space:pre-line}.dan-account{margin:18px 0;border:1px solid #6d608b;border-radius:12px;padding:14px;line-height:1.8}.dan-table{width:100%;border-collapse:collapse;font-size:14px}.dan-table th,.dan-table td{padding:10px 6px;text-align:left;border-bottom:1px solid #716784;overflow-wrap:anywhere}.dan-table th{width:35%;color:#d5cde5}.dan-list{display:grid;gap:10px}.dan-list>button{text-align:left;width:100%}.dan-filter{display:flex;gap:8px;flex-wrap:wrap}.dan-filter input{flex:1;min-width:100px}
@media(prefers-reduced-motion:reduce){.dan-roster-track.moving{animation:none}}
#profile-main-row.viewing-other [data-dan-apply],#profile-main-row.viewing-other [data-dan-mine]{display:none}
.dan-entry[hidden]{display:none}
.dan-dialog input:not([type=checkbox]),.dan-dialog select{min-width:0;max-width:100%;font-size:16px;min-height:48px}
.dan-dialog input[type=date]{display:block;appearance:none;-webkit-appearance:none}
.dan-dialog input[type=date]::-webkit-date-and-time-value{text-align:left;min-height:1.4em}
.dan-dialog .dan-table td{color:#f8f6ff;background:transparent}
.dan-dialog .dan-table th{color:#d5cde5;background:transparent}
#request-inbox-categories{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}
#request-inbox-search,#request-inbox-filter{padding:10px;margin:6px 4px;border:1px solid #cbd5e1;border-radius:8px;max-width:100%;box-sizing:border-box}
#request-inbox-dialog>h2{position:sticky;top:-20px;background:white;z-index:1;padding:10px 0}
#request-inbox-dialog[open]{display:flex;flex-direction:column;height:min(780px,90dvh);max-height:90dvh;box-sizing:border-box}
.request-inbox-toolbar{display:flex;align-items:center;gap:6px;flex-shrink:0}.request-inbox-toolbar h2{flex:1;font-size:20px;margin:6px 0}
#request-inbox-card{max-height:42vh;overflow:auto;flex-shrink:0}#request-inbox-list{min-height:0;overflow:auto;flex:1}
