#profileDialog .profile-values{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.5fr) minmax(0,1fr);gap:10px}
#profileTotalKbfBox small{display:block;font-size:10px;color:var(--muted);line-height:1.6;margin-top:8px}
#profileTotalKbfBox strong{overflow-wrap:anywhere}
.announcements-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
.announcements-columns>section{min-width:0}.dashboard-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 18px}
.runtime .dashboard-tabs button[aria-pressed=true]{border-color:var(--text);background:var(--surface);color:var(--text)}
.dashboard-card{border:1px solid var(--line);border-radius:12px;padding:18px;margin:14px 0;background:var(--surface);overflow-wrap:anywhere}
.dashboard-card h4{margin:0 0 10px}.dashboard-card>small{display:block;color:var(--muted);font-size:11px;margin:10px 0}
.dashboard-copy{white-space:pre-wrap;line-height:1.8}.dashboard-card code{display:block;overflow-wrap:anywhere;font-size:11px;margin:8px 0}
.dashboard-state{display:inline-block;color:var(--red);background:var(--redbg);border:1px solid currentColor;border-radius:6px;font-size:10px;padding:3px 7px}.dashboard-state[data-open=true]{color:var(--green);background:var(--greenbg)}
.dashboard-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dashboard-form-grid input,.dashboard-form-grid select{width:100%}
.runtime .revenue-archive-button{background:#2670ce!important;border-color:#2670ce!important;color:#fff!important}
.nav-contact{position:relative}.contact-unread-badge{display:inline-grid;place-items:center;min-width:17px;height:17px;border-radius:8px;background:#2670ce;color:#fff;font-size:10px;padding:0 4px;margin-left:5px}
#commissionControls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#commissionControls>.dashboard-card{margin:0}
#admin-polls .support-delete{background:#b53240;color:#fff;border-color:#b53240}
@media(max-width:700px){#profileDialog .profile-values{grid-template-columns:repeat(3,minmax(0,1fr))}#profileDialog .profile-value{padding:12px 8px}#profileDialog .profile-value strong{font-size:17px}#profileDialog .profile-ownership-pair{grid-template-columns:1fr;gap:7px}#profileDialog .profile-ownership-heading{font-size:10px}#profileDialog #profileOwnershipUsage{font-size:10px}.announcements-columns,#commissionControls{grid-template-columns:1fr}.dashboard-form-grid{grid-template-columns:1fr}#profileTotalKbfBox small{font-size:9px}}

@media(max-width:640px){.topbar .nav-links{flex-wrap:wrap;gap:10px 16px}.contact-unread-badge{margin-left:3px}}

/* Three independent profile totals, with rewards immediately below the usage bar. */
#profileDialog .profile-values{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
#profileDialog .profile-values .profile-value{padding:15px 10px;min-width:0;text-align:center}
#profileDialog .profile-share-value .profile-ownership-heading{display:flex;align-items:center;justify-content:center;gap:5px;min-height:42px;font-size:11px;line-height:1.5}
#profileDialog .profile-values strong{font-size:22px;overflow-wrap:anywhere}
#profileDialog .profile-limit-usage{margin:10px 0 18px;padding:0;background:transparent;border:0}
#profileDialog #profileRewardBox{width:100%;box-sizing:border-box;padding:16px;margin-bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:12px}
#profileDialog #profileRewardBox strong{margin:0;font-size:21px}
.hero-announcements-row{display:flex;justify-content:center;margin:14px auto 0;position:relative}
#contactDialog .support-profile-button .support-request-period,#contactDialog #supportAskAdmin .support-request-period,#contactDialog #supportAskModerator .support-request-period{right:10px;bottom:10px}
#contactDialog .support-contact-period-label:empty,#contactDialog #supportLimitPeriodLabel:empty{display:none}
#contactDialog .support-history-item{position:relative}
#contactDialog .contact-unread-badge{position:absolute;right:32px;top:7px;margin:0;background:#b9366a;color:#fff;min-width:20px;height:20px;border-radius:10px;font-weight:700;pointer-events:none;z-index:1}
#commissionControls{grid-template-columns:1fr}
#commissionControls .commission-row{display:grid;grid-template-columns:minmax(0,1fr) 36px;align-items:center;gap:12px;padding:16px 18px}
#commissionControls .commission-row p{margin:6px 0 0;color:var(--muted)}
.runtime .commission-pencil{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:36px;padding:7px;border:1px solid var(--line);border-radius:8px;background:#343941;color:#fff}
html[data-theme=dark] .runtime .commission-pencil{background:#e5e7eb;color:#20242b;border-color:#e5e7eb}
#commissionControls .commission-market-editor{grid-column:1/-1;border-top:1px solid var(--line);padding-top:16px;margin-top:4px}
@media(max-width:480px){#profileDialog .profile-values .profile-value{padding:12px 6px}#profileDialog .profile-values strong{font-size:18px}#profileDialog .profile-share-value .profile-ownership-heading{font-size:10px;min-height:48px}#profileDialog #profileRewardBox strong{font-size:18px}}
#profileDialog #profileOwnershipLimit,#profileDialog #profileOwnershipShare{font-size:22px}
@media(max-width:480px){#profileDialog #profileOwnershipLimit,#profileDialog #profileOwnershipShare{font-size:18px}}

/* Announcements dialog: balanced columns with a continuous center divider. */
dialog.runtime#announcementsDialog{width:min(900px,calc(100vw - 32px));padding:28px;max-height:calc(100dvh - 40px);border-radius:20px}
#announcementsDialog>.dialog-head{padding-bottom:20px;margin-bottom:0;border-bottom:1px solid var(--line);gap:16px}
#announcementsDialog>.dialog-head h2{font-size:25px;letter-spacing:-.7px;margin:0}
#announcementsDialog>.dialog-head>button{flex-shrink:0;border-radius:50%;width:34px;height:34px}
#announcementsDialog .announcements-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;align-items:stretch;min-height:290px;padding-top:24px}
#announcementsDialog .announcements-columns>section{padding:0 24px 8px 0}
#announcementsDialog .announcements-columns>section+section{padding:0 0 8px 24px;border-left:1px solid var(--line)}
#announcementsDialog .announcement-column-title{display:flex;align-items:center;gap:10px;font-size:16px;line-height:1.4;font-weight:600;letter-spacing:-.25px;margin:0 0 20px;color:var(--text)}
#announcementsDialog .announcement-column-icon{display:inline-grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted)}
#announcementsDialog .announcement-column-icon svg{width:19px;height:19px}
#announcementsDialog .poll-column-icon{color:var(--green);background:var(--greenbg);border-color:color-mix(in srgb,var(--green) 25%,var(--line))}
#announcementsDialog .dashboard-card{padding:18px;margin:0 0 12px;border-radius:13px;background:var(--bg);box-shadow:0 3px 12px #00000004}
#announcementsDialog .dashboard-card h4{font-size:15px;line-height:1.5;font-weight:600;color:var(--text);margin:0 0 10px}
#announcementsDialog .dashboard-copy{font-size:13px;line-height:1.85;color:var(--muted);margin:0 0 14px}
#announcementsDialog .dashboard-card>small{font-size:10px;line-height:1.6;padding-top:12px;margin-top:12px;border-top:1px solid var(--line)}
#announcementsDialog .dashboard-card>.step{width:100%;margin-top:8px;background:#343941;border-color:#343941;color:#fff;border-radius:8px;font-size:12px}
html[data-theme=dark] #announcementsDialog .dashboard-card>.step{background:#e5e7eb;border-color:#e5e7eb;color:#20242b}
#announcementsDialog :is(#publicAnnouncements,#publicOpenPolls)>p{display:flex;align-items:center;justify-content:center;min-height:165px;margin:0;padding:20px;border:1px dashed var(--line);border-radius:13px;background:var(--surface);color:var(--muted);font-size:12px;line-height:1.8;text-align:center}
@media(max-width:700px){dialog.runtime#announcementsDialog{padding:22px 18px;width:calc(100vw - 24px);border-radius:16px}#announcementsDialog>.dialog-head h2{font-size:22px}#announcementsDialog .announcements-columns{grid-template-columns:1fr;min-height:0;padding-top:20px}#announcementsDialog .announcements-columns>section{padding:0 0 22px}#announcementsDialog .announcements-columns>section+section{border-left:0;border-top:1px solid var(--line);padding:22px 0 0}#announcementsDialog .announcement-column-title{margin-bottom:16px}#announcementsDialog :is(#publicAnnouncements,#publicOpenPolls)>p{min-height:110px}}

/* Three matching profile cards; explanations live behind their help controls. */
#profileDialog .profile-values>.profile-value{position:relative}
#profileDialog .profile-values .profile-ownership-heading{display:flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;font-size:11px;line-height:1.5;font-weight:400;color:var(--muted)}
#profileDialog .profile-values .profile-ownership-heading>span{color:var(--muted);font-weight:400}
#profileDialog .profile-values .profile-ownership-heading>.info{right:0;top:0}
@media(max-width:600px){
 dialog.runtime#profileDialog{padding:20px 14px}
 #profileDialog .profile-values{gap:6px;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
 #profileDialog .profile-values>.profile-value{aspect-ratio:1/1;width:100%;height:auto;min-height:0;box-sizing:border-box;padding:8px 5px;display:grid;grid-template-rows:minmax(0,1fr) auto;row-gap:4px;border-radius:10px;align-content:center;overflow:visible}
 #profileDialog .profile-values .profile-ownership-heading{position:static;min-height:0;height:100%;padding:5px 1px 0;line-height:1.3;font-size:clamp(9px,2.35vw,11px);text-align:center}
 #profileDialog .profile-values .profile-ownership-heading>span{display:block;max-width:100%;overflow-wrap:normal;word-break:normal}
 #profileDialog .profile-values .profile-ownership-heading>.info{top:3px;right:3px;width:12px;min-width:12px;height:12px;min-height:12px;font-size:8px;line-height:10px}
 #profileDialog .profile-values :is(strong,#profileOwnershipLimit,#profileOwnershipShare){margin:0;min-width:0;max-width:100%;font-size:clamp(14px,4vw,20px);line-height:1.15;letter-spacing:-.4px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
}

/* Unread conversations follow the neutral action palette in both themes. */
#supportComposeDialog,#contactDialog{--support-unread-accent:#343941;--support-unread-ink:#fff}
html[data-theme=dark] :is(#supportComposeDialog,#contactDialog){--support-unread-accent:#e5e7eb;--support-unread-ink:#20242b}
#supportComposeDialog .support-ticket-card.has-unread{border:2px solid var(--support-unread-accent);background:color-mix(in srgb,var(--support-unread-accent) 5%,var(--surface));box-shadow:0 0 0 1px color-mix(in srgb,var(--support-unread-accent) 15%,transparent)}
#supportComposeDialog .support-ticket-unread{display:inline-flex;align-items:center;padding:4px 7px;border-radius:7px;background:var(--support-unread-accent);color:var(--support-unread-ink);font-size:10px;line-height:1.4;font-weight:600;white-space:normal}
#contactDialog .contact-unread-badge{background:var(--support-unread-accent);color:var(--support-unread-ink)}
/* This tile has no price or period row, so its label uses equal vertical padding. */
#contactDialog .support-history-item>#supportHistoryButton{padding:24px 12px;align-items:center;justify-content:center;text-align:center}

/* Conversation actions use neutral hover, press and keyboard-focus states. */
:is(#supportComposeDialog,#supportInboxRoot,#limitRequestsRoot) .support-ticket-actions>.support-secondary:not(.support-delete):is(:hover,:active,:focus-visible){background:#343941;border-color:#343941;color:#fff;-webkit-tap-highlight-color:transparent}
html[data-theme=dark] :is(#supportComposeDialog,#supportInboxRoot,#limitRequestsRoot) .support-ticket-actions>.support-secondary:not(.support-delete):is(:hover,:active,:focus-visible){background:#e5e7eb;border-color:#e5e7eb;color:#20242b}
:is(#supportComposeDialog,#supportInboxRoot,#limitRequestsRoot) .support-ticket-actions>.support-secondary:not(.support-delete):focus-visible{outline:2px solid var(--muted);outline-offset:3px}
