.grant-feature-entry { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .75rem; border-radius: .375rem; text-align: left; color: var(--color-muted-foreground); }
.grant-feature-entry:hover { background: var(--color-muted); }
.grant-feature-entry:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 3px; }
.catalog-locked-search { min-height: 36px; padding: .375rem .75rem; border: 1px solid var(--color-input); font-size: .875rem; background: var(--color-background); }
.grant-feature-preview { min-width: 0; overflow-wrap: anywhere; }
.grant-feature-dialog { max-height: 90vh; overflow-y: auto; }
/* A tool the visitor or the studio has not opened yet (plan 2026-11-20-interfaccia-nuova, point 12): the name stays
   readable, a small lock follows it; it used to sit over the middle of the word («Ammis🔒ibilità»). An icon-only button
   carries the lock in its corner. */
.grant-feature-locked { position: relative; }
.grant-feature-locked:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 2px; }
.grant-feature-watermark { display: inline-flex; flex-shrink: 0; align-items: center; margin-inline-start: .25rem; color: currentColor; opacity: .7; pointer-events: none; }
.grant-feature-watermark svg { width: 14px; height: 14px; }
.grant-feature-locked:hover .grant-feature-watermark, .grant-feature-locked:focus-visible .grant-feature-watermark { opacity: 1; }
.tabs > .grant-feature-locked { color: var(--color-faint); }
.tabs > .grant-feature-locked:hover { color: var(--color-muted-foreground); }
:is(#right-sidebar-chat, .sidebar-chat-button, [data-size="icon"], [data-size="icon-sm"], .h-8.w-8).grant-feature-locked > .grant-feature-watermark {
  position: absolute; inset-block-start: -3px; inset-inline-end: -3px; margin: 0; padding: 1px; border-radius: 9999px;
  background: var(--color-background); color: var(--color-muted-foreground); opacity: 1;
}
:is(#right-sidebar-chat, .sidebar-chat-button, [data-size="icon"], [data-size="icon-sm"], .h-8.w-8).grant-feature-locked > .grant-feature-watermark svg { width: 11px; height: 11px; }
.grant-phase-preview { position: relative; isolation: isolate; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.grant-phase-sample { display:block; padding:16px; opacity:.9; user-select:none; pointer-events:none; }
.grant-phase-unlock { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; width: 100%; background: rgb(248 250 252 / 22%); color: #334155; text-align: center; }
.grant-phase-unlock > strong, .grant-phase-unlock > span:not(.btn) { background:rgb(248 250 252 / 95%); padding:6px 10px; border-radius:6px; }
.grant-phase-unlock > svg { width: 32px; height: 32px; }
.grant-phase-unlock > span:not(.btn) { max-width: 32rem; font-size: 14px; }
.grant-phase-unlock:focus-visible { outline: 2px solid #0369a1; outline-offset: -4px; }
.grant-preview-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; padding:10px 14px; }
.grant-preview-bar p { display:inline; margin:0; }
.grant-preview-bar .grant-preview-summary { flex:1; min-width:min(100%,300px); font-size:12px; line-height:18px; }
.grant-preview-bar button { flex-shrink:0; margin-left:auto; padding:6px 10px; font-size:12px; }
.grant-preview-eligibility { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.grant-preview-eligibility p { margin-top:4px; font-size:13px; color:#64748b; }
.grant-preview-eligibility button { display:inline-flex; align-items:center; justify-content:center; gap:5px; border:1px solid #ddd6fe; border-radius:6px; background:#f5f3ff; color:#6d28d9; padding:6px 9px; font-size:12px; font-weight:600; }
.grant-preview-eligibility button svg { width:16px; height:16px; }
.grant-document-excerpt { position:relative; overflow:hidden; margin:8px; border:1px solid #e2e8f0; border-radius:4px; background:white; }
.grant-document-excerpt > img { display:block; width:100%; height:auto; mask-image:linear-gradient(to bottom,black 30%,transparent 50%); }
.grant-document-excerpt-unlock { position:absolute; top:50%; left:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; transform:translateY(-50%); margin-top:0; padding:0 20px; width:100%; text-align:center; color:#334155; }
.grant-document-excerpt:has(> img[hidden]) .grant-document-excerpt-unlock { position:relative; top:auto; transform:none; margin-top:16px; padding-bottom:32px; }
.grant-document-excerpt-unlock > svg { width:24px; height:24px; }
.grant-document-excerpt-unlock > span:not(.btn) { font-size:11px; color:#64748b; }
.grant-document-excerpt-unlock > strong { max-width:25rem; font-size:13px; font-weight:600; }
.grant-document-excerpt-unlock:focus-visible { outline:2px solid #0369a1; outline-offset:-4px; }
.grant-phase-sample img { display:block; width:100%; height:auto; }
@media (max-width: 639px) { .grant-phase-sample { width:720px; max-width:none; margin-left:50%; transform:translateX(-50%); padding:12px; } }

.grant-feature-carousel-controls { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; color:#64748b; font-size:11px; }
.grant-feature-carousel-controls button { padding:3px 6px; color:#475569; text-decoration:underline; text-underline-offset:2px; }
.grant-feature-carousel .grant-demo-heading { display:none; }
.grant-feature-carousel [data-grant-carousel-slides] { display:grid; align-items:start; }
.grant-feature-slide { grid-area:1 / 1; min-width:0; }
.grant-feature-slide[inert] { visibility:hidden; pointer-events:none; }
.grant-feature-slide[inert] .grant-demo *, .grant-feature-slide[inert] .grant-demo *::before,
.grant-feature-slide[inert] .grant-demo *::after { animation-play-state:paused; }
.grant-feature-carousel [data-grant-feature-description] > p { min-height:40px; }
.grant-feature-carousel-picker { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
.grant-feature-carousel-picker button { min-height:32px; padding:5px 6px; border:1px solid #e2e8f0; border-radius:6px; background:#f8fafc; color:#475569; font-size:11px; line-height:14px; }
.grant-feature-carousel-picker button[aria-current="true"] { border-color:#a78bfa; background:#f5f3ff; color:#6d28d9; font-weight:600; }
.grant-feature-carousel-picker button:hover { background:#ede9fe; }
.grant-feature-carousel button:focus-visible { outline:2px solid #0369a1; outline-offset:2px; }
