/* S M Shahid Shah — Prompt Tools desktop alignment.
   Fixes split/blank tab fragments, and presents six accessible tools in one
   consistent row. Scoped to Prompt Tools and min-width 721px only. */
@media screen and (min-width:721px) {
  .member-app #view-tools .sm-prompt-tool-tabs {
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    align-items:stretch!important;
    justify-content:stretch!important;
    gap:9px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:14px 0 12px!important;
    padding:9px!important;
    border:1px solid var(--line,#e6d4bd)!important;
    border-radius:18px!important;
    background:var(--surface,#fffdfa)!important;
    box-shadow:0 6px 24px rgba(77,47,17,.055)!important;
  }
  .member-app #view-tools .sm-prompt-tool-tabs > button.sm-prompt-tool-tab,
  .member-app #view-tools .sm-prompt-tool-tabs > button.sm-prompt-tool-tab.sm-mobile-extra-tool {
    display:flex!important;
    position:relative!important;
    box-sizing:border-box!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    justify-content:flex-start!important;
    align-items:center!important;
    gap:10px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:85px!important;
    height:auto!important;
    margin:0!important;
    padding:12px 11px!important;
    overflow:hidden!important;
    border:1px solid var(--line,#e6d4bd)!important;
    border-radius:13px!important;
    background:var(--surface2,#fffcf7)!important;
    color:var(--ink,#2e2317)!important;
    text-align:left!important;
    vertical-align:middle!important;
    transform:none!important;
    box-shadow:none!important;
    cursor:pointer!important;
    transition:border-color .16s ease,background .16s ease,box-shadow .16s ease!important;
  }
  .member-app #view-tools .sm-prompt-tool-tabs > button.sm-prompt-tool-tab::before,
  .member-app #view-tools .sm-prompt-tool-tabs > button.sm-prompt-tool-tab::after {
    display:none!important;
    content:none!important;
  }
  .member-app #view-tools .sm-prompt-tool-tabs > button.sm-prompt-tool-tab > span.sm-prompt-tab-icon {
    box-sizing:border-box!important;
    display:grid!important;
    place-items:center!important;
    flex:0 0 34px!important;
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
    max-width:34px!important;
    max-height:34px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #d7b477!important;
    border-radius:10px!important;
    background:linear-gradient(135deg,#fff1d5,#f5deb2)!important;
    color:#9a661e!important;
    line-height:1!important;
    font-size:19px!important;
    font-weight:800!important;
  }
  .member-app #view-tools .sm-prompt-tool-tabs > button.sm-prompt-tool-tab > span:last-child {
    display:flex!important;
    flex:1 1 auto!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:flex-start!important;
    gap:4px!important;
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    padding:0!important;
    margin:0!important;
    overflow:hidden!important;
  }
  .member-app #view-tools .sm-prompt-tool-tabs > button.sm-prompt-tool-tab strong {
    display:block!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    color:var(--ink,#2e2317)!important;
    font-size:12.3px!important;
    font-weight:850!important;
    letter-spacing:-.25px!important;
    line-height:1.29!important;
    overflow-wrap:break-word!important;
    white-space:normal!important;
  }
  .member-app #view-tools .sm-prompt-tool-tabs > button.sm-prompt-tool-tab small {
    display:block!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    color:var(--muted,#796856)!important;
    font-size:9.6px!important;
    line-height:1.4!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
  }
  .member-app #view-tools .sm-prompt-tool-tabs > button.sm-prompt-tool-tab:hover {
    border-color:#d6a65f!important;
    background:linear-gradient(135deg,#fffaef,#fff4e0)!important;
    box-shadow:0 4px 13px rgba(137,90,26,.10)!important;
  }
  .member-app #view-tools .sm-prompt-tool-tabs > button.sm-prompt-tool-tab.active,
  .member-app #view-tools .sm-prompt-tool-tabs > button.sm-prompt-tool-tab.sm-mobile-extra-tool.active {
    border-color:#d5a35c!important;
    background:linear-gradient(115deg,#fff0d2,#f0cb88)!important;
    box-shadow:0 5px 17px rgba(137,85,25,.14)!important;
  }
  .member-app #view-tools .sm-prompt-tool-tabs > button.sm-prompt-tool-tab:focus-visible {
    outline:2px solid #b87a26!important;
    outline-offset:2px!important;
  }
  .member-app #view-tools .sm-prompt-tool-tabs > button.sm-prompt-tool-tab[hidden],
  .member-app #view-tools .sm-prompt-tool-tabs > button.sm-prompt-tool-tab.sm-mobile-extra-tool[hidden] {
    display:none!important;
  }
  html[data-theme="dark"] .member-app #view-tools .sm-prompt-tool-tabs {
    background:#251d17!important;
    border-color:#59432e!important;
  }
  html[data-theme="dark"] .member-app #view-tools .sm-prompt-tool-tabs > button.sm-prompt-tool-tab {
    background:#30241b!important;
    color:#f6e8d8!important;
    border-color:#624932!important;
  }
  html[data-theme="dark"] .member-app #view-tools .sm-prompt-tool-tabs > button.sm-prompt-tool-tab strong {
    color:#fff0db!important;
  }
  html[data-theme="dark"] .member-app #view-tools .sm-prompt-tool-tabs > button.sm-prompt-tool-tab small {
    color:#d3bfa3!important;
  }
  html[data-theme="dark"] .member-app #view-tools .sm-prompt-tool-tabs > button.sm-prompt-tool-tab.active {
    background:linear-gradient(125deg,#674728,#936b36)!important;
    border-color:#b58c51!important;
  }
  html[data-theme="dark"] .member-app #view-tools .sm-prompt-tool-tabs > button.sm-prompt-tool-tab:hover:not(.active) {
    background:#46321f!important;
    border-color:#946c3c!important;
  }
}
@media screen and (min-width:721px) and (max-width:1180px) {
  /* Smaller laptops: still one row, with horizontal swipe rather than crushed cards. */
  .member-app #view-tools .sm-prompt-tool-tabs {
    grid-template-columns:repeat(6,minmax(165px,1fr))!important;
    overflow-x:auto!important;
    overscroll-behavior-x:contain!important;
    scrollbar-width:thin!important;
  }
  .member-app #view-tools .sm-prompt-tool-tabs > button.sm-prompt-tool-tab {
    min-height:88px!important;
    padding:10px 9px!important;
  }
}
@media screen and (min-width:721px) and (prefers-reduced-motion:reduce) {
  .member-app #view-tools .sm-prompt-tool-tabs > button.sm-prompt-tool-tab {
    transition:none!important;
  }
}