@import url("https://cdn.jsdelivr.net/npm/@fontsource/plus-jakarta-sans/index.css");
@import url("https://cdn.jsdelivr.net/npm/@fontsource/public-sans/index.css");
@import url("./design-tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font-body); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 30%, transparent); outline-offset: 2px; }

.catalog-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.catalog-nav { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--ink); color: white; padding: 24px 16px; }
.brand-lockup { padding: 0 8px 20px; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand-name { font: 700 23px/1 var(--font-display); letter-spacing: -.03em; }
.brand-meta { display: inline-flex; margin-top: 9px; padding: 3px 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; color: rgba(255,255,255,.48); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.nav-group { margin-top: 20px; }
.nav-label { padding: 0 10px 6px; color: rgba(255,255,255,.35); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nav-link { display: flex; align-items: center; min-height: 34px; padding: 7px 10px; border-radius: 8px; color: rgba(255,255,255,.58); font-size: 12px; font-weight: 500; text-decoration: none; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.08); color: white; }

.catalog-main { min-width: 0; }
.catalog-topbar { position: sticky; top: 0; z-index: 30; min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 10px clamp(18px, 4vw, 48px); background: color-mix(in srgb, var(--surface) 92%, transparent); border-bottom: 1px solid var(--rule); backdrop-filter: blur(14px); }
.mobile-menu { display: none; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; }
.topbar-title { font-size: 12px; color: var(--ink-soft); }
.topbar-title strong { color: var(--ink); }
.topbar-links { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar-links a { color: var(--ink-soft); font-size: 12px; text-decoration: none; }
.topbar-links a:hover { color: var(--brand); }

.catalog-content { width: min(1180px, 100%); padding: 48px clamp(18px, 4vw, 56px) 96px; }
.hero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 54px); border-radius: var(--radius-lg); background: var(--ink); color: white; box-shadow: var(--shadow-lg); }
.hero::after { content: ""; position: absolute; width: 280px; height: 280px; right: -70px; top: -110px; border-radius: 50%; background: linear-gradient(140deg, var(--brand), var(--amora-roxo), var(--amora-rosa)); opacity: .74; filter: blur(5px); }
.hero > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 12px; color: var(--amora-rosa); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { max-width: 720px; margin: 0; font: 700 clamp(34px, 6vw, 58px)/1.03 var(--font-display); letter-spacing: -.04em; }
.hero p { max-width: 650px; margin: 18px 0 0; color: rgba(255,255,255,.65); font-size: 15px; line-height: 1.65; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-meta span { padding: 6px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.72); font-size: 11px; }

.chapter { padding-top: 72px; scroll-margin-top: 72px; }
.chapter-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; margin-bottom: 24px; }
.chapter-heading h2 { margin: 4px 0 0; font: 700 clamp(25px, 4vw, 34px)/1.15 var(--font-display); letter-spacing: -.025em; }
.chapter-heading p { max-width: 660px; margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.source-tag { align-self: start; padding: 5px 8px; border-radius: 6px; background: var(--cream-deep); color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.component { margin-top: 18px; border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); scroll-margin-top: 80px; }
.component-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--rule); }
.component-head h3 { margin: 0; font: 700 15px/1.3 var(--font-display); }
.component-head p { margin: 4px 0 0; color: var(--hint); font-size: 12px; line-height: 1.5; }
.component-api { flex-shrink: 0; padding: 4px 7px; border-radius: 5px; background: var(--canvas); color: var(--ink-soft); font-size: 10px; }
.preview { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 24px 20px; }
.preview.column { flex-direction: column; align-items: stretch; }
.preview.dark { background: var(--ink); }
.usage { padding: 12px 20px; border-top: 1px solid var(--rule); background: color-mix(in srgb, var(--canvas) 56%, var(--surface)); color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.usage strong { color: var(--ink); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.token-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); gap: 10px; }
.token { overflow: hidden; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.token-color { height: 70px; }
.token-info { padding: 10px 12px; }
.token-name { font-size: 11px; font-weight: 700; }
.token-value { margin-top: 3px; color: var(--hint); font-size: 10px; }
.scale-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 70px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.scale-row:last-child { border-bottom: 0; }
.scale-label, .scale-value { color: var(--hint); font-size: 11px; }
.space-bar { height: 10px; border-radius: 999px; background: var(--brand); }
.radius-sample { width: 92px; height: 62px; display: grid; place-items: center; border: 1px solid var(--active-border); background: var(--brand-light); color: var(--active-text); font-size: 10px; }
.type-sample { padding: 13px 0; border-bottom: 1px solid var(--rule); }
.type-sample:last-child { border: 0; }
.type-meta { margin-bottom: 4px; color: var(--hint); font-size: 10px; }
.t-display { font: 700 48px/1.05 var(--font-display); letter-spacing: -.02em; }
.t-h1 { font: 700 40px/1.15 var(--font-display); }
.t-h2 { font: 600 32px/1.2 var(--font-display); }
.t-h3 { font: 600 24px/1.3 var(--font-display); }
.t-body { font: 400 16px/1.55 var(--font-body); }
.t-small { font: 400 14px/1.5 var(--font-body); }
.t-micro { font: 700 12px/1.4 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }

.btn { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity .15s, border-color .15s, color .15s, background .15s; }
.btn:hover:not(:disabled) { opacity: .84; }
.btn:disabled { background: var(--canvas); border-color: var(--rule); color: var(--hint); cursor: not-allowed; opacity: .55; }
.btn-primary { background: var(--brand); color: white; }
.btn-dark { background: var(--ink); color: white; }
.btn-outline { background: var(--surface); border-color: var(--rule); color: var(--ink-soft); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-danger { background: var(--danger-dot); color: white; }
.btn-caution { background: var(--caution-dot); color: white; }
.btn-sm { min-height: 28px; padding: 6px 12px; border-radius: 6px; font-size: 12px; }
.btn-lg { min-height: 42px; padding: 11px 22px; border-radius: 10px; font-size: 14px; }
.btn-loading::before { content: ""; width: 12px; height: 12px; border: 2px solid rgba(255,255,255,.35); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.icon-button:hover { border-color: var(--brand); color: var(--brand); }

.field { display: grid; gap: 5px; width: min(100%, 330px); }
.field-label { color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.required { color: var(--danger-dot); }
.input, .textarea, .select-trigger { width: 100%; min-height: 38px; padding: 9px 13px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink-mid); font-size: 13px; outline: none; }
.input:focus, .textarea:focus, .select-trigger:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.input.error, .textarea.error { border-color: var(--danger-dot); box-shadow: 0 0 0 3px var(--danger-glow); }
.input:disabled { background: var(--canvas); color: var(--hint); }
.textarea { min-height: 84px; resize: vertical; }
.field-hint { color: var(--hint); font-size: 11px; }
.field-error { color: var(--danger-dot); font-size: 11px; }
.input-wrap { position: relative; }
.input-wrap .input { padding-left: 36px; }
.input-prefix { position: absolute; left: 13px; top: 50%; translate: 0 -50%; color: var(--hint); font-size: 12px; }
.select-trigger { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }

.checkbox-row, .toggle-row { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-mid); font-size: 13px; }
.checkbox { width: 15px; height: 15px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); color: white; }
.checkbox.checked, .checkbox.indeterminate { border-color: var(--brand); background: var(--brand); }
.toggle { position: relative; width: 36px; height: 20px; border: 0; border-radius: 10px; background: var(--rule); cursor: pointer; }
.toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); transition: translate .2s; }
.toggle.on { background: var(--brand); }
.toggle.on::after { translate: 16px 0; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid; border-radius: 999px; font-size: 11px; font-weight: 600; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-pending { background: var(--pending-light); border-color: var(--pending-border); color: var(--pending-text); }
.badge-active { background: var(--active-light); border-color: var(--active-border); color: var(--active-text); }
.badge-caution { background: var(--caution-light); border-color: var(--caution-border); color: var(--caution-text); }
.badge-success { background: var(--success-light); border-color: var(--success-border); color: var(--success-text); }
.badge-danger { background: var(--danger-light); border-color: var(--danger-border); color: var(--danger-text); }
.badge-archived { background: var(--archived-light); border-color: var(--archived-border); color: var(--archived-text); }
.badge-warning { background: var(--warning-light); border-color: var(--warning-border); color: var(--warning-text); }
.badge-brand { background: var(--brand-light); border-color: var(--brand); color: var(--brand); }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: white; font-size: 12px; font-weight: 700; }
.avatar.sm { width: 28px; height: 28px; font-size: 10px; }
.avatar.lg { width: 48px; height: 48px; font-size: 15px; }
.avatar.neutral { background: var(--ink-soft); }
.avatar.green { background: var(--success-dot); }
.avatar.purple { background: var(--archived-dot); }

.progress { width: min(100%, 300px); height: 7px; border-radius: 999px; background: var(--shimmer); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.spinner { width: 20px; height: 20px; border: 2px solid var(--rule); border-top-color: var(--brand); border-radius: 50%; animation: spin .75s linear infinite; }
.skeleton { height: 12px; border-radius: 5px; background: linear-gradient(90deg, var(--shimmer) 25%, var(--surface) 50%, var(--shimmer) 75%); background-size: 600px 100%; animation: shimmer 1.5s infinite; }
.divider { width: 100%; height: 1px; background: var(--rule); }

.card-demo { width: min(100%, 420px); border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.card-title { font: 700 14px/1.4 var(--font-display); }
.card-subtitle { color: var(--hint); font-size: 12px; }
.card-body { padding: 20px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.tip-card { padding: 14px 16px; border: 1px solid var(--active-border); border-radius: 10px; background: var(--brand-light); color: var(--active-text); font-size: 12px; line-height: 1.5; }
.stats { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); overflow: hidden; }
.stat { padding: 16px 18px; border-right: 1px solid var(--rule); }
.stat:last-child { border: 0; }
.stat-label { color: var(--hint); font-size: 11px; }
.stat-value { margin-top: 5px; font: 700 22px/1 var(--font-display); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); }
.tab { padding: 9px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--hint); font-size: 12px; cursor: pointer; }
.tab.active { border-color: var(--brand); color: var(--brand); font-weight: 700; }
.filter-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink-soft); font-size: 12px; }
.filter-chip.active { border-color: var(--brand); background: var(--brand-light); color: var(--active-text); }
.pagination { display: flex; align-items: center; gap: 5px; }
.page-button { width: 32px; height: 32px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.page-button.active { border-color: var(--brand); background: var(--brand); color: white; }
.action-menu { width: 240px; padding: 6px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-lg); }
.menu-item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 7px; color: var(--ink-mid); font-size: 12px; }
.menu-item:hover { background: var(--canvas); }
.menu-item.danger { color: var(--danger-text); }
.listbox { width: min(100%, 330px); padding: 5px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-md); }
.list-option { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border-radius: 7px; color: var(--ink-mid); font-size: 12px; }
.list-option.selected { background: var(--brand-light); color: var(--active-text); font-weight: 700; }

.upload { width: 100%; padding: 28px; border: 1.5px dashed var(--active-border); border-radius: 12px; background: color-mix(in srgb, var(--brand-light) 45%, var(--surface)); text-align: center; }
.upload strong { display: block; font-size: 13px; }
.upload span { display: block; margin-top: 4px; color: var(--hint); font-size: 11px; }
.toast { width: min(100%, 390px); display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 13px; border: 1px solid var(--success-border); border-radius: 10px; background: var(--success-light); color: var(--success-text); box-shadow: var(--shadow-md); }
.toast-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--success-dot); color: white; }
.toast strong { display: block; font-size: 12px; }
.toast p { margin: 3px 0 0; font-size: 11px; line-height: 1.45; }
.empty { width: 100%; padding: 36px 20px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); text-align: center; }
.empty-icon { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 10px; border-radius: 50%; background: var(--brand-light); color: var(--brand); }
.empty strong { display: block; font-size: 13px; }
.empty p { margin: 5px auto 14px; color: var(--hint); font-size: 11px; }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; }
.data-table { width: 100%; min-width: 620px; border-collapse: collapse; background: var(--surface); font-size: 12px; }
.data-table th { padding: 10px 14px; background: var(--canvas); color: var(--hint); text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.data-table td { padding: 12px 14px; border-top: 1px solid var(--rule); color: var(--ink-mid); }
.data-table tr:hover td { background: color-mix(in srgb, var(--canvas) 50%, var(--surface)); }

.modal-stage { width: 100%; min-height: 290px; display: grid; place-items: center; padding: 30px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 52%, var(--canvas)); }
.modal { width: min(100%, 410px); padding: 24px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-lg); }
.modal h4, .drawer h4 { margin: 0; font: 700 17px/1.3 var(--font-display); }
.modal p, .drawer p { margin: 7px 0 20px; color: var(--hint); font-size: 12px; line-height: 1.55; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.drawer-stage { position: relative; width: 100%; min-height: 320px; overflow: hidden; border-radius: 12px; background: var(--canvas); border: 1px solid var(--rule); }
.drawer { position: absolute; top: 0; right: 0; width: min(390px, 88%); height: 100%; padding: 22px; border-left: 1px solid var(--rule); background: var(--surface); box-shadow: var(--shadow-lg); }

.calendar { width: 300px; padding: 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.calendar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 12px; font-weight: 700; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 7px; color: var(--ink-soft); font-size: 11px; }
.day.label { color: var(--hint); font-size: 9px; text-transform: uppercase; }
.day.selected { background: var(--brand); color: white; }
.day.range { background: var(--brand-light); color: var(--active-text); }

.chart { width: 100%; min-height: 220px; display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 24px; gap: 8px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; color: var(--hint); font-size: 9px; text-align: right; }
.chart-area { position: relative; display: flex; align-items: end; gap: 8px; padding: 10px 8px 0; border-left: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: repeating-linear-gradient(to top, transparent 0, transparent 48px, color-mix(in srgb, var(--rule) 55%, transparent) 49px); }
.bar { flex: 1; min-width: 12px; border-radius: 5px 5px 0 0; background: var(--brand); }
.bar.alt { background: var(--amora-verde); }
.bar.purple { background: var(--amora-roxo); }
.chart-x { grid-column: 2; display: flex; justify-content: space-around; color: var(--hint); font-size: 9px; }

.app-shell-demo { width: 100%; min-height: 390px; display: grid; grid-template-columns: 180px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--rule); border-radius: 14px; background: var(--canvas); }
.demo-sidebar { padding: 18px 12px; background: var(--ink); color: white; }
.demo-logo { padding: 0 8px 16px; border-bottom: 1px solid rgba(255,255,255,.1); font: 700 17px var(--font-display); }
.demo-nav { margin-top: 14px; display: grid; gap: 4px; }
.demo-nav span { padding: 8px 9px; border-radius: 7px; color: rgba(255,255,255,.45); font-size: 10px; }
.demo-nav span.active { background: rgba(255,255,255,.1); color: white; }
.demo-main { min-width: 0; }
.demo-topbar { height: 48px; display: flex; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--rule); background: var(--surface); color: var(--hint); font-size: 10px; }
.demo-content { padding: 18px; }
.demo-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo-kpi { min-height: 75px; padding: 12px; border: 1px solid var(--rule); border-radius: 9px; background: var(--surface); }
.demo-kpi small { display: block; color: var(--hint); }
.demo-kpi strong { display: block; margin-top: 8px; font: 700 18px var(--font-display); }
.kanban { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 10px; overflow-x: auto; }
.kanban-column { padding: 10px; border: 1px solid var(--rule); border-radius: 10px; background: color-mix(in srgb, var(--canvas) 70%, var(--surface)); }
.kanban-title { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 11px; font-weight: 700; }
.kanban-card { padding: 11px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm); }
.kanban-card + .kanban-card { margin-top: 7px; }
.kanban-card strong { display: block; font-size: 11px; }
.kanban-card span { display: block; margin-top: 4px; color: var(--hint); font-size: 9px; }
.timeline { position: relative; display: grid; gap: 15px; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--rule); }
.timeline-item { position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -20px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--event-stage); box-shadow: 0 0 0 3px var(--surface); }
.timeline-item.process::before { background: var(--event-process); }
.timeline-item.communication::before { background: var(--event-communication); }
.timeline-item strong { display: block; font-size: 11px; }
.timeline-item span { color: var(--hint); font-size: 10px; }

.rule-list { display: grid; gap: 9px; padding: 0; margin: 0; list-style: none; }
.rule-list li { position: relative; padding: 12px 14px 12px 38px; border: 1px solid var(--rule); border-radius: 9px; background: var(--surface); color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.rule-list li::before { content: "✓"; position: absolute; left: 14px; color: var(--success-dot); font-weight: 800; }
.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guidance { padding: 16px; border: 1px solid; border-radius: 11px; }
.guidance h4 { margin: 0 0 9px; font-size: 12px; }
.guidance ul { margin: 0; padding-left: 17px; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.guidance.do { border-color: var(--success-border); background: var(--success-light); }
.guidance.dont { border-color: var(--danger-border); background: var(--danger-light); }

.prototype-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.prototype-link { display: block; min-height: 100px; padding: 16px; border: 1px solid var(--rule); border-radius: 11px; background: var(--surface); color: inherit; text-decoration: none; transition: translate .15s, box-shadow .15s, border-color .15s; }
.prototype-link:hover { translate: 0 -2px; border-color: var(--brand); box-shadow: var(--shadow-md); }
.prototype-link small { color: var(--brand); font-size: 10px; font-weight: 700; }
.prototype-link strong { display: block; margin-top: 8px; font: 700 13px/1.4 var(--font-display); }
.prototype-link span { display: block; margin-top: 4px; color: var(--hint); font-size: 10px; }

@keyframes spin { to { rotate: 360deg; } }
@keyframes shimmer { from { background-position: -600px 0; } to { background-position: 600px 0; } }

@media (max-width: 860px) {
  .catalog-shell { display: block; }
  .catalog-nav { position: fixed; left: 0; top: 0; z-index: 60; width: 260px; translate: -100% 0; transition: translate .2s ease; }
  .catalog-nav.open { translate: 0 0; }
  .mobile-menu { display: inline-flex; }
  .catalog-content { padding-top: 32px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .topbar-links { display: none; }
  .chapter-heading { display: block; }
  .source-tag { display: inline-flex; margin-top: 10px; }
  .component-head { display: block; }
  .component-api { display: inline-flex; margin-top: 10px; }
  .stats, .demo-kpis { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--rule); }
  .app-shell-demo { grid-template-columns: 58px minmax(0, 1fr); }
  .demo-sidebar { padding-inline: 8px; }
  .demo-logo { font-size: 0; text-align: center; }
  .demo-logo::after { content: "a"; font-size: 17px; }
  .demo-nav span { overflow: hidden; white-space: nowrap; font-size: 0; }
  .demo-nav span::first-letter { font-size: 10px; }
  .do-dont { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
