/* Scoped chooser styles: keep the existing dashboard, catalog and tools intact. */
body.gd-tool-picker-open { overflow: hidden; }
.gd-tool-dialog { width: min(850px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #e0eafa; border-radius: 25px; color: var(--navy, #03152b); background: #fff; box-shadow: 0 28px 100px #03152b38; overscroll-behavior: contain; scrollbar-gutter: stable; font-family: inherit; }
.gd-tool-dialog::backdrop { background: #10274370; backdrop-filter: blur(4px); }
.gd-tool-picker { position: relative; padding: 32px 30px 18px; background: radial-gradient(ellipse at 12% 6%, #eaf9ff80, transparent 45%), #fff; }
.gd-tool-dialog button { min-height: 44px; cursor: pointer; font: inherit; }
.gd-tool-dialog button:focus-visible { outline: 3px solid #1255cd; outline-offset: 4px; }
.gd-tool-close { position: absolute; top: 12px; right: 12px; width: 44px; border: 0; border-radius: 50%; background: transparent; color: #607b9e; font-size: 30px !important; line-height: 1; }
.gd-tool-close:hover { background: #edf6ff; }
.gd-tool-heading { padding: 0 20px; text-align: center; }
.gd-tool-heading > p:first-child { margin: 4px 0 7px; color: #526f97; font-size: 14px; font-weight: 600; }
.gd-tool-heading h2 { margin: 0; color: #081740; font-size: clamp(25px, 3.4vw, 37px); line-height: 1.4; letter-spacing: -.8px; }
.gd-tool-heading h2 span { font-size: .75em; }
.gd-tool-heading > p:last-child { margin: 5px 0 25px; color: #526b92; font-size: 18px; }
.gd-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gd-tool-card { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-width: 0; padding: 20px 17px 17px; border: 1px solid #dfe8f5; border-radius: 21px; background: linear-gradient(135deg, #fff, #f9fcff); box-shadow: 0 3px 13px #183f7c06; }
.gd-tool-card:hover { border-color: #29bcf3; background: linear-gradient(135deg, #f1fcff, #f8fcff); box-shadow: 0 5px 20px #03bff014; }
.gd-tool-card-intro { display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: center; gap: 12px; }
.gd-tool-card h3 { margin: 0 0 4px; color: #081740; font-size: 21px; line-height: 1.4; }
.gd-tool-name { color: #5c7291; font-size: 11px; }
.gd-tool-card p { margin: 6px 0 0; color: #4d668d; font-size: 15px; line-height: 1.65; }
.gd-tool-art { display: block; width: 86px; height: 94px; filter: drop-shadow(0 7px 5px #24549b26); }
.gd-tool-art svg { display: block; width: 100%; height: 100%; }
.gd-tool-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gd-tool-details { display: inline-flex; align-items: center; gap: 7px; padding: 0 2px; border: 0; background: transparent; color: #0b2b64; font-size: 14px !important; white-space: nowrap; }
.gd-tool-details > span { font-size: 22px; }
.gd-tool-details:hover { text-decoration: underline; }
.gd-tool-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 15px; border: 1px solid #078de9; border-radius: 999px; background: linear-gradient(115deg, #0774f8, #04b8f4); box-shadow: 0 5px 12px #087ef822; color: #fff; font-size: 14px !important; font-weight: 700 !important; white-space: nowrap; }
.gd-tool-primary:hover { background: linear-gradient(115deg, #065fdb, #009de2); }
.gd-tool-primary > span { font-size: 22px; line-height: 1; }
.gd-tool-help { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; margin: 18px 0; padding: 12px; border: 0; border-radius: 17px; background: #f0f6ff; color: #143b7b; font-size: 16px !important; font-weight: 600 !important; }
.gd-tool-help > span:first-child { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #0785ed; font-size: 25px; }
.gd-tool-footer { padding-top: 10px; margin-top: 12px; border-top: 1px solid #e0e8f3; text-align: center; }
.gd-tool-footer button, .gd-tool-back { padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: #35598f; font-size: 14px !important; text-decoration: underline; text-underline-offset: 4px; }
.gd-tool-detail { padding: 0 12px; }
.gd-tool-back { margin-bottom: 7px; }
.gd-tool-detail-intro { display: flex; align-items: center; justify-content: center; gap: 20px; color: #526c91; }
.gd-tool-detail ul { display: grid; gap: 17px; padding: 23px; margin: 14px 0 0; list-style: none; border: 1px solid #e0edf7; border-radius: 18px 18px 0 0; border-bottom: 0; background: #f7fcff; }
.gd-tool-detail li { display: flex; align-items: center; gap: 12px; line-height: 1.6; }
.gd-tool-detail li > span { display: grid; place-items: center; flex-shrink: 0; width: 23px; height: 23px; border-radius: 50%; background: #04b8df; color: #fff; font-weight: 700; }
.gd-tool-detail-action { position: sticky; bottom: -1px; padding: 14px 22px 20px; border: 1px solid #e0edf7; border-top: 0; border-radius: 0 0 18px 18px; background: #f7fcff; }
.gd-tool-price-note { margin: 0 0 13px; padding-top: 14px; border-top: 1px solid #dce8f4; color: #46638b; font-size: 14px; line-height: 1.6; }
.gd-tool-price-note span { margin-right: 5px; }
.gd-tool-detail-action .gd-tool-primary { width: 100%; font-size: 17px !important; }
.gd-new-work { min-height: 44px; white-space: nowrap; }
@media (max-width: 600px) {
  .gd-tool-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 20px; }
  .gd-tool-picker { padding: 39px 14px 12px; }
  .gd-tool-heading { padding: 0 5px; }
  .gd-tool-heading h2 { font-size: 26px; }
  .gd-tool-heading > p:last-child { font-size: 15px; margin-bottom: 20px; }
  .gd-tool-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .gd-tool-card { gap: 13px; padding: 16px; }
  .gd-tool-card-intro { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
  .gd-tool-art { width: 76px; height: 80px; }
  .gd-tool-card h3 { font-size: 20px; }
  .gd-tool-card p { font-size: 14px; }
  .gd-tool-primary { padding: 10px 13px; }
  .gd-tool-help { gap: 8px; font-size: 13px !important; padding: 10px 7px; }
  .gd-tool-detail { padding: 0; }
  .gd-tool-detail-intro { gap: 12px; font-size: 13px; }
  .gd-tool-detail ul { padding: 18px 14px; }
  .gd-tool-detail-action { padding: 12px 14px 16px; }
  .gd-new-work { padding-inline: 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .gd-tool-dialog *, .gd-tool-dialog *::before, .gd-tool-dialog *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
