.ui-dropdown { position: relative; }
.ui-dropdown > summary { list-style: none; cursor: pointer; }
.ui-dropdown > summary::-webkit-details-marker { display: none; }
.ui-dropdown-panel { position: absolute; top: calc(100% + 8px); right: 0; min-width: 210px; padding: 6px; border: 1px solid var(--brand-border); border-radius: 14px; box-shadow: var(--brand-shadow); background: #fff; z-index: 50; }
.ui-dropdown-panel form { margin: 0; }
.ui-dropdown-panel button, .ui-dropdown-panel a { display: block; width: 100%; border: 0; border-radius: 8px; padding: 11px 14px; font: inherit; font-size: 13px; line-height: 1.4; color: var(--brand-plum); background: transparent; text-align: left; text-decoration: none; cursor: pointer; white-space: nowrap; }
.ui-dropdown-panel button:hover, .ui-dropdown-panel a:hover { background: #fbeaf2; }
.owner-estimate-menu.ui-dropdown > .ui-dropdown-panel { display: block; left: 0; right: auto; }
.content-menu-toggle { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--brand-border); border-radius: 50%; font-size: 24px; line-height: 1; background: white; }
.design-social-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-bottom: 12px; }
.author-profile > .content-menu { float: right; }
.comment-author > .content-menu { margin-left: auto; order: 3; }
.header-tools { display: flex; gap: 8px; align-items: center; }
.header-icon { display: grid; place-items: center; position: relative; width: 40px; height: 40px; border-radius: 12px; color: var(--brand-plum); background: transparent; }
.header-icon:hover, .notifications-menu[open] > summary { background: #fbeaf2; }
.header-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.header-unread { position: absolute; top: -3px; right: -3px; background: #a53d6b; color: white; font-size: 10px; font-weight: 600; border-radius: 20px; padding: 1px 5px; }
.notifications-panel { position: absolute; right: -48px; top: calc(100% + 14px); width: min(390px, calc(100vw - 32px)); background: white; border: 1px solid var(--brand-border); border-radius: 18px; box-shadow: var(--brand-shadow); z-index: 1100; overflow: hidden; }
.notifications-heading { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-bottom: 1px solid var(--brand-border); gap: 12px; }
.notifications-heading button, .notification-more { background: none; border: 0; font: inherit; font-size: 12px; color: #9b406b; cursor: pointer; }
.notifications-scroll { max-height: min(480px, 65dvh); overflow-y: auto; overscroll-behavior: contain; }
.notification-item { display: flex; gap: 12px; width: 100%; border: 0; border-bottom: 1px solid #f2eaf0; padding: 16px; text-align: left; background: white; color: var(--brand-plum); cursor: pointer; font: inherit; font-size: 13px; }
.notification-item:hover { background: #faf4f7; }
.notification-unread { background: #fff5f9; }
.notification-avatar { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f5dce8; font-weight: 600; }
.notification-message { display: block; overflow-wrap: anywhere; margin: 3px 0; }
.notification-item time { font-size: 11px; color: var(--brand-plum-muted); }
.notification-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: #b34778; margin: 6px 0 0 auto; }
.notification-empty, .notification-more { display: block; text-align: center; padding: 24px; margin: 0; width: 100%; }
.report-dialog { margin: auto; width: min(480px, calc(100vw - 32px)); padding: 28px; border: 1px solid var(--brand-border); border-radius: 20px; color: var(--brand-plum); box-shadow: var(--brand-shadow); }
.report-dialog::backdrop { background: #24102099; backdrop-filter: blur(3px); }
.report-dialog h2 { font-size: 23px; margin-bottom: 12px; }
.report-dialog p { font-size: 14px; margin-bottom: 20px; }
.report-dialog label { display: block; font-size: 13px; margin-bottom: 8px; }
.report-dialog textarea { width: 100%; padding: 12px; font: inherit; border: 1px solid var(--brand-border); border-radius: 10px; resize: vertical; }
.report-dialog-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }
.ui-dropdown :focus-visible, .header-icon:focus-visible { outline: 2px solid #bb507a; outline-offset: 3px; }
@media (max-width: 720px) {
  .header-tools { gap: 1px; }
  .header-icon { width: 34px; height: 36px; }
  .notifications-panel { position: fixed; right: 16px; top: 70px; }
}
.author-connect-actions { display: flex; gap: 12px; margin-top: 24px; max-width: 500px; }
.author-connect-actions > a, .author-connect-actions > form { flex: 1; }
.author-contact-button, .author-follow-button { display: flex; justify-content: center; align-items: center; gap: 9px; width: 100%; min-height: 50px; padding: 12px 20px; border: 1px solid #4f213b; border-radius: 30px; color: #4f213b; background: transparent; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.author-contact-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.author-follow-button { background: #fa83ad; border-color: #fa83ad; }
.author-follow-button.is-following { background: #f6eef2; border-color: #f6eef2; }
.author-contact-button:hover, .author-follow-button:hover { box-shadow: 0 5px 16px #4f213b15; }
.author-stat-link { color: inherit; text-decoration: none; border-radius: 12px; }
.author-stat-link:hover { background: #fa83ad14; }
.connections-page { max-width: 820px; padding-top: 40px; padding-bottom: 70px; min-height: 75vh; }
.connections-heading { margin: 24px 0 28px; }
.connections-heading h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -.035em; margin-bottom: 10px; }
.connections-heading > p:last-child { font-size: 14px; color: #80516b; }
.connections-tabs { display: flex; gap: 6px; background: #f7f0f4; padding: 5px; border-radius: 16px; margin-bottom: 24px; }
.connections-tab { flex: 1; padding: 13px 16px; border-radius: 12px; text-align: center; text-decoration: none; font-size: 14px; font-weight: 600; color: #80516b; }
.connections-tab.active { background: white; color: #4f213b; box-shadow: 0 3px 10px #4f213b0a; }
.connections-tab span { margin-left: 8px; font-size: 12px; }
.connections-list { display: grid; gap: 12px; }
.connection-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; background: white; border: 1px solid #4f213b15; border-radius: 18px; box-shadow: 0 4px 18px #4f213b05; }
.connection-person { display: flex; align-items: center; gap: 16px; min-width: 0; text-decoration: none; color: #4f213b; }
.connection-person strong { font-size: 15px; overflow-wrap: anywhere; }
.connection-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.connection-avatar-fallback { display: grid; place-items: center; font-size: 19px; font-weight: 600; background: #fae2ec; }
.connection-unfollow { border: 0; border-radius: 24px; padding: 10px 16px; color: #a33f57; background: #faedf0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
.connection-open { color: #80516b; text-decoration: none; padding: 10px; }
.connections-empty { text-align: center; padding: 60px 24px; }
.connections-empty > span { display: block; font-size: 54px; color: #b9879f; margin-bottom: 16px; }
.connections-empty h2 { font-size: 23px; margin-bottom: 10px; }
.connections-empty p { color: #80516b; font-size: 14px; margin-bottom: 24px; }
.author-stat-link:focus-visible, .connection-person:focus-visible, .connections-tab:focus-visible { outline: 2px solid #bb507a; outline-offset: 3px; }
@media (max-width: 480px) { .connection-card { padding: 14px; gap: 10px; } .connection-person { gap: 10px; } .connection-person strong { font-size: 13px; } .connection-unfollow { padding: 9px 12px; } .connections-tab { padding: 12px 8px; } }

.profile-edit-button { display: inline-flex; align-items: center; margin: 12px 0; padding: 10px 18px; border: 1px solid #e5d7df; border-radius: 24px; color: #4f213b; background: white; font-size: 14px; font-weight: 600; text-decoration: none; }
.profile-edit-button:hover { background: #fff0f6; border-color: #fa83ad; }
