/* Action buttons share a pill shape. Field controls keep their own geometry. */
body :is(.button-primary, .button-dark, .button-outline, .button-choice, .admin-delete-button, .choice-option, .quick-filter, .clear-filters, .quick-filters-toggle, .menu-toggle, .text-action) {
  border-radius: 999px !important;
}
.admin-add-toolbar { display: flex; justify-content: flex-end; margin: 0 0 20px; gap: 12px; }
.admin-add-toolbar .button-primary { margin: 0; }
.admin-action-svg { display: none; }
.admin-action-label { display: inline-flex; align-items: center; gap: 5px; }
.admin-panel > .admin-panel-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px; margin: 0 0 24px; }
.admin-panel-heading > div:first-child { min-width: 0; }
.admin-panel-heading h3 { color: var(--ink); }
.admin-panel-heading p, .admin-panel-heading .admin-intro { max-width: 700px; margin: 0; font-size: 15px; line-height: 1.6; color: var(--soft); }
.admin-panel-heading .admin-add-toolbar { margin: 0; align-items: center; }
#work-form :is(input:not([type="checkbox"],[type="radio"],[type="hidden"]),textarea,select) { border: 1px solid var(--theme-line); border-radius: 12px; background: var(--paper); }
#work-form :is(.search-select,.admin-search-select) { border: 1px solid var(--theme-line); border-radius: 12px; }
#work-form :is(.search-select,.admin-search-select) input { border: 0; border-radius: 11px 0 0 11px; background: transparent; }
#work-form :is(.search-select,.admin-search-select) .select-toggle { border-radius: 0 11px 11px 0; }
#work-form :is(.select-options,.admin-select-options) { border-radius: 10px; }
#work-form input[type="file"] { padding: 10px; }
.add-symbol { font-size: 23px; font-weight: 400; line-height: 1; }
body .admin-tabs .admin-tab { transition: background-color .15s, color .15s; padding: 12px 22px; border-radius: 4px 4px 0 0 !important; }
body .admin-tabs .admin-tab:is(:hover,:focus-visible,.active) { background: var(--brand-surface); color: var(--rose); }
body .admin-tabs .admin-tab::after { display: block; height: 3px; background: var(--rose); bottom: -1px; }
body .admin-tabs .admin-tab:is(:hover,.active)::after { transform: scaleX(1); }
body .admin-console-actions .admin-exit { position: static; inset: auto; background: linear-gradient(115deg, var(--rose), #503566); border-color: transparent; color: #fff; }
body .admin-console-actions .admin-exit:hover { background: linear-gradient(115deg, #654583, #402851); color: #fff; }
body .admin-delete-button { background: #fbe5e5; border: 1px solid #e8b6b6; color: #943e43; }
body .admin-delete-button:hover { background: #f3caca; border-color: #d99499; color: #792c33; }
.admin-work-actions button:disabled, .lightbox-admin-actions button:disabled { opacity: .65; cursor: progress; }
body .inline-form { grid-template-columns: minmax(110px, .7fr) minmax(150px, 1fr) minmax(150px, 1fr); }
body .testimonial-form { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.featured-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: inherit; overflow: hidden; }
.featured-open img { width: 100%; height: 100%; cursor: pointer; }
.lightbox-admin-actions { position: relative; display: flex; align-items: center; gap: 4px; margin-left: auto; flex: 0 0 auto; }
.lightbox-admin-actions[hidden] { display: none; }
.gallery-lightbox-topbar { gap: 8px; }
.gallery-lightbox-content { grid-template-rows: auto minmax(0,1fr) auto; }
.gallery-lightbox-caption { position: relative; }
body .lightbox-admin-actions .viewer-action { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-width: 40px; padding: 9px; border: 1px solid var(--theme-line); border-radius: 50%; background: transparent; color: var(--rose); cursor: pointer; }
body .lightbox-admin-actions .viewer-action:is(:hover,:focus-visible) { background: var(--brand-surface); border-color: var(--rose); }
.viewer-action svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.viewer-action[data-viewer-feature] svg { fill: none; }
.viewer-action[data-viewer-feature][aria-pressed="true"] svg { fill: currentColor; }
body .lightbox-admin-actions .viewer-remove { color: #943e43; border-color: #e8b6b6; }
body .lightbox-admin-actions .viewer-remove:hover { background: #fbe5e5; border-color: #d99499; }
body .gallery-lightbox-close:is(:hover,:focus-visible) { background: #f3e2bf; border-color: var(--action-gold); color: var(--ink); transform: none; }
body .category-actions .category-icon-action { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; min-height: 36px; padding: 8px; border: 1px solid var(--theme-line); border-radius: 50%; background: transparent; color: var(--rose); cursor: pointer; }
.category-icon-action svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body .category-actions .category-icon-action:is(:hover,:focus-visible) { background: var(--brand-surface); border-color: var(--rose); }
body .category-actions .category-remove { color: #943e43; border-color: #e8b6b6; }
body .category-actions .category-remove:is(:hover,:focus-visible) { background: #fbe5e5; border-color: #d99499; }
body .category-actions .category-icon-action:disabled { cursor: progress; }
.category-branch-heading { gap: 4px; }
.category-actions { align-items: center; }
.category-toggle { min-height: 36px; padding: 0; }
.category-chevron-area { flex-basis: 36px; height: 36px; min-height: 36px; }
.category-chevron-area .category-chevron { width: 18px; height: 18px; fill: none; stroke: currentColor; color: var(--rose); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-admin-actions .admin-action-error { position: absolute; top: calc(100% + 8px); right: 0; z-index: 2; width: min(280px,70vw); padding: 12px; margin: 0; border: 1px solid #e8b6b6; border-radius: 12px; background: var(--paper); box-shadow: 0 6px 18px #40334d20; }
.viewer-status { flex-basis: 100%; text-align: center; margin: 0; font-size: 13px; }
.admin-dialog.removal-dialog { width: min(92vw, 500px); padding: clamp(22px, 4vw, 30px); border: 1px solid var(--theme-line); border-radius: 24px; }
.removal-dialog .admin-dialog-head { align-items: center; margin-bottom: 22px; gap: 18px; }
.removal-dialog .admin-dialog-head h2 { font-size: clamp(25px, 4vw, 30px); line-height: 1.2; }
.removal-dialog p { overflow-wrap: anywhere; font-size: 15px; line-height: 1.65; margin: 0 0 12px; }
.removal-dialog .removal-description { color: var(--ink); }
.removal-dialog .removal-note { color: var(--soft); font-size: 13px; }
.removal-dialog .removal-status:empty { display: none; }
.removal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--theme-line); }
.removal-actions button { min-height: 44px; padding: 10px 20px; font-size: 14px; }
.removal-dialog[aria-busy="true"] .dialog-close, .removal-dialog button:disabled { cursor: progress; }
.action-spinner { display: inline-block; flex: 0 0 15px; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: action-spin .7s linear infinite; }
button[aria-busy="true"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: progress; }
.admin-action-error { margin: 10px 0 0; color: #943e43; font-size: 14px; line-height: 1.5; }
.upload-progress { grid-column: 1 / -1; width: 100%; min-width: 0; padding: 14px 16px; border: 1px solid var(--theme-line); border-radius: 14px; background: var(--brand-surface); }
.upload-progress p, .work-file-summary { margin: 0 0 8px; color: var(--ink); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.work-file-summary { margin: 8px 0 0; }
.work-file-summary[hidden] { display: none; }
.upload-progress progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden; background: var(--paper); accent-color: var(--rose); }
.upload-progress progress::-webkit-progress-bar { background: var(--paper); border-radius: 999px; }
.upload-progress progress::-webkit-progress-value { background: var(--rose); border-radius: 999px; }
.upload-progress progress::-moz-progress-bar { background: var(--rose); border-radius: 999px; }
#admin-status:empty { display: none; }
@keyframes action-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .action-spinner { animation: none; border-right-color: currentColor; opacity: .65; } }
@media (max-width: 600px) {
  .admin-panel > .admin-panel-heading { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .admin-panel-heading .admin-add-toolbar { justify-content: flex-end; }
  .admin-work-copy { display: contents; }
  .admin-work-copy strong { grid-column: 2; grid-row: 1; align-self: end; }
  .admin-work-copy p { grid-column: 2; grid-row: 2; align-self: start; margin: 0; }
  .admin-work-copy .admin-work-status { grid-column: 1 / -1; grid-row: 3; justify-self: start; align-self: center; }
  .admin-work-actions { grid-column: 1 / -1; grid-row: 3; justify-self: end; justify-content: flex-end; flex-wrap: nowrap; gap: 4px; }
  .admin-work-photo { grid-row: 1 / span 2; align-self: start; }
  .admin-work-actions .admin-action-label { display: none; }
  .admin-work-actions .admin-action-svg { display: block; width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  body .admin-work-actions button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; min-height: 32px; padding: 6px; background: transparent; border: 1px solid var(--theme-line); color: var(--rose); }
  body .admin-work-actions button:hover { background: var(--brand-surface); border-color: var(--rose); }
  body .admin-work-actions .admin-feature-button { background: transparent; color: var(--rose); border-color: var(--theme-line); }
  body .admin-work-actions .admin-feature-button:hover { background: var(--brand-surface); border-color: var(--rose); }
  body .admin-work-row .admin-work-actions button[data-edit-work] { background: transparent; color: var(--rose); border-color: var(--theme-line); }
  body .admin-work-row .admin-work-actions button[data-edit-work]:hover { background: var(--brand-surface); border-color: var(--rose); }
  .admin-work-actions [data-feature-work][aria-pressed="true"] svg { fill: currentColor; }
  body .admin-work-actions [data-delete-work] { color: #943e43; border-color: #e8b6b6; }
  body .admin-work-actions [data-delete-work]:hover { background: #fbe5e5; border-color: #d99499; }
  body .inline-form, body .testimonial-form { grid-template-columns: 1fr; }
  body .admin-tabs { gap: 5px; }
  body .admin-tabs .admin-tab { padding: 10px 13px; }
}
@media (min-width: 380px) and (max-width: 600px) {
  .admin-work-row { row-gap: 6px; }
  .admin-work-photo { grid-row: 1 / span 3; }
  .admin-work-copy .admin-work-status, .admin-work-actions { grid-column: 2; }
}
