/* WordPress editor tweaks */
body.hide-preview-button #post-preview {
  display: none;
}

#minor-publishing-actions {
  display: flex;
  flex-direction: column;
  align-items: start;
}

#minor-publishing-actions #save-action {
  margin-bottom: 10px;
}

#major-publishing-actions {
  display: block;
}

#major-publishing-actions #delete-action,
#major-publishing-actions #publishing-action {
  float: none;
  text-align: left;
}

#major-publishing-actions #publishing-action {
  margin-top: 0.75rem;
}

/* Heady admin tokens */
:root {
  --heady-admin-primary: #2271b1;
  --heady-admin-primary-soft: color-mix(in srgb, var(--heady-admin-primary) 12%, #fff);
  --heady-admin-primary-strong: color-mix(in srgb, var(--heady-admin-primary) 78%, #0f172a);
  --heady-admin-bg: #f6f7f9;
  --heady-admin-surface: #fff;
  --heady-admin-ink: #111827;
  --heady-admin-muted: #64748b;
  --heady-admin-line: rgba(15, 23, 42, 0.1);
  --heady-admin-radius: 10px;
  --heady-admin-radius-sm: 8px;
  --heady-admin-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  --heady-admin-shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.06);
  --heady-admin-transition: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Global admin skin */
body.wp-admin,
body.login {
  color: var(--heady-admin-ink);
  background: var(--heady-admin-bg);
}

body.wp-admin.heady-admin-theme-dark {
  --heady-admin-bg: #020617;
  --heady-admin-surface: #0f172a;
  --heady-admin-ink: #e5e7eb;
  --heady-admin-muted: #94a3b8;
  --heady-admin-line: rgba(148, 163, 184, 0.2);
  --heady-admin-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  --heady-admin-shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.22);
}

body.wp-admin.heady-admin-theme-dark #wpcontent,
body.wp-admin.heady-admin-theme-dark #wpbody-content {
  background: var(--heady-admin-bg);
}

body.wp-admin.heady-admin-theme-dark .wrap,
body.wp-admin.heady-admin-theme-dark .form-table th,
body.wp-admin.heady-admin-theme-dark .widefat th,
body.wp-admin.heady-admin-theme-dark .widefat td,
body.wp-admin.heady-admin-theme-dark .postbox,
body.wp-admin.heady-admin-theme-dark .stuffbox,
body.wp-admin.heady-admin-theme-dark .acf-field {
  color: var(--heady-admin-ink);
}

body.wp-admin.heady-admin-theme-dark .widefat,
body.wp-admin.heady-admin-theme-dark .striped > tbody > :nth-child(odd),
body.wp-admin.heady-admin-theme-dark .acf-fields,
body.wp-admin.heady-admin-theme-dark .acf-postbox {
  background: var(--heady-admin-surface);
  border-color: var(--heady-admin-line);
}

body.wp-admin.heady-admin-theme-dark .widefat thead th,
body.wp-admin.heady-admin-theme-dark .widefat tfoot th,
body.wp-admin.heady-admin-theme-dark .postbox-header {
  background: color-mix(in srgb, var(--heady-admin-surface) 88%, #fff);
  border-color: var(--heady-admin-line);
}

body.wp-admin.heady-admin-theme-dark .notice,
body.wp-admin.heady-admin-theme-dark div.updated,
body.wp-admin.heady-admin-theme-dark div.error {
  color: var(--heady-admin-ink);
  background: #0f172a;
  border-color: var(--heady-admin-line);
}

body.wp-admin.heady-admin-theme-dark .notice-success,
body.wp-admin.heady-admin-theme-dark div.updated {
  background: color-mix(in srgb, #064e3b 34%, var(--heady-admin-surface));
  border-left-color: #10b981;
}

body.wp-admin.heady-admin-theme-dark .notice-error,
body.wp-admin.heady-admin-theme-dark div.error {
  background: color-mix(in srgb, #7f1d1d 34%, var(--heady-admin-surface));
  border-left-color: #ef4444;
}

body.wp-admin.heady-admin-theme-dark .notice-warning {
  background: color-mix(in srgb, #713f12 34%, var(--heady-admin-surface));
  border-left-color: #f59e0b;
}

body.wp-admin.heady-admin-theme-dark .notice-info {
  background: color-mix(in srgb, #0c4a6e 34%, var(--heady-admin-surface));
  border-left-color: #38bdf8;
}

body.wp-admin.heady-admin-theme-dark .notice-dismiss:before {
  color: var(--heady-admin-muted);
}

body.wp-admin.heady-admin-theme-dark .notice-dismiss:hover:before,
body.wp-admin.heady-admin-theme-dark .notice-dismiss:focus:before {
  color: #fff;
}

body.wp-admin.heady-admin-theme-dark input[type="text"],
body.wp-admin.heady-admin-theme-dark input[type="url"],
body.wp-admin.heady-admin-theme-dark input[type="email"],
body.wp-admin.heady-admin-theme-dark input[type="password"],
body.wp-admin.heady-admin-theme-dark input[type="search"],
body.wp-admin.heady-admin-theme-dark input[type="number"],
body.wp-admin.heady-admin-theme-dark textarea,
body.wp-admin.heady-admin-theme-dark select {
  color: var(--heady-admin-ink);
  background: #111827;
}

body.wp-admin.heady-admin-theme-dark #dashboard-widgets .postbox {
  background: var(--heady-admin-surface);
  border-color: var(--heady-admin-line);
}

body.wp-admin.heady-admin-theme-dark #dashboard-widgets .postbox .inside {
  color: var(--heady-admin-ink);
  background: var(--heady-admin-surface);
}

body.wp-admin.heady-admin-theme-dark #dashboard-widgets .postbox-header h2,
body.wp-admin.heady-admin-theme-dark #dashboard-widgets .postbox .hndle {
  color: var(--heady-admin-ink);
}

body.wp-admin.heady-admin-theme-dark #dashboard-widgets .handle-order-higher,
body.wp-admin.heady-admin-theme-dark #dashboard-widgets .handle-order-lower,
body.wp-admin.heady-admin-theme-dark #dashboard-widgets .handlediv,
body.wp-admin.heady-admin-theme-dark #dashboard-widgets .toggle-indicator {
  color: var(--heady-admin-muted);
}

body.wp-admin.heady-admin-theme-dark #dashboard-widgets .handle-order-higher:hover,
body.wp-admin.heady-admin-theme-dark #dashboard-widgets .handle-order-lower:hover,
body.wp-admin.heady-admin-theme-dark #dashboard-widgets .handlediv:hover {
  color: #fff;
}

body.wp-admin.heady-admin-theme-dark #dashboard-widgets .description {
  color: var(--heady-admin-muted);
}

body.wp-admin.heady-admin-theme-dark .heady-card code,
body.wp-admin.heady-admin-theme-dark .heady-dash-list code {
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.22);
}

body.wp-admin.heady-admin-theme-dark .heady-badge.is-success {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.26);
}

body.wp-admin.heady-admin-theme-dark .heady-badge.is-muted {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.22);
}

body.wp-admin.heady-admin-theme-dark .heady-badge.is-error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.26);
}

body.wp-admin.heady-admin-theme-dark .heady-system-metric,
body.wp-admin.heady-admin-theme-dark .heady-flamingo-stat,
body.wp-admin.heady-admin-theme-dark .heady-flamingo-inbox-widget__empty {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--heady-admin-line);
}

body.wp-admin.heady-admin-theme-dark.post-php #poststuff,
body.wp-admin.heady-admin-theme-dark.post-new-php #poststuff,
body.wp-admin.heady-admin-theme-dark.post-php #post-body-content,
body.wp-admin.heady-admin-theme-dark.post-new-php #post-body-content,
body.wp-admin.heady-admin-theme-dark.post-php #postbox-container-1,
body.wp-admin.heady-admin-theme-dark.post-new-php #postbox-container-1 {
  color: var(--heady-admin-ink);
}

body.wp-admin.heady-admin-theme-dark.post-php #titlediv #title,
body.wp-admin.heady-admin-theme-dark.post-new-php #titlediv #title {
  color: var(--heady-admin-ink);
  background: #111827;
  border-color: var(--heady-admin-line);
}

body.wp-admin.heady-admin-theme-dark.post-php #titlediv #title-prompt-text,
body.wp-admin.heady-admin-theme-dark.post-new-php #titlediv #title-prompt-text,
body.wp-admin.heady-admin-theme-dark.post-php #edit-slug-box,
body.wp-admin.heady-admin-theme-dark.post-new-php #edit-slug-box {
  color: var(--heady-admin-muted);
}

body.wp-admin.heady-admin-theme-dark.post-php #side-sortables .postbox,
body.wp-admin.heady-admin-theme-dark.post-new-php #side-sortables .postbox,
body.wp-admin.heady-admin-theme-dark.post-php #normal-sortables .postbox,
body.wp-admin.heady-admin-theme-dark.post-new-php #normal-sortables .postbox,
body.wp-admin.heady-admin-theme-dark.post-php #advanced-sortables .postbox,
body.wp-admin.heady-admin-theme-dark.post-new-php #advanced-sortables .postbox {
  background: var(--heady-admin-surface);
  border-color: var(--heady-admin-line);
}

body.wp-admin.heady-admin-theme-dark.post-php .postbox .inside,
body.wp-admin.heady-admin-theme-dark.post-new-php .postbox .inside,
body.wp-admin.heady-admin-theme-dark.post-php #minor-publishing,
body.wp-admin.heady-admin-theme-dark.post-new-php #minor-publishing,
body.wp-admin.heady-admin-theme-dark.post-php #major-publishing-actions,
body.wp-admin.heady-admin-theme-dark.post-new-php #major-publishing-actions,
body.wp-admin.heady-admin-theme-dark.post-php .misc-pub-section,
body.wp-admin.heady-admin-theme-dark.post-new-php .misc-pub-section {
  color: var(--heady-admin-ink);
  background: var(--heady-admin-surface);
  border-color: var(--heady-admin-line);
}

body.wp-admin.heady-admin-theme-dark.post-php .postbox-header h2,
body.wp-admin.heady-admin-theme-dark.post-new-php .postbox-header h2,
body.wp-admin.heady-admin-theme-dark.post-php .postbox .hndle,
body.wp-admin.heady-admin-theme-dark.post-new-php .postbox .hndle,
body.wp-admin.heady-admin-theme-dark.post-php .category-tabs a,
body.wp-admin.heady-admin-theme-dark.post-new-php .category-tabs a {
  color: var(--heady-admin-ink);
}

body.wp-admin.heady-admin-theme-dark.post-php #side-sortables .categorychecklist,
body.wp-admin.heady-admin-theme-dark.post-new-php #side-sortables .categorychecklist,
body.wp-admin.heady-admin-theme-dark.post-php #side-sortables .tabs-panel,
body.wp-admin.heady-admin-theme-dark.post-new-php #side-sortables .tabs-panel {
  color: var(--heady-admin-ink);
  background: #111827;
  border-color: var(--heady-admin-line);
}

body.wp-admin.heady-admin-theme-dark.post-php .acf-postbox,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-postbox,
body.wp-admin.heady-admin-theme-dark.post-php .acf-postbox > .inside,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-postbox > .inside,
body.wp-admin.heady-admin-theme-dark.post-php .acf-fields,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-fields,
body.wp-admin.heady-admin-theme-dark.post-php .acf-field,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-field {
  color: var(--heady-admin-ink);
  background: var(--heady-admin-surface);
  border-color: var(--heady-admin-line);
}

body.wp-admin.heady-admin-theme-dark.post-php .acf-fields > .acf-field,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-fields > .acf-field,
body.wp-admin.heady-admin-theme-dark.post-php .acf-field[data-width] + .acf-field[data-width],
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-field[data-width] + .acf-field[data-width] {
  border-color: var(--heady-admin-line);
}

body.wp-admin.heady-admin-theme-dark.post-php .acf-label label,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-label label,
body.wp-admin.heady-admin-theme-dark.post-php .acf-input,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-input,
body.wp-admin.heady-admin-theme-dark.post-php .acf-input p,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-input p {
  color: var(--heady-admin-ink);
}

body.wp-admin.heady-admin-theme-dark.post-php .acf-label .description,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-label .description,
body.wp-admin.heady-admin-theme-dark.post-php .acf-field p.description,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-field p.description,
body.wp-admin.heady-admin-theme-dark.post-php .acf-bl,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-bl {
  color: var(--heady-admin-muted);
}

body.wp-admin.heady-admin-theme-dark.post-php .acf-input-wrap input,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-input-wrap input,
body.wp-admin.heady-admin-theme-dark.post-php .acf-input textarea,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-input textarea,
body.wp-admin.heady-admin-theme-dark.post-php .acf-input select,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-input select,
body.wp-admin.heady-admin-theme-dark.post-php .acf-input .select2-selection,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-input .select2-selection {
  color: var(--heady-admin-ink);
  background: #111827;
  border-color: var(--heady-admin-line);
}

body.wp-admin.heady-admin-theme-dark.post-php .acf-input-wrap input::placeholder,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-input-wrap input::placeholder,
body.wp-admin.heady-admin-theme-dark.post-php .acf-input textarea::placeholder,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-input textarea::placeholder {
  color: rgba(148, 163, 184, 0.72);
}

body.wp-admin.heady-admin-theme-dark.post-php .acf-repeater,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-repeater,
body.wp-admin.heady-admin-theme-dark.post-php .acf-table,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-table,
body.wp-admin.heady-admin-theme-dark.post-php .acf-table > thead > tr > th,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-table > thead > tr > th,
body.wp-admin.heady-admin-theme-dark.post-php .acf-table > tbody > tr > td,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-table > tbody > tr > td {
  color: var(--heady-admin-ink);
  background: var(--heady-admin-surface);
  border-color: var(--heady-admin-line);
}

body.wp-admin.heady-admin-theme-dark.post-php .acf-flexible-content .layout,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-flexible-content .layout,
body.wp-admin.heady-admin-theme-dark.post-php .acf-row,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-row {
  background: #0b1220;
  border-color: var(--heady-admin-line);
}

body.wp-admin.heady-admin-theme-dark.post-php .acf-flexible-content .layout .acf-fc-layout-handle,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-flexible-content .layout .acf-fc-layout-handle,
body.wp-admin.heady-admin-theme-dark.post-php .acf-row-handle,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-row-handle {
  color: var(--heady-admin-ink);
  background: color-mix(in srgb, var(--heady-admin-primary) 18%, #111827);
  border-color: var(--heady-admin-line);
}

body.wp-admin.heady-admin-theme-dark.post-php .acf-flexible-content .layout .acf-fc-layout-controls a,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-flexible-content .layout .acf-fc-layout-controls a,
body.wp-admin.heady-admin-theme-dark.post-php .acf-actions a,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-actions a {
  color: #e0f2fe;
}

body.wp-admin.heady-admin-theme-dark.post-php .acf-editor-wrap .wp-editor-container,
body.wp-admin.heady-admin-theme-dark.post-new-php .acf-editor-wrap .wp-editor-container,
body.wp-admin.heady-admin-theme-dark.post-php .wp-editor-container,
body.wp-admin.heady-admin-theme-dark.post-new-php .wp-editor-container,
body.wp-admin.heady-admin-theme-dark.post-php .quicktags-toolbar,
body.wp-admin.heady-admin-theme-dark.post-new-php .quicktags-toolbar,
body.wp-admin.heady-admin-theme-dark.post-php .mce-toolbar-grp,
body.wp-admin.heady-admin-theme-dark.post-new-php .mce-toolbar-grp {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.3);
}

body.wp-admin.heady-admin-theme-dark.block-editor-page {
  background: var(--heady-admin-bg);
}

body.wp-admin.heady-admin-theme-dark.block-editor-page .interface-interface-skeleton__header,
body.wp-admin.heady-admin-theme-dark.block-editor-page .interface-interface-skeleton__sidebar,
body.wp-admin.heady-admin-theme-dark.block-editor-page .interface-interface-skeleton__secondary-sidebar,
body.wp-admin.heady-admin-theme-dark.block-editor-page .interface-interface-skeleton__footer,
body.wp-admin.heady-admin-theme-dark.block-editor-page .edit-post-layout__metaboxes,
body.wp-admin.heady-admin-theme-dark.block-editor-page .edit-post-sidebar,
body.wp-admin.heady-admin-theme-dark.block-editor-page .components-panel,
body.wp-admin.heady-admin-theme-dark.block-editor-page .components-panel__body,
body.wp-admin.heady-admin-theme-dark.block-editor-page .components-popover__content,
body.wp-admin.heady-admin-theme-dark.block-editor-page .components-modal__frame {
  color: var(--heady-admin-ink);
  background: var(--heady-admin-surface);
  border-color: var(--heady-admin-line);
}

body.wp-admin.heady-admin-theme-dark.block-editor-page .interface-interface-skeleton__content,
body.wp-admin.heady-admin-theme-dark.block-editor-page .edit-post-visual-editor,
body.wp-admin.heady-admin-theme-dark.block-editor-page .block-editor-writing-flow,
body.wp-admin.heady-admin-theme-dark.block-editor-page .editor-styles-wrapper {
  color: var(--heady-admin-ink);
  background: var(--heady-admin-bg);
}

body.wp-admin.heady-admin-theme-dark.block-editor-page .edit-post-header,
body.wp-admin.heady-admin-theme-dark.block-editor-page .edit-post-sidebar__panel-tab,
body.wp-admin.heady-admin-theme-dark.block-editor-page .components-panel__header,
body.wp-admin.heady-admin-theme-dark.block-editor-page .components-panel__body-title {
  color: var(--heady-admin-ink);
  background: var(--heady-admin-surface);
  border-color: var(--heady-admin-line);
}

body.wp-admin.heady-admin-theme-dark.block-editor-page .components-button,
body.wp-admin.heady-admin-theme-dark.block-editor-page .components-menu-item__button,
body.wp-admin.heady-admin-theme-dark.block-editor-page .components-panel__body-toggle,
body.wp-admin.heady-admin-theme-dark.block-editor-page .components-dropdown-menu__toggle,
body.wp-admin.heady-admin-theme-dark.block-editor-page .block-editor-block-toolbar .components-button {
  color: var(--heady-admin-ink);
}

body.wp-admin.heady-admin-theme-dark.block-editor-page .components-button:hover,
body.wp-admin.heady-admin-theme-dark.block-editor-page .components-button:focus,
body.wp-admin.heady-admin-theme-dark.block-editor-page .components-menu-item__button:hover,
body.wp-admin.heady-admin-theme-dark.block-editor-page .components-panel__body-toggle:hover {
  color: #fff;
  background: rgba(148, 163, 184, 0.12);
}

body.wp-admin.heady-admin-theme-dark.block-editor-page .components-button.is-primary {
  color: #fff;
  background: var(--heady-admin-primary);
  box-shadow: none;
}

body.wp-admin.heady-admin-theme-dark.block-editor-page .components-button.is-secondary,
body.wp-admin.heady-admin-theme-dark.block-editor-page .components-button.is-tertiary {
  color: var(--heady-admin-ink);
  box-shadow: inset 0 0 0 1px var(--heady-admin-line);
}

body.wp-admin.heady-admin-theme-dark.block-editor-page .components-text-control__input,
body.wp-admin.heady-admin-theme-dark.block-editor-page .components-textarea-control__input,
body.wp-admin.heady-admin-theme-dark.block-editor-page .components-select-control__input,
body.wp-admin.heady-admin-theme-dark.block-editor-page .components-combobox-control__suggestions-container,
body.wp-admin.heady-admin-theme-dark.block-editor-page .components-form-token-field__input-container {
  color: var(--heady-admin-ink);
  background: #111827;
  border-color: var(--heady-admin-line);
}

body.wp-admin.heady-admin-theme-dark.block-editor-page .components-base-control__label,
body.wp-admin.heady-admin-theme-dark.block-editor-page .components-input-control__label,
body.wp-admin.heady-admin-theme-dark.block-editor-page .components-toggle-control__label,
body.wp-admin.heady-admin-theme-dark.block-editor-page .components-checkbox-control__label,
body.wp-admin.heady-admin-theme-dark.block-editor-page .components-panel__body-title button,
body.wp-admin.heady-admin-theme-dark.block-editor-page .editor-post-title__input,
body.wp-admin.heady-admin-theme-dark.block-editor-page .block-editor-block-list__block {
  color: var(--heady-admin-ink);
}

body.wp-admin.heady-admin-theme-dark.block-editor-page .components-base-control__help,
body.wp-admin.heady-admin-theme-dark.block-editor-page .components-input-control__help,
body.wp-admin.heady-admin-theme-dark.block-editor-page .editor-post-url__link {
  color: var(--heady-admin-muted);
}

body.wp-admin.heady-admin-theme-dark.block-editor-page .edit-post-meta-boxes-area,
body.wp-admin.heady-admin-theme-dark.block-editor-page .edit-post-meta-boxes-area .postbox,
body.wp-admin.heady-admin-theme-dark.block-editor-page .edit-post-meta-boxes-area .inside,
body.wp-admin.heady-admin-theme-dark.block-editor-page .acf-postbox,
body.wp-admin.heady-admin-theme-dark.block-editor-page .acf-fields,
body.wp-admin.heady-admin-theme-dark.block-editor-page .acf-field,
body.wp-admin.heady-admin-theme-dark.block-editor-page .acf-field-object {
  color: var(--heady-admin-ink);
  background: var(--heady-admin-surface);
  border-color: var(--heady-admin-line);
}

body.wp-admin.heady-admin-theme-dark.block-editor-page .acf-label label,
body.wp-admin.heady-admin-theme-dark.block-editor-page .acf-input,
body.wp-admin.heady-admin-theme-dark.block-editor-page .acf-input p,
body.wp-admin.heady-admin-theme-dark.block-editor-page .acf-input ul,
body.wp-admin.heady-admin-theme-dark.block-editor-page .acf-input ol {
  color: var(--heady-admin-ink);
}

body.wp-admin.heady-admin-theme-dark.block-editor-page .acf-field .acf-label p.description,
body.wp-admin.heady-admin-theme-dark.block-editor-page .acf-field p.description {
  color: var(--heady-admin-muted);
}

body.wp-admin.heady-admin-theme-dark.block-editor-page .acf-input-wrap input,
body.wp-admin.heady-admin-theme-dark.block-editor-page .acf-input textarea,
body.wp-admin.heady-admin-theme-dark.block-editor-page .acf-input select {
  color: var(--heady-admin-ink);
  background: #111827;
  border-color: var(--heady-admin-line);
}

body.wp-admin a,
body.login a {
  color: var(--heady-admin-primary);
  transition:
    color var(--heady-admin-transition),
    opacity var(--heady-admin-transition),
    transform var(--heady-admin-transition);
}

body.wp-admin a:hover,
body.login a:hover {
  color: var(--heady-admin-primary-strong);
}

#wpadminbar {
  background: #111827;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
}

#wpadminbar .ab-item:focus,
#wpadminbar .ab-sub-wrapper .ab-item:focus {
  outline-color: var(--heady-admin-primary);
}

#wpadminbar .ab-top-menu > li.hover > .ab-item,
#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus,
#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item,
#wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus {
  background: color-mix(in srgb, var(--heady-admin-primary) 22%, #0f172a);
}

#adminmenuback,
#adminmenuwrap,
#adminmenu {
  background: #111827;
}

#adminmenu .wp-has-current-submenu .wp-submenu,
#adminmenu .wp-has-current-submenu.opensub .wp-submenu,
#adminmenu .wp-submenu,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu {
  background: #0b1220;
}

#adminmenu a.menu-top,
#adminmenu .wp-submenu a {
  transition:
    background var(--heady-admin-transition),
    color var(--heady-admin-transition);
}

#adminmenu a.menu-top:hover,
#adminmenu li.opensub > a.menu-top,
#adminmenu li > a.menu-top:focus {
  background: rgba(255, 255, 255, 0.08);
}

#adminmenu li.current a.menu-top,
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu {
  background: var(--heady-admin-primary);
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.38);
}

#adminmenu .wp-menu-image:before {
  transition: transform var(--heady-admin-transition);
}

#adminmenu a.menu-top:hover .wp-menu-image:before,
#adminmenu li.current .wp-menu-image:before,
#adminmenu li.wp-has-current-submenu .wp-menu-image:before {
  transform: scale(1.08);
}

.wrap h1,
.wrap .wp-heading-inline {
  color: var(--heady-admin-ink);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.wrap h1 {
  margin-bottom: 1rem;
}

.wp-core-ui .button,
.wp-core-ui .button-secondary,
.wp-core-ui .button-primary {
  border-radius: 7px;
  transition:
    background var(--heady-admin-transition),
    border-color var(--heady-admin-transition),
    box-shadow var(--heady-admin-transition),
    color var(--heady-admin-transition),
    transform var(--heady-admin-transition);
}

.wp-core-ui .button:hover,
.wp-core-ui .button-secondary:hover,
.wp-core-ui .button-primary:hover {
  transform: translateY(-1px);
}

.wp-core-ui .button-primary {
  background: var(--heady-admin-primary);
  border-color: var(--heady-admin-primary);
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--heady-admin-primary) 18%, transparent);
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
  background: var(--heady-admin-primary-strong);
  border-color: var(--heady-admin-primary-strong);
  color: #fff;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--heady-admin-primary) 24%, transparent);
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
  border-color: var(--heady-admin-line);
  border-radius: var(--heady-admin-radius-sm);
  box-shadow: none;
  transition:
    border-color var(--heady-admin-transition),
    box-shadow var(--heady-admin-transition),
    background var(--heady-admin-transition);
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: var(--heady-admin-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--heady-admin-primary) 16%, transparent);
}

.notice,
div.updated,
div.error {
  border-radius: var(--heady-admin-radius);
  box-shadow: var(--heady-admin-shadow-soft);
}

.postbox,
.stuffbox {
  border: 1px solid var(--heady-admin-line);
  border-radius: var(--heady-admin-radius);
  box-shadow: var(--heady-admin-shadow-soft);
  overflow: hidden;
}

.postbox .postbox-header {
  border-bottom-color: var(--heady-admin-line);
}

.postbox .hndle,
.stuffbox .hndle {
  font-weight: 700;
  letter-spacing: -0.015em;
}

.heady-system-wrap {
  max-width: 1280px;
}

.heady-system-wrap .heady-system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.heady-system-hero {
  position: relative;
  padding: clamp(1.25rem, 2.8vw, 2rem);
  overflow: hidden;
  background: var(--heady-admin-surface);
  border: 1px solid var(--heady-admin-line);
  border-left: 4px solid var(--heady-admin-primary);
  border-radius: 12px;
  box-shadow: var(--heady-admin-shadow-soft);
  animation: heady-card-enter 480ms var(--heady-admin-transition) both;
}

.heady-system-hero h1 {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.heady-system-hero h1:before {
  width: 0.82rem;
  height: 0.82rem;
  content: "";
  border-radius: 999px;
  background: var(--heady-admin-primary);
  box-shadow: 0 0 0 8px var(--heady-admin-primary-soft);
}

.heady-system-hero p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0;
  color: var(--heady-admin-muted);
  font-size: 1rem;
}

.heady-system-hero .heady-eyebrow,
.heady-card-kicker {
  margin: 0 0 0.55rem;
  color: var(--heady-admin-primary-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.heady-card {
  position: relative;
  isolation: isolate;
  min-height: 180px;
  padding: 1.25rem;
  overflow: hidden;
  background: var(--heady-admin-surface);
  border: 1px solid var(--heady-admin-line);
  border-radius: var(--heady-admin-radius);
  box-shadow: var(--heady-admin-shadow-soft);
  animation: heady-card-enter 520ms var(--heady-admin-transition) both;
  transition:
    border-color var(--heady-admin-transition),
    box-shadow var(--heady-admin-transition),
    transform var(--heady-admin-transition);
}

.heady-card:hover {
  border-color: color-mix(in srgb, var(--heady-admin-primary) 28%, var(--heady-admin-line));
  box-shadow: var(--heady-admin-shadow);
  transform: translateY(-2px);
}

.heady-card h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0;
  color: var(--heady-admin-ink);
  font-size: 1.05rem;
  font-weight: 760;
  letter-spacing: -0.025em;
  border: 0;
}

.heady-card h2:before {
  flex: 0 0 auto;
  width: 0.6rem;
  height: 0.6rem;
  content: "";
  border-radius: 999px;
  background: var(--heady-admin-primary);
  box-shadow: 0 0 0 6px var(--heady-admin-primary-soft);
}

.heady-card p {
  color: var(--heady-admin-muted);
}

.heady-card .heady-card-kicker {
  margin-bottom: 0.55rem;
}

.heady-card strong {
  color: var(--heady-admin-ink);
}

.heady-card .description,
.heady-system-wrap .description {
  color: var(--heady-admin-muted);
}

.heady-card code,
.heady-dash-list code {
  display: inline-block;
  max-width: 100%;
  padding: 0.2rem 0.45rem;
  overflow-wrap: anywhere;
  color: #334155;
  font-size: 12px;
  background: rgba(15, 23, 42, 0.055);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 6px;
}

.heady-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.heady-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.28rem 0.65rem;
  color: var(--heady-admin-primary-strong);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  background: var(--heady-admin-primary-soft);
  border: 1px solid color-mix(in srgb, var(--heady-admin-primary) 16%, transparent);
  border-radius: 7px;
}

.heady-badge:before {
  width: 0.42rem;
  height: 0.42rem;
  content: "";
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 12%, transparent);
}

.heady-badge.is-success {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.18);
}

.heady-badge.is-muted {
  color: #64748b;
  background: rgba(100, 116, 139, 0.12);
  border-color: rgba(100, 116, 139, 0.16);
}

.heady-badge.is-error {
  color: #b32d2e;
  background: rgba(179, 45, 46, 0.1);
  border-color: rgba(179, 45, 46, 0.18);
}

.heady-card-wide {
  grid-column: 1 / -1;
}

.heady-card-wide .form-table {
  margin-top: 0.25rem;
}

.heady-system-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.heady-system-metric {
  display: grid;
  gap: 0.25rem;
  min-height: 5.25rem;
  padding: 0.85rem 0.95rem;
  background: rgba(15, 23, 42, 0.035);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: var(--heady-admin-radius-sm);
}

.heady-system-metric__label {
  color: var(--heady-admin-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.heady-system-metric__value {
  color: var(--heady-admin-ink);
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.heady-system-metric__hint {
  color: var(--heady-admin-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.heady-shortcuts,
.heady-dash-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.heady-shortcuts li,
.heady-dash-list li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1.1rem;
}

.heady-shortcuts li:before,
.heady-dash-list li:before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 0.4rem;
  height: 0.4rem;
  content: "";
  background: var(--heady-admin-primary);
  border-radius: 999px;
}

.heady-dash-welcome h3 {
  margin-top: 0;
  color: var(--heady-admin-ink);
  font-size: 1.15rem;
  letter-spacing: -0.025em;
}

.heady-dash-shortcuts {
  margin-top: 0.35rem;
}

#dashboard-widgets .postbox {
  animation: heady-card-enter 480ms var(--heady-admin-transition) both;
}

#dashboard-widgets .postbox:hover {
  box-shadow: var(--heady-admin-shadow);
  transform: translateY(-2px);
}

#heady_welcome.postbox {
  border-top: 0;
}

#heady_welcome.postbox .postbox-header {
  background: var(--heady-admin-primary-soft);
}

body.wp-admin.heady-admin-theme-dark #heady_welcome.postbox .postbox-header {
  background: color-mix(in srgb, var(--heady-admin-primary) 20%, var(--heady-admin-surface));
}

/* Dashboard: Flamingo inbox */
#heady_flamingo_inbox.heady-flamingo-inbox-postbox .postbox-header {
  background: linear-gradient(
    125deg,
    color-mix(in srgb, var(--heady-admin-primary) 22%, #0f172a) 0%,
    color-mix(in srgb, var(--heady-admin-primary) 55%, #1e293b) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#heady_flamingo_inbox.heady-flamingo-inbox-postbox .postbox-header h2 {
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

#heady_flamingo_inbox.heady-flamingo-inbox-postbox .handle-order-higher,
#heady_flamingo_inbox.heady-flamingo-inbox-postbox .handle-order-lower,
#heady_flamingo_inbox.heady-flamingo-inbox-postbox .handlediv {
  color: rgba(248, 250, 252, 0.85);
}

#heady_flamingo_inbox.heady-flamingo-inbox-postbox .inside {
  margin: 0;
  padding: 0;
}

.heady-flamingo-inbox-widget {
  padding: 1.25rem 1.35rem 1.35rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.03) 0%, transparent 42%);
}

body.wp-admin.heady-admin-theme-dark .heady-flamingo-inbox-widget {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.06) 0%, transparent 42%);
}

.heady-flamingo-inbox-widget__hero {
  margin-bottom: 1.35rem;
}

.heady-flamingo-inbox-widget__lead {
  margin: 0 0 1rem;
  max-width: 52rem;
  color: var(--heady-admin-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.heady-flamingo-inbox-widget__cta.button-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--heady-admin-primary) 35%, transparent);
}

.heady-flamingo-inbox-widget__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.75rem;
}

.heady-flamingo-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 5.5rem;
  padding: 0.85rem 0.95rem;
  background: var(--heady-admin-surface);
  border: 1px solid var(--heady-admin-line);
  border-radius: var(--heady-admin-radius);
  box-shadow: var(--heady-admin-shadow-soft);
  transition:
    border-color var(--heady-admin-transition),
    box-shadow var(--heady-admin-transition),
    transform var(--heady-admin-transition);
}

.heady-flamingo-stat:hover {
  border-color: color-mix(in srgb, var(--heady-admin-primary) 28%, var(--heady-admin-line));
  box-shadow: var(--heady-admin-shadow);
  transform: translateY(-1px);
}

.heady-flamingo-stat__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--heady-admin-muted);
}

.heady-flamingo-stat__value {
  font-size: 1.85rem;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--heady-admin-ink);
}

.heady-flamingo-stat__hint {
  margin-top: auto;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--heady-admin-muted);
}

.heady-flamingo-stat.is-inbox .heady-flamingo-stat__value {
  color: var(--heady-admin-primary-strong);
}

.heady-flamingo-stat.is-recent .heady-flamingo-stat__value {
  color: #0369a1;
}

.heady-flamingo-stat.is-today .heady-flamingo-stat__value {
  color: #0f766e;
}

.heady-flamingo-stat.is-spam .heady-flamingo-stat__value {
  color: #b45309;
}

.heady-flamingo-stat.is-trash .heady-flamingo-stat__value {
  color: #64748b;
}

body.wp-admin.heady-admin-theme-dark .heady-flamingo-stat.is-inbox .heady-flamingo-stat__value {
  color: color-mix(in srgb, var(--heady-admin-primary) 55%, #fff);
}

body.wp-admin.heady-admin-theme-dark .heady-flamingo-stat.is-recent .heady-flamingo-stat__value {
  color: #7dd3fc;
}

body.wp-admin.heady-admin-theme-dark .heady-flamingo-stat.is-today .heady-flamingo-stat__value {
  color: #5eead4;
}

body.wp-admin.heady-admin-theme-dark .heady-flamingo-stat.is-spam .heady-flamingo-stat__value {
  color: #fbbf24;
}

body.wp-admin.heady-admin-theme-dark .heady-flamingo-stat.is-trash .heady-flamingo-stat__value {
  color: #cbd5e1;
}

.heady-flamingo-inbox-widget__latest {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--heady-admin-line);
}

.heady-flamingo-inbox-widget__latest h3 {
  margin: 0 0 0.75rem;
  color: var(--heady-admin-ink);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.heady-flamingo-message-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.heady-flamingo-message-list__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: start;
  margin: 0;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

body.wp-admin.heady-admin-theme-dark .heady-flamingo-message-list__item {
  border-top-color: rgba(148, 163, 184, 0.16);
}

.heady-flamingo-message-list__item:first-child {
  border-top: 0;
}

.heady-flamingo-message-list__link {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  text-decoration: none;
}

.heady-flamingo-message-list__title {
  overflow: hidden;
  color: var(--heady-admin-ink);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heady-flamingo-message-list__excerpt,
.heady-flamingo-message-list__date {
  color: var(--heady-admin-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.heady-flamingo-message-list__date {
  white-space: nowrap;
}

.heady-flamingo-inbox-widget__footer {
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--heady-admin-line);
  font-size: 0.875rem;
}

.heady-flamingo-inbox-widget__sep {
  color: var(--heady-admin-muted);
}

.heady-flamingo-inbox-widget__empty {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  background: rgba(100, 116, 139, 0.08);
  border-radius: var(--heady-admin-radius-sm);
}

body.wp-admin.heady-admin-theme-dark .heady-flamingo-inbox-widget__empty {
  color: var(--heady-admin-muted);
}

body.login {
  min-height: 100vh;
}

body.login.heady-login-theme-dark {
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--heady-admin-primary) 28%, transparent) 0, transparent 34rem),
    linear-gradient(145deg, #0b1220 0%, #111827 52%, #020617 100%);
}

body.login.heady-login-theme-light {
  background:
    radial-gradient(circle at top, var(--heady-admin-primary-soft) 0, transparent 32rem),
    var(--heady-admin-bg);
}

#login {
  width: min(400px, calc(100% - 2rem));
  padding-top: 7vh;
}

.login h1 a {
  transition:
    filter var(--heady-admin-transition),
    transform var(--heady-admin-transition);
}

.login h1 a:hover {
  filter: drop-shadow(0 8px 16px color-mix(in srgb, var(--heady-admin-primary) 16%, transparent));
  transform: translateY(-2px);
}

.login form {
  padding: 2rem;
  background: var(--heady-admin-surface);
  border: 1px solid var(--heady-admin-line);
  border-radius: 12px;
  box-shadow: var(--heady-admin-shadow);
  animation: heady-card-enter 520ms var(--heady-admin-transition) both;
}

.login #nav,
.login #backtoblog {
  text-align: center;
}

body.login.heady-login-theme-dark #nav a,
body.login.heady-login-theme-dark #backtoblog a,
body.login.heady-login-theme-dark .privacy-policy-page-link a {
  color: rgba(255, 255, 255, 0.74);
}

body.login.heady-login-theme-dark #nav a:hover,
body.login.heady-login-theme-dark #backtoblog a:hover,
body.login.heady-login-theme-dark .privacy-policy-page-link a:hover {
  color: #fff;
}

@keyframes heady-card-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
