/* Shared action buttons. Navigation links and status cards keep their own layout. */
:root{--action-bg:#0b57d0;--action-hover:#0849b4;--action-text:#fff;--action-soft:#edf3fe;--action-border:#9aa9bd;--action-danger:#a51d24;--action-danger-bg:#fff1f0;--action-danger-hover:#fce0de;--action-disabled-bg:#e7e9ed;--action-disabled-text:#626975;--action-radius:12px}
:root[data-theme=dark]{--action-bg:#a8c7fa;--action-hover:#c4d8fc;--action-text:#132e54;--action-soft:#26364e;--action-border:#78899e;--action-danger:#ffb4ab;--action-danger-bg:#43282c;--action-danger-hover:#583238;--action-disabled-bg:#343a43;--action-disabled-text:#a9b0bb}
:root body .button,:root body .compose-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;max-width:100%;box-sizing:border-box;padding:12px 20px;border:1px solid var(--action-bg);border-radius:var(--action-radius);background:var(--action-bg);color:var(--action-text);font-family:inherit;font-size:14px;font-weight:600;line-height:1.5;white-space:normal;overflow-wrap:anywhere;text-align:center;text-decoration:none;box-shadow:none;cursor:pointer;vertical-align:middle;transform:none;transition:background-color .15s,border-color .15s,box-shadow .15s}
:root body .button:hover,:root body .compose-button:hover{background:var(--action-hover);border-color:var(--action-hover);color:var(--action-text);transform:none;box-shadow:none}
:root body .button.secondary{background:var(--paper,#fff);border-color:var(--action-border);color:var(--green,#0b57d0)}
:root body .button.secondary:hover{background:var(--action-soft);border-color:var(--action-bg);color:var(--green,#0b57d0)}
:root body .button.danger{background:var(--action-danger-bg);border-color:var(--action-danger);color:var(--action-danger)}
:root body .button.danger:hover{background:var(--action-danger-hover);border-color:var(--action-danger);color:var(--action-danger);box-shadow:none}
:root body .button.small{min-height:44px;padding:9px 14px;font-size:13px}
:root body .button.full{width:100%}
:root body .invitation-accept-button{min-height:56px;font-size:16px;width:100%}
:root body .button[aria-current=page],:root body .button[aria-pressed=true]{background:var(--action-soft);border-color:var(--action-bg);color:var(--green);box-shadow:inset 0 0 0 1px var(--action-bg)}
:root body .button:disabled,:root body .button[aria-disabled=true]{background:var(--action-disabled-bg);border-color:var(--action-disabled-bg);color:var(--action-disabled-text);opacity:1;box-shadow:none;transform:none;cursor:not-allowed}
:root body .button[hidden],:root body .compose-button[hidden]{display:none!important}
:root body .button:focus-visible,:root body .compose-button:focus-visible,:root body .theme-toggle:focus-visible,:root body .language-switch button:focus-visible{outline:3px solid var(--ui-focus);outline-offset:3px}
:root body .theme-toggle,:root body .language-switch button{min-height:44px;min-width:44px;border-radius:var(--action-radius);padding:9px 12px;border:1px solid var(--action-border);background:var(--paper);color:var(--ink);font-size:13px;line-height:1.5;box-shadow:none}
:root body .theme-toggle:hover,:root body .language-switch button:hover{background:var(--action-soft)}
:root body .pwa-close{min-width:44px;min-height:44px;border-radius:var(--action-radius)}
:root body button.text-link{min-height:44px;padding:8px 10px;border:0;background:transparent;color:var(--green);font:inherit;text-decoration:underline;text-underline-offset:3px}
:root body .analytics-settings{min-height:44px;padding:9px 14px;border-radius:var(--action-radius);font-size:12px;line-height:1.5}
:root body .button svg,:root body .compose-button svg{flex-shrink:0}
.owner-actions,.invitation-share-actions,.compose-footer,.campaign-share-actions{gap:10px}
@media(max-width:780px){:root body .compose-button,:root body .mobile-menu-toggle{min-height:44px;padding:9px 12px;font-size:13px}:root body .theme-toggle{padding:9px;min-width:44px}}
@media(prefers-reduced-motion:reduce){:root body .button,:root body .compose-button{transition:none}}

:root body .compose-button .compose-label{font-size:14px;line-height:1.5;min-width:0}
@media(max-width:780px){.sidebar.mobile-menu-ready{grid-template-columns:minmax(0,1fr) auto}.sidebar.mobile-menu-ready>.compose-button{grid-column:1;grid-row:2;justify-self:start}.sidebar.mobile-menu-ready>.mobile-menu-toggle{grid-column:2;grid-row:1}.sidebar.mobile-menu-ready>nav{grid-row:3}:root body .compose-button .compose-label{font-size:13px}}

/* Primary action shown when the campaign countdown reaches zero. */
.campaign-result-action{margin-top:24px}
.campaign-result-action[hidden]{display:none!important}
.campaign-result-action>p{margin:0 0 12px}
:root body .button.campaign-result-button{width:100%;max-width:420px;min-height:56px;padding:16px 24px;font-size:18px;font-weight:700;line-height:1.5;white-space:normal;text-align:center}
@media(max-width:600px){:root body .button.campaign-result-button{max-width:none}}
