.ad-page { max-width:760px; margin:auto; padding:30px; border-radius:16px; }
.ad-heading,.ad-management-card { display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.ad-heading { margin-bottom:24px; }
.ad-heading h2 { margin:10px 0; }
.ad-fields { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.ad-fields .field { min-width:0; }
.ad-fields label { display:block; margin-bottom:8px; }
.ad-fields input { width:100%; border-radius:8px; padding:12px; }
.ad-fields .hint { display:block; line-height:1.5; margin-top:8px; }
.ad-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:24px; }
.ad-overlay { position:fixed; inset:0; z-index:10500; background:rgba(11,29,39,.62); padding:25px; display:flex; align-items:center; justify-content:center; }
.ad-dialog { background:var(--card,#fff); color:var(--text,#15283e); border-radius:20px; width:min(720px,100%); padding:32px; max-height:calc(100dvh - 50px); overflow:auto; box-shadow:0 15px 70px #0003; }
.ad-dialog h2 { font-size:28px; margin:12px 0 20px; }
.ad-dialog p { line-height:1.6; }
.ad-help,.ad-help-notice { background:#edf5f0; color:#234d3e; padding:18px; border-radius:12px; margin-top:22px; line-height:1.6; }
.ad-help h3 { margin-top:0; font-size:17px; }
.ad-help ul { padding-left:20px; }
.ad-help li { margin:10px 0; }
.ad-help p { margin-bottom:0; }
.ad-feedback { background:#fff1ee; color:#832f1c; border:1px solid #e2b4a9; padding:12px; border-radius:9px; }
.ad-feedback[hidden] { display:none; }
.ad-queue { margin:0 0 22px; background:var(--card,#fff); padding:18px 22px; border:1px solid #d4e3de; border-radius:13px; }
.ad-queue summary { cursor:pointer; font-weight:600; font-size:14px; }
.ad-queue>div { display:grid; grid-template-columns:1fr 1fr; gap:9px; max-height:300px; overflow:auto; }
.ad-queue-person { text-align:left; display:flex; align-items:center; justify-content:space-between; gap:12px; background:transparent; color:inherit; border:1px solid #d4e3de; border-radius:9px; padding:12px; cursor:pointer; font-size:12px; }
.ad-queue-person small { display:block; margin-top:5px; }
.ad-management-card { margin-bottom:22px; padding-bottom:18px; border-bottom:1px solid #d4e3de; }
.ad-unknown-check { display:flex; align-items:center; gap:10px; font-size:13px; }
.ad-unknown-check input { width:18px; height:18px; }
[data-theme="dark"] .ad-dialog,[data-theme="dark"] .ad-queue { background:#182b3b; color:#e5edf3; }
[data-theme="dark"] .ad-help,[data-theme="dark"] .ad-help-notice { background:#1f4034; color:#e5eee9; }
@media(max-width:650px) { .ad-fields,.ad-queue>div { grid-template-columns:1fr; } .ad-overlay { padding:12px; } .ad-dialog { padding:22px; max-height:calc(100dvh - 24px); } .ad-page { padding:22px; } .ad-actions .btn { width:100%; } }
