/* Noto Serif TC Latin display subset, Google Fonts / SIL OFL 1.1; see fonts/NotoSerifTC-OFL.txt. */
@font-face { font-family:"Noto Serif TC"; font-style:normal; font-weight:500; font-display:swap; src:url("/console/assets/fonts/noto-serif-tc-latin-500.ttf") format("truetype"); }
/* Shared discovery / Console shell. Structure comes from space, tone, and typography. */
:root { --portal-ease: cubic-bezier(.22,1,.36,1); --portal-display: 'Noto Serif TC', Georgia, serif; }
.portal-header { display:flex; align-items:center; gap:36px; position:sticky; top:0; z-index:20; height:76px; padding:0 40px; background:var(--brand-paper); border:0; }
.portal-header .brand { display:flex; align-items:center; gap:12px; flex-shrink:0; margin:0; }
.portal-header .brand img { width:auto; height:24px; }
.portal-header .brand > span { font-size:13px; font-weight:500; color:var(--brand-muted); }
.portal-header .brand .brand-context { font-size:11px; margin-left:4px; padding:5px 8px; background:var(--brand-surface); border-radius:4px; }
.portal-header .desktop-navigation { display:flex; align-items:center; gap:24px; height:100%; margin:0; }
.portal-header .desktop-navigation a { display:inline-flex; align-items:center; gap:8px; position:relative; padding:14px 0; font-size:13px; color:var(--brand-muted); background:none; text-decoration:none; white-space:nowrap; }
.portal-header .desktop-navigation a[aria-current='page'] { color:var(--brand-ink); font-weight:650; }
.portal-header .desktop-navigation a[aria-current='page']::after { content:''; position:absolute; left:0; right:0; bottom:6px; height:2px; border-radius:0; background:var(--brand-accent); }
.portal-header .desktop-navigation a:hover { text-decoration:underline; text-underline-offset:7px; }
.portal-header .topbar-actions, .portal-header .header-actions { display:flex; align-items:center; gap:14px; margin-left:auto; }
.header-console { display:flex; align-items:center; gap:10px; min-height:44px; font-size:13px; font-weight:600; text-decoration:none; }
.icon-button { display:inline-flex; align-items:center; justify-content:center; flex:0 0 44px; width:44px; height:44px; padding:10px; border:0; border-radius:8px; background:transparent; color:var(--brand-ink); cursor:pointer; }
.navigation-trigger { display:none; }
.catalog-icon, .modality-icon, .key-icon, .user-menu-item svg { width:20px; height:20px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; color:var(--brand-ink); }
[data-ui-icon] { display:inline-flex; align-items:center; }
.portal-header .quick-search-trigger { min-height:44px; padding:0 12px; gap:10px; border:0; border-radius:8px; background:var(--brand-surface); color:var(--brand-ink); font-size:12px; }
.quick-search-trigger kbd { border:0; background:transparent; }
.portal-header.is-catalog #quick-search-trigger { display:none; }
.portal-header .user-button { width:auto; min-width:52px; height:44px; padding:6px; gap:6px; background:transparent; }
.portal-header .user-button mia-user-avatar { --mia-avatar-size:30px; }
.user-button > .catalog-icon { width:14px; height:14px; transition:transform 160ms var(--portal-ease); }
.user-button[aria-expanded='true'] > .catalog-icon { transform:rotate(180deg); }
.user-menu { width:min(320px, calc(100vw - 32px)); top:54px; border:0; border-radius:14px; padding:8px; background:var(--brand-surface); box-shadow:0 16px 56px rgb(12 16 45 / 13%); animation:portal-menu-in 220ms var(--portal-ease); }
.user-summary { padding:16px 48px 20px 12px; border:0; gap:7px; }
.user-summary strong { font-size:14px; }
.user-summary span { font-size:12px; }
.user-menu-close { position:absolute; top:10px; right:8px; }
.user-menu-item { min-height:46px; padding:10px 12px; border-radius:7px; font-size:13px; }
.user-menu-item:hover { background:var(--brand-wash); }
.user-menu-separator { height:12px; margin:0; background:transparent; }
.quick-search-dialog { border:0; border-radius:16px; }
.quick-search-input-row, .quick-search-footer { border:0; }
.quick-search-input-row { padding:6px 10px 6px 20px; }
.quick-search-input-row .icon-button { margin-left:auto; }
.quick-search-footer { padding-bottom:12px; }
.portal-dialog { width:min(520px, calc(100vw - 32px)); max-height:calc(100dvh - 48px); margin:auto; padding:28px; overflow:auto; border:0; border-radius:18px; background:var(--brand-surface); color:var(--brand-ink); box-shadow:0 24px 80px rgb(12 16 45 / 16%); }
.portal-dialog::backdrop { background:rgb(12 16 45 / 30%); }
html:has(.portal-dialog[open], .quick-search-dialog[open]) { overflow:hidden; }
.dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 0 24px; }
.dialog-heading h2 { margin:0; font-family:var(--portal-display); font-size:32px; line-height:1.25; font-weight:500; letter-spacing:-.035em; }
.eyebrow { font-family:inherit; margin:0 0 8px; font-size:11px; font-weight:600; letter-spacing:.08em; color:var(--brand-muted); text-transform:uppercase; }
.navigation-dialog nav { display:grid; gap:28px; }
.navigation-dialog nav a { display:flex; gap:14px; align-items:center; min-height:52px; padding:10px 8px; border-radius:8px; text-decoration:none; font-size:17px; }
.navigation-dialog nav a[aria-current='page'] { background:var(--brand-paper); font-weight:650; }
.navigation-dialog nav a[aria-current='page']::after { content:''; margin-left:auto; width:6px; height:6px; border-radius:50%; background:var(--brand-accent); }
.filter-fields { display:grid; gap:24px; }
.filter-fields > label { display:grid; gap:9px; color:var(--brand-muted); font-size:12px; }
.filter-fields select { width:100%; min-height:48px; padding:10px 12px; border:0; border-radius:8px; background:var(--brand-paper); color:var(--brand-ink); font-size:14px; }
.dialog-actions { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:28px; }
.dialog-actions > span { max-width:150px; color:var(--brand-muted); font-size:12px; line-height:1.5; }
.dialog-done { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:46px; padding:10px 16px; border:0; border-radius:8px; background:var(--brand-ink); color:var(--brand-paper); cursor:pointer; font-size:13px; }
.dialog-done .catalog-icon { color:inherit; }
.filter-trigger { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:52px; padding:0 18px; border:0; border-radius:10px; background:var(--brand-surface); color:var(--brand-ink); font-size:13px; cursor:pointer; }
[data-filter-count] { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 5px; border-radius:50%; background:var(--brand-ink); color:var(--brand-paper); font-size:11px; }
[data-filter-count][hidden] { display:none; }
.catalog-page .catalog-header, .directory-head { position:relative; display:flex; align-items:center; gap:24px; margin:0 0 28px; padding-top:0; padding-bottom:0; min-height:88px; }
.catalog-page .catalog-header h1, .directory-head h1 { font-family:var(--portal-display); font-size:48px; font-weight:500; line-height:1.12; letter-spacing:-.045em; margin:0; }
.catalog-heading-copy > p { margin:10px 0 0; color:var(--brand-muted); font-size:13px; }
.catalog-header .catalog-actions { margin-left:auto; }
.directory-head { padding-top:32px; margin-left:auto; margin-right:auto; }
.directory-head > a { margin-left:auto; font-size:13px; }
.directory-signal { flex:0 0 190px; width:190px; margin-left:auto; }
.directory-signal svg { display:block; width:100%; overflow:visible; }
.signal-track { stroke:var(--brand-ink); stroke-opacity:.14; stroke-width:1.5; }
.signal-trace { stroke:var(--brand-accent); stroke-width:1.5; stroke-dasharray:1; stroke-dashoffset:0; animation:signal-arrives 2400ms var(--portal-ease) both; }
@keyframes signal-arrives { from { stroke-dashoffset:1; } to { stroke-dashoffset:0; } }
@keyframes portal-menu-in { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.catalog-page .catalog-tools, .catalog-search-row { display:flex; align-items:center; gap:12px; margin:0 0 18px; }
.catalog-tools .search-wrap, .catalog-search-row .search-field { display:flex; align-items:center; gap:12px; width:auto; flex:1; min-width:0; min-height:52px; height:52px; padding:0 18px; border:0; border-radius:10px; background:var(--brand-surface); box-shadow:none; }
.search-wrap > .search, .catalog-search-row .search-field input { flex:1; min-width:0; width:100%; height:52px; padding:0; border:0; border-radius:0; background:transparent; color:var(--brand-ink); font-size:14px; }
.catalog-tools .search-wrap:focus-within, .catalog-search-row .search-field:focus-within { outline:2px solid var(--brand-accent); outline-offset:3px; }
.catalog-tools .search-wrap input:focus, .catalog-search-row .search-field input:focus { outline:none; box-shadow:none; }
.catalog-toolbar { display:block; margin-bottom:16px; }
.catalog-controls { background:transparent; border:0; padding:0; }
.catalog-page .catalog-filters { margin:0 0 20px; }
.capability-filters, .capability-lenses { gap:8px; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; padding:0 0 4px; margin:0; background:transparent; border:0; }
.capability-filters > button, .capability-lenses > button { min-height:44px; padding:10px 13px; flex-shrink:0; border:0; border-radius:0; background:transparent; color:var(--brand-muted); font-size:13px; }
.capability-filters > button:hover, .capability-lenses > button:hover { background:transparent; }
.capability-indicator, .capability-lenses .selection-indicator { background:transparent; border-radius:0; }
.capability-indicator::after, .capability-lenses .selection-indicator::after { content:''; position:absolute; bottom:0; left:12px; right:12px; height:2px; background:var(--brand-accent); }
.capability-filters .modality-icon, .capability-lenses .modality-icon { color:var(--brand-ink); }
.catalog-page .selection-controls, .catalog-selection { display:flex; align-items:center; gap:12px; margin:0 0 12px; }
.selection-views { width:auto; min-height:44px; gap:4px; padding:4px; border:0; border-radius:9px; background:var(--brand-wash); }
.selection-views button { min-height:38px; padding:8px 12px; background:transparent; border:0; font-size:12px; color:var(--brand-muted); }
.selection-views .selection-indicator { background:var(--brand-surface); }
.selection-views.has-selection-indicator > button[aria-pressed='true'] .catalog-icon { color:var(--brand-ink); }
.catalog-meta { margin:12px 0 14px; padding:0; border:0; font-size:12px; }
.catalog-page .model-list { border:0; border-radius:12px; background:var(--brand-surface); overflow:hidden; }
.model-row { border:0; min-height:100px; padding:22px 20px; }
.model-row:hover { background:var(--brand-wash); }
.model-head { border:0; background:transparent; padding-top:18px; }
.model-row .row-arrow .catalog-icon { width:20px; height:20px; }
.catalog-grid { gap:16px; }
.catalog-grid .catalog-row { border:0; border-radius:12px; padding:24px; background:var(--brand-surface); box-shadow:none; }
.catalog-grid .catalog-row:hover { border:0; background:var(--brand-surface); box-shadow:none; }
.catalog-grid .catalog-row h2 a:hover { text-decoration:underline; }
.catalog-grid .model-foot { border:0; }
.catalog-grid .maker-icon { background:transparent; border:0; }
.catalog-page .catalog-actions button { min-height:44px; border:0; background:transparent; }
.filter-dialog .catalog-provider { margin:0; width:100%; }
.filter-dialog .catalog-provider summary { min-height:48px; background:var(--brand-paper); border:0; border-radius:8px; }
.filter-dialog .catalog-provider-options { position:static; max-height:220px; margin-top:8px; border:0; box-shadow:none; background:var(--brand-paper); }
.filter-dialog .catalog-provider-options button { min-height:44px; }
.portal-header :focus-visible, .portal-dialog :focus-visible, .user-button:focus-visible { outline:2px solid var(--brand-accent); outline-offset:3px; }
@media (min-width:761px) and (max-width:1050px) {
  .portal-header { padding:0 24px; gap:24px; }
  .portal-header .desktop-navigation { gap:18px; }
  .portal-header .brand-context, .quick-search-label, .quick-search-trigger kbd { display:none; }
}
@media (max-width:760px) {
  .portal-header { height:64px; padding:0 16px; gap:12px; flex-wrap:nowrap; }
  .portal-header .brand { gap:9px; }
  .portal-header .brand img { height:21px; }
  .portal-header .brand > span { font-size:12px; }
  .portal-header .brand .brand-context { display:none; }
  .portal-header .desktop-navigation { display:none; }
  .portal-header .topbar-actions, .portal-header .header-actions { gap:4px; }
  .navigation-trigger { display:inline-flex; }
  .header-console { font-size:12px; gap:5px; }
  .header-console .catalog-icon { width:16px; height:16px; }
  .portal-header .quick-search-trigger { width:44px; padding:10px; background:transparent; }
  .quick-search-trigger .quick-search-label, .quick-search-trigger kbd { display:none; }
  .portal-header .user-button { min-width:44px; padding:7px; }
  .user-button > .catalog-icon { display:none; }
  .portal-dialog { width:calc(100vw - 24px); max-height:calc(100dvh - 24px); padding:24px; border-radius:16px; }
  .navigation-dialog { margin:76px auto auto; }
  .filter-dialog { margin:auto auto 12px; }
  .user-menu { position:fixed; top:72px; right:12px; width:min(360px, calc(100vw - 24px)); max-height:calc(100dvh - 88px); overflow:auto; }
  .quick-search-dialog { top:12px; max-height:calc(100dvh - 24px); }
  .quick-search-results { max-height:calc(100dvh - 150px); }
  .quick-search-footer > span { display:none; }
  .quick-search-footer { justify-content:flex-end; min-height:16px; }
  .catalog-page.page { padding-top:24px; width:calc(100% - 32px); }
  .catalog-page .catalog-header, .directory-head { min-height:56px; margin-bottom:24px; flex-direction:row; align-items:center; gap:12px; }
  .directory-head { padding-top:24px; }
  .catalog-page .catalog-header h1, .directory-head h1 { font-size:36px; }
  .catalog-heading-copy > p { font-size:12px; line-height:1.5; max-width:220px; margin-top:8px; }
  .directory-signal { flex-basis:76px; width:76px; }
  .directory-head > a { display:none; }
  .catalog-header .catalog-actions { position:absolute; right:0; top:8px; }
  .catalog-header .catalog-actions button { width:44px; padding:10px; }
  .catalog-header .catalog-actions button span { display:none; }
  .catalog-header .directory-signal { margin-right:48px; }
  .catalog-search-row, .catalog-page .catalog-tools { gap:8px; margin-bottom:12px; }
  .catalog-tools .search-wrap, .catalog-search-row .search-field { padding:0 12px; }
  .search-wrap > .search, .catalog-search-row .search-field input { font-size:16px; }
  .filter-trigger { padding:0 12px; gap:7px; }
  .filter-trigger > span:not([data-filter-count]) { display:none; }
  .capability-filters > button, .capability-lenses > button { padding:10px; gap:7px; font-size:12px; }
  .capability-filters .modality-icon, .capability-lenses .modality-icon { width:17px; height:17px; }
  .catalog-page .catalog-filters { margin-bottom:14px; }
  .catalog-toolbar { margin-bottom:12px; }
  .catalog-grid .catalog-row { padding:22px; }
  .model-row { padding:22px 16px; }
}
@media (prefers-reduced-motion:reduce) {
  .signal-trace, .user-menu { animation:none; }
  .user-button > .catalog-icon { transition:none; }
}

.catalog-search-row .search-field > .catalog-icon { position:static; transform:none; }
.catalog-grid > .empty { border:0; border-radius:12px; background:var(--brand-surface); }
/* Override the old wrapped header's minimum height at the shared shell boundary. */
.portal-header { min-height:0; }
.dialog-done { flex-shrink:0; white-space:nowrap; }
@media(max-width:760px) {
  .capability-lenses > button { display:flex; flex-direction:row; min-height:44px; }
  .capability-lenses .lens-glyph { width:auto; height:auto; margin:0; }
}
.catalog-tools .search-wrap > svg { position:static; transform:none; color:var(--brand-ink); }
.portal-header .brand-product { display:inline; }
.catalog-page .catalog-count, .model-summary small { font-family:var(--sans); }
.model-summary small { font-size:12px; line-height:1.5; }
@media(max-width:760px) {
  .catalog-header .directory-signal { position:absolute; width:76px; right:52px; top:10px; margin:0; }
  .catalog-header .catalog-heading-copy { max-width:calc(100% - 128px); }
}

.filter-hint { margin:24px 0 0; color:var(--brand-muted); font-size:12px; }
.filter-reset { min-height:44px; border:0; padding:0 8px; background:none; color:var(--brand-ink); font:inherit; font-size:13px; cursor:pointer; }
.filter-reset:hover { text-decoration:underline; text-underline-offset:4px; }
.filter-dialog .dialog-actions { margin-top:16px; }
/* Loading indicators become static when movement is reduced. */
@media(prefers-reduced-motion:reduce) { .keys-page .is-busy > .key-icon:first-child { animation:none!important; } }
@media(max-width:760px) { .catalog-header .catalog-actions button { min-width:44px; width:44px; } }

.featured-note { display:block; color:var(--brand-info); font-size:12px; font-weight:600; line-height:1.5; margin:4px 0; }
.featured-spotlight { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:28px 32px; margin:0 0 28px; border:0; border-radius:20px; background:radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--brand-blue) 20%, transparent), transparent 60%), color-mix(in srgb, var(--brand-surface) 88%, transparent); color:var(--brand-ink); backdrop-filter:blur(12px); box-shadow:0 12px 28px -24px color-mix(in srgb, var(--brand-ink) 18%, transparent); }
.featured-spotlight .featured-eyebrow { margin:0 0 10px; color:var(--brand-muted); font-size:11px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; }
.featured-spotlight h2 { margin:0 0 10px; font-size:clamp(22px,3vw,32px); letter-spacing:-.03em; line-height:1.15; }
.featured-spotlight p { margin:0 0 18px; max-width:52ch; line-height:1.5; }
.featured-spotlight a { display:inline-flex; gap:18px; align-items:center; color:var(--brand-ink); font-weight:650; text-decoration:none; }
.featured-spotlight a:hover { text-decoration:underline; }
.featured-spotlight-mark { flex-shrink:0; display:grid; place-items:center; width:88px; height:88px; background:transparent; font-size:48px; }
.featured-spotlight-mark img { width:56px; height:56px; object-fit:contain; }
@media(max-width:600px) { .featured-spotlight { padding:22px; gap:14px; } .featured-spotlight-mark { width:52px; height:52px; border-radius:14px; } .featured-spotlight-mark img { width:36px; height:36px; } }

featured-announcements { display:block; min-width:0; margin-bottom:28px; }
.featured-rail { position:relative; display:grid; grid-auto-flow:column; grid-auto-columns:100%; gap:16px; margin:0; padding:0 0 6px; list-style:none; overflow-x:auto; overscroll-behavior-inline:contain; scroll-snap-type:x mandatory; scroll-behavior:smooth; scrollbar-width:thin; scrollbar-color:var(--brand-line-strong) transparent; }
.featured-rail .featured-spotlight { margin:0; min-width:0; box-sizing:border-box; scroll-snap-align:start; }
featured-announcements:not([data-count="1"]) .featured-rail { grid-auto-columns:calc((100% - 32px) / 2.1); }
featured-announcements[data-count="2"] .featured-rail { grid-auto-columns:calc((100% - 16px) / 2); }
featured-announcements:not([data-count="1"]) .featured-spotlight { padding:24px; gap:18px; align-items:flex-start; }
featured-announcements:not([data-count="1"]) .featured-spotlight > div { display:flex; flex-direction:column; align-self:stretch; flex:1; }
featured-announcements:not([data-count="1"]) .featured-spotlight h2 { font-size:24px; }
featured-announcements:not([data-count="1"]) .featured-spotlight a { margin-top:auto; }
featured-announcements:not([data-count="1"]) .featured-spotlight-mark { width:52px; height:52px; border-radius:14px; }
featured-announcements:not([data-count="1"]) .featured-spotlight-mark img { width:36px; height:36px; }
.featured-navigation { display:flex; align-items:center; justify-content:flex-end; gap:8px; margin-bottom:10px; }
.featured-navigation[hidden] { display:none; }
.featured-navigation button { width:36px; height:36px; border:0; border-radius:50%; background:color-mix(in srgb, var(--brand-surface) 72%, transparent); color:var(--brand-ink); cursor:pointer; font-size:18px; }
.featured-navigation button:disabled { opacity:.35; cursor:default; }
.featured-rail:focus-visible, .featured-navigation button:focus-visible { outline:2px solid var(--brand-ink); outline-offset:3px; }
@media(max-width:900px) {
  featured-announcements:not([data-count="1"]) .featured-rail { grid-auto-columns:calc(100% - 40px); }
  featured-announcements:not([data-count="1"]) .featured-spotlight { padding:22px; gap:14px; }
  featured-announcements:not([data-count="1"]) .featured-spotlight h2 { font-size:22px; }
}
@media(prefers-reduced-motion:reduce) { .featured-rail { scroll-behavior:auto; } }
