/* Shared local DM Sans assets: original files, SIL Open Font License. */
@font-face { font-family: 'DM Sans'; src: url('assets/fonts/dm-sans-variable.ttf') format('truetype'); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('assets/fonts/dm-sans-italic-variable.ttf') format('truetype'); font-style: italic; font-weight: 100 900; font-display: swap; }
/* Component styles derived from Hermod. Token values are generated from tokens.json. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--pv-canvas); color: var(--pv-text); font: 400 14px/20px var(--pv-font-sans); }
button, input, select, textarea { font: inherit; font-family:var(--pv-font-sans); }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--pv-link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
svg { flex-shrink: 0; vertical-align: middle; }
h1,h2,h3,h4,h5,h6,p { margin: 0; }
h1,h2,h3,h4,h5,h6 { color: var(--pv-heading); overflow-wrap: anywhere; }
h1 { font-size: 24px; line-height: 32px; font-weight: 600; }
h2,.type-section { font-size: 20px; line-height: 28px; font-weight: 600; }
h3,.type-subheading { font-size: 16px; line-height: 24px; font-weight: 600; }
h4,h5,h6 { font-size: 14px; }
small { font-size: 12px; line-height: 18px; color: var(--pv-secondary); }
:focus-visible { outline: 2px solid var(--pv-focus); outline-offset: 3px; }
#main:focus { outline: none; }
::selection { background: var(--pv-selection-bg); color: var(--pv-selection-fg); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 12px 20px; background: var(--pv-surface); z-index: 100; border-radius: 12px; }
.skip-link:focus { top: 12px; }
.muted { color: var(--pv-secondary); }
.row { display: flex; align-items: center; gap: 12px; }
.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.ml-auto { margin-left: auto; }
.grid { display: grid; gap: 24px; }
.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.eyebrow { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: var(--pv-secondary); }
.catalog-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--pv-sidebar-width); padding: 28px 16px 20px; background: var(--pv-surface); border-right: 1px solid var(--pv-border); display: flex; flex-direction: column; z-index: 30; overflow-y: auto; }
.brand { display: inline-flex; width: fit-content; padding: 0 12px; }
.brand img { width: 100px; height: auto; }
.sidebar-caption { margin: 30px 12px 20px; font-size: 11px; letter-spacing: 1.5px; font-weight: 600; color: var(--pv-heading); }
.sidebar-caption span { display: block; font-size: 12px; letter-spacing: 0; font-weight: 400; color: var(--pv-secondary); margin-top: 6px; }
.catalog-sidebar nav { display: grid; gap: 8px; }
.catalog-sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 42px; border-radius: 12px; color: var(--pv-secondary); font-size: 13px; text-decoration: none; }
.nav-index { font-size: 10px; opacity: .75; font-variant-numeric: tabular-nums; }
.catalog-sidebar nav a:hover { background: var(--pv-muted); }
.catalog-sidebar nav a[aria-current] { background: var(--pv-selection-bg); color: var(--pv-selection-fg); font-weight: 600; box-shadow: inset 3px 0 var(--pv-red); }
.sidebar-bottom { margin-top: auto; padding: 32px 12px 0; font-size: 11px; color: var(--pv-secondary); }
.sidebar-bottom .dot { display: inline-block; color: var(--pv-success-fg); margin-right: 5px; }
.sidebar-bottom small { display: block; margin-top: 5px; font-size: 10px; }
.catalog-workspace { margin-left: var(--pv-sidebar-width); }
.topbar { min-height: 76px; padding: 16px 32px; background: var(--pv-surface); border-bottom: 1px solid var(--pv-border); display: flex; align-items: center; justify-content: space-between; gap: 20px; position: sticky; top: 0; z-index: 20; }
.topbar>.row:first-child { font-size: 12px; }
.mobile-toggle { display: none !important; }
#main { max-width: 1440px; margin: auto; padding: 40px 40px 24px; }
.catalog-section { margin-bottom: 64px; min-width: 0; }
.catalog-section>.grid,.catalog-section>.specimen,.catalog-section>.chat-demo { margin-top: 24px; }
.section-heading { display: flex; gap: 16px; justify-content: space-between; align-items: start; margin-bottom: 24px; }
.section-heading h1,.section-heading h2 { font-size: 24px; line-height: 32px; margin: 6px 0 10px; }
.section-heading p { color: var(--pv-secondary); max-width: 720px; }
.anchor-link { color: var(--pv-secondary); padding: 8px; border-radius: 8px; }
#overview>.section-heading { display: none; }
.hero-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; margin-bottom: 30px; }
.hero-meta .badge { font-size: 10px; letter-spacing: 1px; }
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.intro-copy h1 { font-size: clamp(28px,3vw,42px); line-height: 1.2; font-weight: 600; }
.intro-copy>p { color: var(--pv-secondary); line-height: 1.8; max-width: 420px; margin: 20px 0 24px; }
.intro-copy>.row { flex-wrap: wrap; }
.intro-facts { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.intro-facts span { font-size: 11px; color: var(--pv-secondary); }
.intro-facts strong { display: block; font-size: 13px; color: var(--pv-heading); font-weight: 600; margin-bottom: 5px; }
.workspace-preview { background: var(--pv-surface); border: 1px solid var(--pv-border); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 32px rgb(67 10 35 / 4%); }
.preview-bar { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--pv-border); font-size: 11px; }
.preview-bar>.muted { margin-left: auto; }
.preview-body { padding: 24px; }
.preview-body h3 { margin-top: 5px; }
.preview-body .search { margin: 24px 0; }
.preview-body>.identity { border: 1px solid var(--pv-border); border-radius: 14px; padding: 16px; }
.preview-footer { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 24px; }
.preview-footer .button { padding-left:16px; padding-right:16px; }
.principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; border-top: 1px solid var(--pv-border); border-bottom: 1px solid var(--pv-border); margin-top: 40px; padding: 28px 0; }
.principles>div>svg { color: var(--pv-heading); margin-bottom: 12px; }
.principles strong { display: block; font-size: 13px; }
.principles p { font-size: 12px; color: var(--pv-secondary); margin-top: 6px; }
.specimen { background: var(--pv-surface); border: 1px solid var(--pv-border); border-radius: var(--pv-radius-card); padding: 24px; min-width: 0; }
.specimen>h3,.specimen>.row:first-child { margin-bottom: 20px; }
.specimen>p { margin-top: 14px; }
.specimen>.row+.row { margin-top: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--pv-button-height); padding: 10px 24px; border-radius: var(--pv-radius-pill); border: 1px solid transparent; font-size: 14px; line-height: 20px; font-weight: 600; text-align: center; text-decoration: none !important; }
.primary { background: var(--pv-red); color: var(--pv-white); }
.primary:hover { background: var(--pv-red-hover); }
.primary:active { background: var(--pv-red-pressed); }
.secondary { background: var(--pv-brand-soft); color: var(--pv-heading); }
.secondary:hover { background: var(--pv-secondary-hover); }
.secondary:active { background: var(--pv-secondary-pressed); }
.outline { background: transparent; color: var(--pv-link); border-color: var(--pv-link); }
.outline:hover,.ghost:hover { background: var(--pv-muted); }
.ghost { background: transparent; color: var(--pv-link); }
.danger { background: #b42318; color: #fff; }
.danger:hover { background: #961d14; }
.danger:active { background: #7a180f; }
.button.compact { min-height: var(--pv-compact-height); padding: 7px 16px; font-size: 12px; }
.button:disabled,.button:disabled:hover { background: var(--pv-disabled-bg); color: var(--pv-disabled-fg); border-color: var(--pv-disabled-border); }
.icon-button { display: inline-grid; place-items: center; min-width: 40px; width: 40px; min-height: 40px; height: 40px; padding: 0; background: transparent; border: 0; border-radius: 50%; color: var(--pv-secondary); }
.icon-button:hover { background: var(--pv-muted); }
.icon-button:disabled { color: var(--pv-disabled-fg); opacity: .5; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 24px; min-width: 0; }
.field label,legend { font-weight: 600; font-size: 14px; }
.optional { font-weight: 400; color: var(--pv-secondary); margin-left: 6px; font-size: 12px; }
.required,.field-error { color: var(--pv-error-fg); }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]),select,textarea { width: 100%; max-width: 100%; min-height: var(--pv-control-height); border: 1px solid var(--pv-control); border-radius: var(--pv-radius-pill); background: var(--pv-input-bg); color: var(--pv-text); padding: 12px 16px; }
input::placeholder,textarea::placeholder { color: var(--pv-subdued); opacity: 1; }
select:not([multiple]) { padding-right: 36px; }
select[multiple] { border-radius: 16px; }
textarea { display: block; border-radius: var(--pv-radius-textarea); line-height: 24px; resize: vertical; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):focus,select:focus,textarea:focus { outline: none; border-color: var(--pv-focus); box-shadow: inset 0 0 0 1px var(--pv-focus); }
input[aria-invalid=true] { border-color: var(--pv-error-fg) !important; }
input:disabled,select:disabled,textarea:disabled { background: var(--pv-disabled-bg) !important; color: var(--pv-disabled-fg) !important; border-color: var(--pv-disabled-border) !important; }
input[readonly] { background: var(--pv-muted) !important; }
input[type=file] { padding: 8px !important; }
input[type=file]::file-selector-button { border: 0; border-radius: 999px; padding: 8px 14px; background: var(--pv-brand-soft); color: var(--pv-heading); margin-right: 12px; cursor: pointer; font: inherit; }
input[type=checkbox],input[type=radio] { width: 18px; height: 18px; accent-color: var(--pv-red); flex: 0 0 auto; margin: 0; }
input[type=range] { width: 100%; accent-color: var(--pv-red); }
input[type=color] { border: 1px solid var(--pv-control); border-radius: 8px; width: 60px; height: 40px; padding: 4px; background: var(--pv-surface); }
.search { position: relative; display: block; }
.search>span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--pv-secondary); pointer-events: none; }
.search input { padding-left: 46px !important; }
.search input[readonly] { background: var(--pv-surface) !important; }
.catalog-search { width: 260px; }
.catalog-search input { min-height: 40px !important; font-size: 12px; padding-right: 38px !important; }
.catalog-search kbd { position: absolute; right: 14px; top: 9px; pointer-events: none; }
.password-control { position: relative; }
.password-control>input { padding-right: 55px !important; }
.password-control>button { position: absolute; top: 4px; right: 6px; }
.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--pv-border); margin-top: 24px; padding-top: 24px; }
.form-result:not(:empty) { margin-top: 16px; color: var(--pv-success-fg); }
fieldset { margin: 0 0 24px; padding: 16px; border: 1px solid var(--pv-border); border-radius: 16px; }
legend { padding: 0 6px; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.switch { display: flex; align-items: center; gap: 10px; position: relative; min-height: 44px; margin-bottom: 20px; cursor: pointer; }
.switch input { position: absolute; width: 40px; height: 24px; opacity: 0; }
.switch>span { width: 40px; height: 24px; border-radius: 999px; background: var(--pv-control); padding: 3px; }
.switch>span:before { content:''; display: block; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .15s; }
.switch input:checked+span { background: var(--pv-red); }
.switch input:checked+span:before { transform: translateX(16px); }
.switch input:focus-visible+span { outline: 2px solid var(--pv-focus); outline-offset: 3px; }
.range-field label { display: flex; justify-content: space-between; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 10px; font-size: 12px; line-height: 18px; background: var(--pv-muted); color: var(--pv-secondary); }
.dot { width: 5px; height: 5px; background: currentColor; border-radius: 50%; flex-shrink: 0; }
.info { background: var(--pv-info-bg); color: var(--pv-info-fg); }
.success { background: var(--pv-success-bg); color: var(--pv-success-fg); }
.warning { background: var(--pv-warning-bg); color: var(--pv-warning-fg); }
.error { background: var(--pv-error-bg); color: var(--pv-error-fg); }
.swatch-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.swatch { background: var(--pv-surface); border: 1px solid var(--pv-border); border-radius: 12px; overflow: hidden; }
.swatch>div { height: 76px; border-bottom: 1px solid var(--pv-border); }
.swatch strong,.swatch code,.swatch small { display: block; margin: 10px 12px; }
.swatch strong { font-size: 12px; }
.swatch code { font-size: 10px; background: transparent; padding: 0; overflow-wrap: anywhere; }
.swatch small { font-size: 10px; overflow-wrap: anywhere; }
.shape { padding: 20px 14px; border: 1px solid var(--pv-control); background: var(--pv-brand-soft); color: var(--pv-heading); font-size: 12px; }
.pill { border-radius: 999px; }.card-shape { border-radius: 16px; }.dialog-shape { border-radius: 18px; }
.type-scale>div { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--pv-border); }
.type-scale>div:last-child { border: 0; }
.type-page { font-size: 24px; line-height: 32px; font-weight: 600; color: var(--pv-heading); }
.prose p,.prose ul,.prose ol { margin: 16px 0; }
.prose li { margin: 6px 0; }
blockquote { margin: 20px 0; border-left: 3px solid var(--pv-red); padding: 8px 16px; color: var(--pv-heading); }
cite { display: block; font-size: 12px; font-style: normal; color: var(--pv-secondary); margin-top: 8px; }
mark { color: var(--pv-heading); background: var(--pv-brand-soft); border-radius: 3px; padding: 1px 3px; }
code,kbd,samp { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 12px; }
code { background: var(--pv-muted); padding: 2px 5px; border-radius: 4px; overflow-wrap: anywhere; }
kbd { padding: 1px 5px; border: 1px solid var(--pv-border); border-radius: 4px; color: var(--pv-secondary); }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--pv-muted); border-radius: 12px; padding: 16px; }
pre code { padding: 0; background: none; }
dl { display: grid; grid-template-columns: 100px 1fr; gap: 10px; } dt { color: var(--pv-secondary); } dd { margin: 0; }
address { font-style: normal; }
.icon-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 12px; }
.icon-grid>div { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; border: 1px solid var(--pv-border); border-radius: 12px; padding: 20px 4px; color: var(--pv-heading); }
.icon-grid small { font-size: 10px; overflow-wrap: anywhere; text-align: center; }
.demo-nav { display: grid; gap: 8px; }
.demo-nav a { padding: 12px 16px; min-height: 44px; display: flex; align-items: center; gap: 12px; color: var(--pv-secondary); border-radius: 12px; text-decoration: none; }
.demo-nav a:hover { background: var(--pv-muted); }
.demo-nav a.selected { background: var(--pv-selection-bg); color: var(--pv-selection-fg); box-shadow: inset 3px 0 var(--pv-red); }
.breadcrumbs { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.pagination { display: flex; align-items: center; gap: 8px; margin: 24px 0; }
.page-button { display:inline-grid; place-items:center; width:36px; height:36px; flex:none; border-radius:50%; min-width: 36px; min-height: 36px; padding: 0; color: var(--pv-secondary); background: transparent; }
.page-button.selected { background: var(--pv-burgundy); color: var(--pv-white); }
.tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--pv-border); overflow-x: auto; padding: 4px; }
.tabs button { display: flex; gap: 8px; align-items: center; padding: 12px 16px; background: transparent; color: var(--pv-secondary); border: 0; border-bottom: 2px solid transparent; border-radius: 10px 10px 0 0; white-space: nowrap; }
.tabs button[aria-selected=true] { color: var(--pv-heading); border-bottom-color: var(--pv-red); font-weight: 600; }
[role=tabpanel] { padding: 24px 4px 4px; }
[role=tabpanel] p { margin-top: 8px; color: var(--pv-secondary); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th,td { padding: 18px 12px; border-bottom: 1px solid var(--pv-border); vertical-align: middle; }
thead { background: var(--pv-canvas); color: var(--pv-secondary); font-size: 12px; }
th { font-weight: 600; } tfoot { font-size: 12px; color: var(--pv-secondary); }
.table-scroll table { min-width: 560px; }
.identity { display: flex; align-items: center; gap: 12px; }
.identity small { display: block; margin-top: 4px; }
.avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--pv-brand-soft); color: var(--pv-heading); font-weight: 600; flex-shrink: 0; }
.avatar.small { width: 32px; height: 32px; font-size: 11px; }.avatar.large { width: 60px; height: 60px; font-size: 20px; }
.tile-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--pv-brand-soft); color: var(--pv-heading); margin-bottom: 16px; }
.resource-card>.badge { float: right; }
.resource-card a { display: inline-flex; align-items: center; gap: 8px; }
hr { border: 0; border-top: 1px solid var(--pv-border); margin: 24px 0; }
.metric { font-size: 40px; color: var(--pv-heading); display: flex; align-items: center; gap: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 12px; background: var(--pv-brand-soft); color: var(--pv-heading); border-radius: 999px; font-size: 12px; }
.chip-close { min-height: 28px; min-width: 28px; padding: 2px; color: inherit; background: transparent; border: none; }
.notice { display: flex; align-items: start; gap: 12px; padding: 16px; border-radius: 12px; position: relative; margin-top: 12px; }
.notice>div { flex: 1; }.notice p { font-size: 12px; margin-top: 4px; }.notice .icon-button { color: inherit; min-width: 28px; width: 28px; height: 28px; min-height: 28px; margin: -4px -6px 0 0; }
progress,meter { display: block; width: 100%; height: 12px; accent-color: var(--pv-red); margin: 12px 0; }
progress { appearance: none; border: 0; border-radius: 999px; background: var(--pv-muted); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--pv-muted); } progress::-webkit-progress-value { background: var(--pv-red); border-radius: 999px; } progress::-moz-progress-bar { background: var(--pv-red); }
.specimen>label { display: block; margin-top: 20px; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { display: flex; align-items: center; gap: 16px; padding: 24px 0; }
.skeleton-circle { width: 40px; height: 40px; border-radius: 50%; background: var(--pv-muted); }
.skeleton>span:last-child { flex: 1; }.skeleton i { display: block; background: var(--pv-muted); width: 80%; height: 12px; border-radius: 6px; margin: 10px 0; animation: pulse 1.5s infinite alternate; }.skeleton i:last-child { width: 55%; }
@keyframes pulse { to { opacity: .45; } }
.empty-state { text-align: center; padding: 40px 20px; }.empty-state>svg { color: var(--pv-secondary); margin-bottom: 16px; }.empty-state p { color: var(--pv-secondary); margin: 12px 0 24px; }
dialog { background: var(--pv-surface); color: var(--pv-text); border: 1px solid var(--pv-border); border-radius: var(--pv-radius-dialog); padding: 24px; width: min(760px,calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: 0 20px 60px rgb(36 18 25 / 18%); }
dialog::backdrop { background: rgb(20 15 18 / 45%); } dialog:focus { outline: none; }
.dialog-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 24px; }
.dialog-header>.icon-button { margin: -4px -4px 0 0; }
.small-dialog { width: min(480px,calc(100vw - 32px)); }.wide-dialog { width: calc(100vw - 32px); }.tall-textarea { min-height: 320px; }
.accordion { border-bottom: 1px solid var(--pv-border); padding: 16px 0; }.accordion summary { cursor: pointer; font-weight: 600; }.accordion p { margin-top: 12px; color: var(--pv-secondary); }
.action-disclosure { position: relative; }.action-disclosure summary { cursor: pointer; border: 1px solid var(--pv-control); border-radius: 999px; width: fit-content; padding: 12px 20px; list-style: none; }.action-disclosure summary svg { margin-left: 10px; }.action-disclosure>div { display: grid; gap: 4px; border: 1px solid var(--pv-border); border-radius: 16px; margin-top: 8px; padding: 8px; background: var(--pv-raised); }
.chat-demo { border: 1px solid var(--pv-border); border-radius: 20px; overflow: hidden; }.chat-header { padding: 20px 24px; background: var(--pv-surface); display: flex; align-items: center; gap: 12px; }.chat-header small { display: block; }.chat-header>.badge { margin-left: auto; }
.chat-history { background-color: var(--pv-chat-bg); background-image: var(--pv-chat-pattern); background-size: 420px; padding: 24px; min-height: 230px; display: flex; flex-direction: column; gap: 14px; }
.bubble { padding: 14px 18px; border-radius: 16px; background: var(--pv-chat-bubble); color: var(--pv-chat-message-fg); max-width: 80%; align-self: flex-start; border: 1px solid var(--pv-border); overflow-wrap: anywhere; }.bubble.outgoing { align-self: flex-end; background: var(--pv-chat-agent-bubble); }.bubble small { display: block; font-size: 10px; margin-top: 6px; }
.composer-form { background: var(--pv-surface); padding: 20px; }.composer-box { position: relative; }.composer-box textarea { padding-left: 56px; }.macro-trigger { position: absolute; top: 6px; left: 8px; z-index: 1; color: var(--pv-warning-fg); }.composer-footer { margin-top: 14px; display: flex; gap: 12px; justify-content: space-between; align-items: center; }.composer-footer>.muted { font-size: 12px; }
.macro-picker { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 5; background: var(--pv-raised); border: 1px solid var(--pv-border); border-radius: 18px; box-shadow: 0 8px 32px rgb(36 18 25 / 12%); width: min(360px,100%); overflow: hidden; }.macro-picker>strong { display: block; padding: 14px 16px; color: var(--pv-secondary); font-size: 12px; }.macro-picker button { display: block; width: 100%; text-align: left; padding: 12px 16px; border: 0; background: transparent; color: var(--pv-text); }.macro-picker button small { display: block; }.macro-picker button:hover { background: var(--pv-muted); } .macro-picker button:focus-visible { background: var(--pv-muted); outline: 2px solid var(--pv-focus); outline-offset: -3px; }
.editor-tools { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: var(--pv-muted); border-radius: 16px; margin-bottom: 12px; }.message-preview { padding: 20px; border: 1px solid var(--pv-border); border-radius: 16px; white-space: pre-wrap; margin-top: 20px; }.message-preview:before { content:'PREVIEW'; display: block; font-size: 10px; letter-spacing: 1px; color: var(--pv-secondary); margin-bottom: 10px; }
.media-figure { margin: 0; display: flex; flex-direction: column; justify-content: center; gap: 24px; }.media-figure img { max-width: 220px; width: 100%; height: auto; }.media-figure picture { padding: 24px; background: #fff; border-radius: 12px; }.media-figure figcaption { color: var(--pv-secondary); font-size: 12px; }
audio,video,canvas,iframe { width: 100%; max-width: 100%; } video { border-radius: 12px; margin-top: 16px; } canvas { height: auto; } iframe { border: 1px solid var(--pv-border); border-radius: 12px; min-height: 180px; }
.code-example { margin-top: 16px; border: 1px solid var(--pv-border); border-radius: 12px; background: var(--pv-surface); }.code-example>summary { cursor: pointer; display: flex; gap: 8px; align-items: center; padding: 12px 16px; color: var(--pv-secondary); font-size: 12px; list-style: none; }.code-example>summary>.muted { margin-left: auto; font-size: 10px; }.code-example>pre { max-height: 360px; overflow: auto; margin: 12px; }.copy-source { margin: 4px 12px; }
.steps-list { padding-left: 20px; }.steps-list li { margin-bottom: 16px; }
.page-footer { border-top: 1px solid var(--pv-border); padding: 24px 0 0; display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--pv-secondary); }
.notifications { position: fixed; bottom: 24px; right: 24px; z-index: 90; width: min(380px,calc(100vw - 32px)); }.toast { display: flex; align-items: center; gap: 12px; background: var(--pv-heading); color: var(--pv-canvas); padding: 12px 16px; border-radius: 16px; box-shadow: 0 8px 24px rgb(36 18 25 / 15%); }.toast>span { flex: 1; }.toast .icon-button { color: inherit; }
#element-reference td code { display: inline-block; margin: 2px; } #element-reference table { font-size: 12px; } #element-reference th { width: 120px; }
@media(min-width:1600px) { #main { padding: 48px 64px; } }
@media(max-width:1200px) { .overview-grid { grid-template-columns: 1fr; }.intro-copy>p { max-width: 600px; }.intro-copy h1 br { display:none; }.intro-copy h1 { font-size:32px; }.workspace-preview { max-width: 660px; }.three { grid-template-columns: repeat(2,minmax(0,1fr)); }.icon-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }.topbar-guide { display:none; } }
@media(max-width:900px) { .catalog-sidebar { transform: translateX(-100%); width: 240px; box-shadow: 16px 0 40px rgb(36 18 25 / 12%); }.catalog-sidebar.is-open { transform:none; }.catalog-workspace { margin-left:0; }.mobile-toggle { display:inline-grid !important; }.topbar { padding:12px 20px; }.topbar>.row:first-child>.muted,.topbar>.row:first-child>svg { display:none; }#main { padding:28px 24px; }.catalog-search { width:220px; } }
@media(max-width:640px) { html { scroll-padding-top:130px; }.topbar { flex-wrap:wrap; gap:10px; }.topbar>.row:first-child { flex:1; }.header-actions { flex:1; justify-content:flex-end; }.catalog-search { width:180px; }.catalog-search input { font-size:16px; }.catalog-search kbd { display:none; }.catalog-search input { padding-right:12px !important; }.topbar>.row:first-child>strong { display:none; }.two,.three,.principles { grid-template-columns:1fr; gap:16px; }#main { padding:24px 16px; }.catalog-section { margin-bottom:48px; }.specimen { padding:20px; }.swatch-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.type-scale>div { grid-template-columns:1fr; gap:8px; }.icon-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }.intro-copy h1 { font-size:28px; }.hero-meta { margin-bottom:24px; }.preview-body { padding:20px; }.preview-bar { padding:12px; }.preview-bar>.muted { display:none; }.principles { gap:24px; }.intro-facts { gap:20px; }.field input,.field select,.field textarea,textarea { font-size:16px; }.button { padding:10px 18px; }.shape-samples { gap:10px; }.shape { padding:14px 10px; }.composer-form { padding:12px; }.composer-footer { align-items:flex-end; }.composer-footer>.muted { max-width:140px; }.chat-history { padding:16px; }.bubble { max-width:92%; }.code-example>summary>.muted { display:none; }dialog { padding:20px; }.notifications { bottom:16px; right:16px; } #element-reference th { width:85px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; animation:none !important; transition:none !important; } }
@media print { .catalog-sidebar,.topbar,.code-example,dialog,.notifications,.anchor-link { display:none !important; }.catalog-workspace { margin:0; }#main { padding:0; }.catalog-section { break-inside:avoid; }.section-heading { display:block !important; } }

input[type=image] { width:44px !important; height:44px; padding:0 !important; border:0 !important; border-radius:0 !important; }
input[type=submit],input[type=reset],input[type=button] { width:auto !important; cursor:pointer; }
input[type=submit].primary { background:var(--pv-red) !important; color:var(--pv-white) !important; border-color:transparent !important; }
input[type=button].secondary,input[type=reset].secondary { background:var(--pv-brand-soft) !important; color:var(--pv-heading) !important; border-color:transparent !important; }

/* Pointer interaction should not inherit a browser-default dark focus outline. */
button:focus:not(:focus-visible),a:focus:not(:focus-visible),summary:focus:not(:focus-visible) { outline:none; }
.pagination-footer { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:24px; }
.pagination-footer #page-label { margin:0; flex-shrink:0; }
.pagination-footer .pagination { margin:0 0 0 auto; }
@media(max-width:440px) { .pagination-footer { gap:8px; } .pagination-footer .pagination { gap:2px; } .pagination-footer .pagination button { min-width:32px; width:32px; height:32px; min-height:32px; padding:0; } .pagination-footer #page-label { font-size:12px; } }

.button { font-family:var(--pv-font-sans); }

/* Toast feedback: readable close action and a restrained, theme-aware surface. */
.notifications { width:min(420px,calc(100vw - 32px)); }
.toast { align-items:flex-start; padding:16px; gap:12px; border:1px solid var(--pv-border); border-radius:14px; background:var(--pv-surface); color:var(--pv-text); box-shadow:0 8px 28px rgb(36 18 25 / 14%); }
.toast > span { min-width:0; align-self:center; font-size:14px; line-height:20px; overflow-wrap:anywhere; }
.toast-symbol { flex:none; width:20px; height:20px; margin-top:10px; color:var(--pv-heading); }
.toast .icon-button { flex:0 0 40px; width:40px; height:40px; padding:10px; border:0; background:transparent; color:var(--pv-secondary); border-radius:10px; }
.toast .icon-button:hover { background:var(--pv-muted); color:var(--pv-heading); }


/* Close/remove icon actions: visible SVG geometry and comfortable targets. */
.icon-button:has(> .close-icon) { display:inline-grid; place-items:center; flex:0 0 36px; width:36px; height:36px; min-width:36px; min-height:36px; padding:0; color:var(--pv-secondary); }
.close-icon { display:block; width:18px; height:18px; margin:0; flex:none; pointer-events:none; }
.icon-button:has(> .close-icon):hover { color:var(--pv-heading); background:var(--pv-muted); }
.dialog-header .icon-button:has(> .close-icon) { border:1px solid var(--pv-border); }
.dialog-header > form:has(.close-icon) { flex:none; margin:0; }
.notice .icon-button:has(> .close-icon) { color:inherit; margin:0; }
.chip-close > .close-icon { width:18px; height:18px; }
.chip-close:has(> .close-icon) { display:inline-grid; place-items:center; width:32px; min-width:32px; height:32px; min-height:32px; padding:6px; }


/* Return to the top of the long component catalogue. */
.back-to-top { position:fixed; right:calc(24px + env(safe-area-inset-right,0px)); bottom:calc(24px + env(safe-area-inset-bottom,0px)); z-index:45; display:grid; place-items:center; width:48px; min-width:48px; height:48px; min-height:48px; padding:12px; border-radius:50%; box-shadow:0 4px 16px rgb(36 18 25 / 16%); }
body:has(#back-to-top:not([hidden])) .notifications { bottom:calc(88px + env(safe-area-inset-bottom,0px)); }
@media(max-width:640px) {
 .back-to-top { right:calc(16px + env(safe-area-inset-right,0px)); bottom:calc(16px + env(safe-area-inset-bottom,0px)); }
 body:has(#back-to-top:not([hidden])) .notifications { bottom:calc(80px + env(safe-area-inset-bottom,0px)); }
}
@media(prefers-reduced-motion:no-preference) { .back-to-top:not([hidden]) { animation:pv-pop-in var(--pv-motion-standard) var(--pv-motion-ease); } }
@media print { .back-to-top { display:none!important; } }


/* Preserve the compact close circle while allowing comfortable touch input. */
@media(pointer:coarse) {
 .icon-button:has(> .close-icon) { position:relative; overflow:visible; touch-action:manipulation; }
 .icon-button:has(> .close-icon)::after { content:""; position:absolute; inset:-4px; border-radius:inherit; }
}
