@font-face {
  font-family: "Flutter Icons Explorer UI";
  font-style: normal;
  font-weight: 400;
  src: url("../flutter-icons/fonts/MaterialIcons-Regular.woff2") format("woff2");
  font-display: block;
}

@font-face {
  font-family: "Flutter Icons Explorer UI Sharp";
  font-style: normal;
  font-weight: 400;
  src: url("../flutter-icons/fonts/MaterialIconsSharp-Regular.woff2") format("woff2");
  font-display: block;
}

/*
 * UI icons and catalog icons are deliberately separate contracts.
 * .ui-icon always uses the bundled interface font. .pack-icon is assigned
 * only to glyphs from the pack currently being explored.
 */
.ui-icon,
.pack-icon {
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ui-icon {
  font-family: "Flutter Icons Explorer UI";
  user-select: none;
}

.ui-icon-sharp {
  font-family: "Flutter Icons Explorer UI Sharp";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.pack-icon {
  font-family: var(--pack-icon-font);
}

.site-header-shell .app-tabs {
  display: flex;
  gap: 6px;
  width: fit-content;
  margin-bottom: 13px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.site-header-shell .app-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.comparison-badge {
  min-width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  color: var(--accent-contrast);
  background: var(--accent);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.comparison-badge[hidden] { display: none; }

.site-header-shell .app-tab:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.site-header-shell .app-tab.active {
  color: var(--accent-contrast);
  background: var(--accent);
}

.site-header {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--surface), rgba(255, 255, 255, .038));
  box-shadow: var(--shadow);
}

.site-header .brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-header .flutter-logo {
  width: 44px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 9px 20px rgba(69, 193, 255, .2));
}

.site-header .brand-copy {
  min-width: 0;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(25px, 4vw, 38px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.045em;
}

.site-header .lead {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.45;
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.site-header .header-actions select {
  width: 104px;
  min-height: 42px;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: var(--control, var(--surface-strong));
  cursor: pointer;
}

.site-header .header-actions select:hover {
  border-color: color-mix(in srgb, var(--text) 26%, var(--border));
  background: var(--control-hover, var(--surface-hover));
}

.site-header .header-actions select:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.site-header .header-actions select option {
  color: var(--text);
  background: var(--control, var(--surface-strong));
}

.site-header .icon-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--control, var(--surface-strong));
  cursor: pointer;
}

.site-header .icon-btn:hover {
  border-color: var(--accent);
  background: var(--control-hover, var(--surface-hover));
}

.site-header .icon-btn .ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  user-select: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-footer {
  margin-top: 23px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.mobile-warning {
  display: none;
}

@media (max-width: 700px) {
  .page {
    display: none;
  }

  .mobile-warning {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 25px;
    color: var(--text);
    background: var(--bg);
    text-align: center;
  }

  .mobile-warning > div {
    max-width: 390px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .mobile-warning .ui-icon {
    display: block;
    margin-bottom: 11px;
    color: var(--accent);
    font-size: 42px;
  }
}
