/* Shared marketplace and role workflow improvements. */
:root { --focus-ring: #1556b8; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
html { scroll-padding-top: 1rem; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 10000; padding: 12px 18px; color: white; background: #173756; }
.skip-link:focus { top: 12px; }
.browse-hero { grid-template-columns: minmax(0, 1fr); }
.browse-hero .hero-banner { min-height: 340px; }
.browse-hero .hero-content { max-width: 820px; }
.hero-secondary { margin-left: 12px; }
.store-nav { display: flex; flex-wrap: wrap; }
.store-nav .menu-item > a, .quick-actions a { min-height: 44px; display: inline-flex; align-items: center; }
.submenu a { min-height: 44px; }
.menu-item:focus-within .submenu { display: block; visibility: visible; opacity: 1; }
.store-header > *, .store-nav > *, .software-card-content, .software-search { min-width: 0; }
.store-mobile-categories { display: none; }
.software-search { margin: 24px 0; }
.software-search > label { display: block; margin-bottom: 8px; font-weight: 700; }
.software-search > div { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.software-search input { min-width: 0; width: min(100%, 560px); flex: 1 1 220px; padding: 13px; border: 1px solid #aab8c5; border-radius: 8px; }
.software-sales-actions, .catalog-pagination { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 20px 0; }
.software-card-actions a.btn { background: #126445; color: white; text-decoration: none; padding: 10px 14px; border-radius: 8px; }
.software-catalog-grid { display: grid; }
.software-card-actions a.btn { flex: 0 1 auto; width: auto; font-size: 13px; white-space: nowrap; }
.software-card-actions .software-details-link { flex: 1; }
.software-art-note { color: #526b5c; font-size: 11px; line-height: 1.5; }
.request-reference { overflow-wrap: anywhere; }
.inquiry-requirements { white-space: pre-wrap; overflow-wrap: anywhere; }
.task-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; margin: 20px 0; }
.task-actions a { min-height: 72px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 16px; border: 1px solid #d9e3e8; border-radius: 12px; background: #fff; color: #183d50; text-decoration: none; }
.task-actions a:hover { border-color: #147153; background: #f1fbf6; }
.task-actions small { color: #536375; line-height: 1.4; }
.quick-action-list a { display: block; padding: 12px; border: 1px solid #d9e3e8; border-radius: 8px; text-decoration: none; }
.grid-form textarea { width: 100%; min-height: 120px; height: auto; }
.grid-form .wide { grid-column: 1 / -1; }
button[disabled] { opacity: .65; cursor: wait; }
@media (max-width: 767px) {
  .task-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .task-actions a { padding: 12px; min-height: 96px; }
  .task-actions strong { font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
  .task-actions small { font-size: 12px; }
  .store-category-item { display: none; }
  .store-mobile-categories { display: block; width: 100%; }
  .store-mobile-categories summary { display: list-item; cursor: pointer; min-height: 44px; padding: 12px; color: #176234; font-weight: 700; }
  .store-mobile-categories > div { display: grid; gap: 4px; padding: 8px; max-height: 50vh; overflow: auto; }
  .store-mobile-categories a { padding: 12px; min-height: 44px; }
  .store-header .quick-actions { display: flex; flex-wrap: wrap; grid-column: 1 / -1; }
  .quick-actions a { color: #24513a; }
  .store-header { gap: 12px; flex-wrap: wrap; }
  .store-header .search-box { order: 3; width: 100%; }
  .store-nav { gap: 0; padding: 5px 12px; }
  .store-nav .menu-item > a { padding: 8px 10px; }
  .store-nav .menu-item { position: relative; }
  .store-nav .submenu { max-width: calc(100vw - 32px); }
  .browse-hero .hero-content { padding: 24px 20px; }
  .browse-hero .hero-content h1 { font-size: clamp(26px, 7vw, 36px); }
  .hero-secondary { margin: 10px 0 0; }
  .software-card-actions { flex-wrap: wrap; }
  .software-card-actions a { min-height: 44px; }
  .software-preview-heading { flex-wrap: wrap; gap: 6px; }
  .grid-form { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
