.header-auth-name[data-profile-open] { border: 0; background: transparent; padding: 8px 4px; font-family: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: #ffffff70; text-underline-offset: 5px; }
.header-auth-name[data-profile-open]:hover { text-decoration-color: currentColor; }
.header-auth-name[data-profile-open]:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 5px; }
.profile-dialog { box-sizing: border-box; position: fixed; inset: 88px 24px auto auto; margin: 0; width: 430px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 112px); overflow-y: auto; padding: 30px; border: 1px solid #e5edf1; border-radius: 24px; background: #fff; color: #203743; box-shadow: 0 20px 65px #102f4b33; font: inherit; text-align: left; }
.profile-dialog::backdrop { background: #102f4b40; }
.profile-dialog [hidden] { display: none !important; }
.profile-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f0f6f8; color: #37525e; font-size: 27px; cursor: pointer; }
.profile-close:hover { background: #e3eef3; }
.profile-dialog button:focus-visible { outline: 2px solid #0087b5; outline-offset: 3px; }
.profile-eyebrow { display: block; color: #0087b5; font-size: 11px; font-weight: 700; letter-spacing: .12em; margin-bottom: 8px; padding-right: 30px; }
.profile-dialog h2 { margin: 0 0 24px; font-size: 27px; line-height: 1.2; font-weight: 600; }
.profile-details { display: grid; gap: 18px; margin: 0; }
.profile-details dt { color: #6a7c86; font-size: 13px; margin-bottom: 5px; }
.profile-details dd { margin: 0; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.profile-badge { display: inline-block; padding: 5px 12px; border-radius: 20px; background: #fff3de; color: #856018; font-size: 13px; }
.profile-badge.is-approved { background: #e4f5e9; color: #267745; }
.profile-activity { margin-top: 26px; padding-top: 22px; border-top: 1px solid #e5edf1; }
.profile-activity h3 { margin: 0 0 14px; font-size: 16px; font-weight: 600; }
.profile-stats { display: grid; gap: 0; margin: 0; }
.profile-stats > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 0; border-bottom: 1px solid #e5edf1; }
.profile-stats > div:first-child { padding-top: 0; }
.profile-stats > div:last-child { padding-bottom: 0; border-bottom: 0; }
.profile-stats dd { flex: 0 0 auto; margin: 0; padding: 0; border: 0; border-radius: 0; color: var(--primary-color); background: transparent; font-size: 20px; font-weight: 500; line-height: 1.2; text-align: right; font-variant-numeric: tabular-nums; }
.profile-stats dt { min-width: 0; font-size: 15px; font-weight: 400; line-height: 1.4; color: #203743; }
.profile-message { font-size: 15px; line-height: 1.5; margin: 0; }
.profile-retry { margin-top: 16px; padding: 10px 20px; background: #0087b5; color: #fff; border: 0; border-radius: 24px; font: inherit; cursor: pointer; }
@media (max-width: 600px) { .profile-dialog { inset: 76px 16px auto 16px; width: auto; padding: 24px 20px; max-height: calc(100dvh - 92px); } }

.profile-admin-open { display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; margin-top:24px; padding:15px 18px; border:0; border-radius:15px; color:#fff; background:linear-gradient(115deg,#8747df,#435bea 65%,#287be9); box-shadow:0 6px 18px #654be52b; font-family:inherit; font-size:14px; font-weight:600; line-height:1.4; cursor:pointer; transition:filter .2s,transform .2s; }
.profile-admin-open:hover { filter:brightness(1.08); transform:translateY(-1px); }
.admin-tools-dialog { box-sizing:border-box; position:fixed; inset:0; margin:auto; width:620px; max-width:calc(100vw - 32px); max-height:calc(100dvh - 48px); overflow:auto; padding:34px; border:1px solid #e8e3f7; border-radius:24px; background:#fff; color:#203743; box-shadow:0 25px 80px #22234a35; font-family:inherit; }
.admin-tools-dialog::backdrop { background:#1d204975; backdrop-filter:blur(3px); }
.admin-tools-close { position:absolute; top:12px; right:12px; width:38px; height:38px; border:0; border-radius:50%; background:#f2eff9; color:#584570; font-size:26px; cursor:pointer; }
.admin-tools-eyebrow { color:#7650c5; font-size:12px; }
.admin-tools-dialog h2 { margin:8px 28px 26px 0; font-size:26px; line-height:1.25; }
.admin-tools-list { list-style:none; margin:0; padding:0; }
.admin-tools-list li { display:flex; align-items:center; gap:20px; padding:20px; border:1px solid #e9e4f5; border-radius:16px; background:#faf8ff; }
.admin-tools-list h3 { margin:0 0 8px; font-size:16px; line-height:1.45; }
.admin-tools-list p { margin:0; font-size:13px; line-height:1.5; color:#73788b; }
.admin-tools-run { min-width:110px; padding:12px 16px; border:0; border-radius:12px; background:linear-gradient(115deg,#8747df,#435bea); color:#fff; font-family:inherit; font-size:14px; font-weight:600; font-variant-numeric:tabular-nums; cursor:pointer; }
.admin-tools-run:disabled { cursor:wait; opacity:.75; }
.admin-tools-status { margin:18px 0 0; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.admin-tools-status:empty { display:none; }
.admin-tools-dialog button:focus-visible { outline:3px solid #a99af0; outline-offset:3px; }
@media(max-width:600px) { .admin-tools-dialog { padding:28px 20px; } .admin-tools-list li { align-items:stretch; flex-direction:column; } .admin-tools-dialog h2 { font-size:23px; } }

.admin-tools-status { white-space:pre-line; max-height:240px; overflow:auto; }

.admin-tools-full{border:0;border-radius:12px;padding:12px 20px;background:#e8e5ff;color:#4033a3;font:inherit;cursor:pointer}.admin-tools-full:disabled{opacity:.65;cursor:wait}

.admin-tools-list .admin-tools-sync-card { flex-direction:column; align-items:stretch; gap:18px; }
.admin-tools-actions { display:flex; justify-content:flex-end; gap:10px; }
.admin-tools-actions button { min-width:116px; min-height:44px; font-size:14px; font-variant-numeric:tabular-nums; }
.admin-tools-actions .admin-tools-full { border:1px solid #dcd6ed; background:transparent; color:#625976; }
.admin-tools-actions .admin-tools-run { box-shadow:0 4px 12px #654be530; }
.admin-tools-actions button:not(:disabled):hover { filter:brightness(.96); }
@media(max-width:420px) { .admin-tools-actions button { flex:1; min-width:0; } }

.profile-badge.is-rejected {background:#fde8e8;color:#a62626;}
