:root {
  --bg: #eaf1ff;
  --paper: #ffffff;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --accent: #1a73e8;
  --accent-soft: #e8f0fe;
  --preview-ratio: 25 / 14;
  --preview-height: 190px;
  --chip-row-height: 28px;
  --chip-max-rows: 3;
  --card-gap: 12px;
  --control-height: 40px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-y: auto;
}

body {
  margin: 0;
  min-height: 100dvh;
  height: auto;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -10%, #bcd5ff 0%, transparent 38%),
    radial-gradient(circle at 92% 0%, #94bbff 0%, transparent 30%),
    var(--bg);
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.background-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.35;
}

.shape-one {
  width: 360px;
  height: 360px;
  background: #8db4ff;
  top: -150px;
  right: -120px;
}

.shape-two {
  width: 300px;
  height: 300px;
  background: #6ea4ff;
  bottom: -120px;
  left: -100px;
}

.hero {
  width: 100%;
  margin: 0;
  flex: 0 0 auto;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: #174ea6;
  font-weight: 300;
}

h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
}

.intro {
  margin: 0;
  max-width: none;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.layout {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  grid-auto-rows: min-content;
  align-content: start;
  align-items: start;
  flex: 1 1 auto;
  min-height: 0;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.18), 0 1px 3px rgba(60, 64, 67, 0.1);
  min-height: 0;
}

.controls-panel h2 {
  margin: 0;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.language-controls {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  margin-left: auto;
  min-width: 0;
}

.language-dropdown {
  position: relative;
  width: min(320px, 100%);
}

.language-dropdown-summary {
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 28px 0 10px;
  cursor: pointer;
  min-width: 0;
  width: 100%;
  min-height: var(--control-height);
  display: flex;
  align-items: center;
  position: relative;
}

.language-dropdown-summary::-webkit-details-marker {
  display: none;
}

.language-dropdown-summary::after {
  content: "expand_more";
  font-family: "Material Symbols Rounded";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 20px;
  line-height: 1;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #6e7681;
  z-index: 1;
  transition: transform 140ms ease, color 140ms ease;
}

.language-dropdown[open] .language-dropdown-summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.language-dropdown[open] .language-dropdown-summary {
  border-color: #a8c7fa;
  box-shadow: 0 0 0 2px rgba(168, 199, 250, 0.4);
}

.language-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  min-width: 260px;
  max-height: 9.8rem;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(60, 64, 67, 0.18);
  padding: 4px;
}

.language-dropdown-option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 7px 8px;
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

.language-dropdown-option:hover {
  background: #f1f6ff;
}

.language-dropdown-option.active {
  background: #e8f0fe;
}

.lang-label {
  color: var(--ink);
}

.lang-code {
  color: #7a8087;
  font-family: "Roboto Mono", "Consolas", monospace;
  font-size: 0.9em;
}

.lang-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: #3c4043;
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  font-size: 0.82rem;
  text-transform: lowercase;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.lang-btn:hover {
  border-color: #aecbfa;
  background: #f8fbff;
}

.lang-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #174ea6;
}

.hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 10px 0 0;
}

.add-flair-toggle {
  border: 1px solid var(--line);
  background: #fff;
  color: #3c4043;
  border-radius: 8px;
  min-height: var(--control-height);
  padding: 0 12px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
}

.add-flair-toggle:hover {
  border-color: #aecbfa;
  background: #f8fbff;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #1a73e8;
  font: inherit;
  cursor: pointer;
}

.icon-button:hover {
  background: rgba(26, 115, 232, 0.1);
  color: #174ea6;
}

.icon-button .material-symbols-rounded {
  font-size: 20px;
}

.copy-toast {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 12px 16px;
  border-radius: 8px;
  background: #188038;
  color: #fff;
  box-shadow: 0 4px 14px rgba(32, 33, 36, 0.24);
  font-size: 0.9rem;
  font-weight: 500;
}

.copy-toast.error {
  background: #b3261e;
}

.add-flair-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(860px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  z-index: 80;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(60, 64, 67, 0.3);
}

.add-flair-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(32, 33, 36, 0.38);
  backdrop-filter: blur(1px);
  z-index: 70;
}

.add-flair-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.add-flair-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.add-flair-icon-btn {
  border: 0;
  background: transparent;
  color: #5f6368;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Material Symbols Rounded";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.add-flair-icon-btn:hover {
  background: rgba(26, 115, 232, 0.1);
  color: #174ea6;
}

.add-flair-save {
  color: #1a73e8;
}

.add-flair-save:hover {
  background: rgba(26, 115, 232, 0.14);
  color: #1557b0;
}

.add-flair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.add-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

.add-new-id-field {
  grid-column: auto;
}

.add-keywords-field {
  grid-column: auto;
}

.add-keywords-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.add-kw-chip {
  font-size: 0.76rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #e0e3e7;
  background: #f1f3f4;
  color: #3c4043;
}

.add-kw-chip.is-duplicate {
  background: #fce8e6;
  border-color: #f28b82;
  color: #c5221f;
  text-decoration: line-through;
}

.add-id-field {
  grid-column: 1 / -1;
}

.add-combobox {
  position: relative;
}

.add-combobox input {
  width: 100%;
}

.add-combobox-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.add-combobox-list li {
  padding: 7px 12px;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
  border-radius: 4px;
}

.add-combobox-list li:hover,
.add-combobox-list li[aria-selected="true"] {
  background: #e8f0fe;
  color: #1a73e8;
}

.add-combobox-list li.is-new-id {
  color: #1a73e8;
  font-style: italic;
}

.add-field input,
.add-field select {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: var(--control-height);
  padding: 0 10px;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.add-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 34px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%236e7681' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 18px 18px;
}

.add-field input:focus,
.add-field select:focus {
  outline: 2px solid #a8c7fa;
  outline-offset: 1px;
  border-color: #a8c7fa;
}

.add-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.add-preview-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--muted);
  width: 100%;
  max-width: 100%;
}

.add-preview-item img {
  display: block;
  width: min(100%, 320px);
  max-width: 320px;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f1f3f4;
  align-self: center;
  margin: 0;
}

.add-preview-item img.is-missing {
  width: min(100%, 320px);
  height: 120px;
  max-height: 120px;
  opacity: 0.45;
  background:
    linear-gradient(135deg, rgba(95, 99, 104, 0.08) 0 42%, transparent 42% 58%, rgba(95, 99, 104, 0.08) 58% 100%),
    #f1f3f4;
}

.add-form-status {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  min-height: 1.1em;
}

.edit-keyword-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.source {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 8px 0 0;
}

.search-wrap {
  display: block;
  flex: 1 1 320px;
  margin: 0;
  min-width: 220px;
}

.search-wrap span {
  display: none;
}

.search-wrap input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
  font-size: 16px;
  min-height: var(--control-height);
  line-height: 1.2;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.search-wrap input:focus {
  outline: 2px solid #a8c7fa;
  outline-offset: 1px;
  border-color: #a8c7fa;
}

.search-wrap select,
.language-controls select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 28px 6px 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  background-image: linear-gradient(45deg, transparent 50%, #6e7681 50%), linear-gradient(135deg, #6e7681 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.language-controls select {
  max-height: 9.5rem;
  overflow-y: auto;
  min-width: 220px;
}

code {
  font-family: "Roboto Mono", "Consolas", monospace;
  font-size: 0.85em;
  background: #eef3fd;
  padding: 0 4px;
  border-radius: 3px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-head h2 {
  margin: 0 0 8px;
}

.layout .panel:last-child {
  display: block;
}

.count {
  font-size: 0.85rem;
  color: var(--muted);
}

.carousel {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: var(--card-gap);
  align-items: start;
}

.carousel-viewport {
  overflow: hidden;
  padding: 12px 0;
}

.carousel-track {
  display: flex;
  transition: transform 220ms ease;
}

.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(var(--slide-cols, 3), minmax(0, 1fr));
  grid-template-rows: repeat(var(--slide-rows, 2), minmax(0, 1fr));
  gap: var(--card-gap);
  padding: 0 var(--card-gap);
  align-items: stretch;
  box-sizing: border-box;
}

.carousel-arrow {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  position: relative;
  align-self: start;
  margin-top: 12px;
  height: var(--carousel-card-height, auto);
  min-height: 44px;
}

.carousel-arrow:disabled {
  opacity: 0.45;
  cursor: default;
}

.carousel-arrow::before {
  content: "chevron_right";
  font-family: "Material Symbols Rounded";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 22px;
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  color: #6e7681;
  transform: translate(-50%, -50%);
}

#carousel-prev::before {
  content: "chevron_left";
}

.flair {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #e4e7eb;
  padding: 10px;
  padding-bottom: 28px;
  background: #fff;
  height: auto;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.flair:not(.flair-skeleton) {
  cursor: pointer;
}

.flair:hover {
  transform: translateY(-2px);
  border-color: #d2e3fc;
  box-shadow: 0 4px 10px rgba(60, 64, 67, 0.14);
}

.preview-stack {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  border: 0;
  padding: 0;
  background: #f1f3f4;
  overflow: hidden;
  display: grid;
  place-items: center;
  line-height: 0;
  transform: translateZ(0);
}

.preview-stack.image-preview-loading {
  width: min(100%, 320px);
  aspect-ratio: var(--preview-ratio);
}

.preview-stack.image-preview-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 10px;
  background: linear-gradient(90deg, #e8eaed 25%, #f1f3f4 50%, #e8eaed 75%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  pointer-events: none;
}

.preview-img.image-loading {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 0;
  opacity: 0;
}

.preview-stack::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: #f1f3f4;
  pointer-events: none;
}

.preview-img {
  position: static;
  display: block;
  vertical-align: top;
  width: auto;
  height: auto;
  max-width: 100%;
  border-radius: 10px;
  object-fit: contain;
  object-position: center center;
  transition: opacity 200ms ease, filter 200ms ease;
  backface-visibility: hidden;
}

.preview-new {
  opacity: 1;
  object-fit: contain;
}

.preview-old {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
}

.flair:hover .preview-new {
  opacity: 0;
}

.flair:hover .preview-old {
  opacity: 1;
}

.preview-old-only {
  object-fit: contain;
  object-position: center;
  filter: grayscale(1);
}

.flair:hover .preview-old-only {
  filter: grayscale(0);
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: calc(var(--chip-row-height) * var(--chip-max-rows));
  align-content: flex-start;
  overflow-y: auto;
  padding-right: 4px;
}

.keyword {
  border-radius: 999px;
  background: #f1f3f4;
  color: #3c4043;
  border: 1px solid #e0e3e7;
  font-size: 0.76rem;
  padding: 3px 8px;
}

.keyword.old-keyword {
  background: #ececec;
  color: #6a6a6a;
  border-color: #d2d2d2;
}

.flair-id {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-family: "Roboto Mono", "Consolas", monospace;
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5f6368;
  background: transparent;
  padding: 0;
  border-radius: 0;
  z-index: 4;
  pointer-events: text;
}

.flair.unavailable {
  background: #f8f8f8;
  color: #6a6a6a;
}

.unavailable-ribbon {
  position: absolute;
  left: 10px;
  bottom: 8px;
  width: auto;
  text-align: left;
  transform: none;
  transform-origin: initial;
  background: transparent;
  color: #5f6368;
  border: 0;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 0.56rem;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-transform: uppercase;
  font-weight: 300;
  display: block;
  padding: 0;
  pointer-events: none;
  z-index: 3;
}

.footer {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  flex: 0 0 auto;
  max-height: none;
  overflow: visible;
}

.legal {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  body {
    min-height: 100dvh;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
  }
  body {
    padding: 14px;
    gap: 10px;
  }
  .intro {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .carousel {
    grid-template-columns: 36px 1fr 36px;
    gap: 8px;
  }
  .carousel-viewport {
    padding: 10px 0;
  }
  .controls-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    column-gap: 0;
    row-gap: 8px;
  }
  .language-controls {
    display: block;
    margin-left: 0;
    width: 100%;
    order: 1;
  }
  .search-wrap {
    min-width: 0;
    width: 100%;
    order: 2;
  }
  .language-dropdown {
    width: 100%;
    max-width: none;
  }
  .language-dropdown-summary,
  .search-wrap input {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }
  .language-dropdown-menu {
    right: 0;
    left: auto;
    min-width: 100%;
    width: 100%;
  }
  .footer {
    max-height: none;
  }
  .panel-head {
    align-items: flex-start;
  }
  .panel-head-actions {
    gap: 6px;
  }
  .add-flair-toggle {
    min-height: var(--control-height);
    padding: 0 8px;
    font-size: 0.9rem;
  }
  .add-flair-grid {
    grid-template-columns: 1fr;
  }
  .add-flair-panel {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 10px;
  }
  .add-new-id-field,
  .add-keywords-field {
    grid-column: auto;
  }
  .add-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .controls-row {
    grid-template-columns: 1fr;
  }
  .language-controls {
    width: 100%;
    justify-content: stretch;
  }
  .language-dropdown {
    max-width: none;
  }
}

@media (max-width: 980px) {
  body {
    padding: 18px;
  }
  .panel {
    padding: 12px;
  }
  .language-dropdown {
    width: min(280px, 100%);
  }
  .carousel {
    grid-template-columns: 38px 1fr 38px;
  }
}

@media (min-width: 1400px) {
  .carousel-viewport {
    padding: 14px 0;
  }
  .panel {
    padding: 16px;
  }
}

/* Skeleton cards */
@keyframes skeleton-shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.flair-skeleton {
  pointer-events: none;
}

.skeleton-block {
  border-radius: 8px;
  background: linear-gradient(90deg, #e8eaed 25%, #f1f3f4 50%, #e8eaed 75%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

/* Match the "old keyword" chip base tone while still shimmering. */
.keyword.old-keyword.skeleton-block {
  background: linear-gradient(90deg, #d8d8d8 25%, #ececec 50%, #d8d8d8 75%);
}

.skeleton-preview-stack {
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.skeleton-img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
}

.skeleton-chip {
  height: 24px;
  border-radius: 999px;
  padding: 0;
  display: inline-block;
  font-size: 0;
  line-height: 24px;
}

.skeleton-id {
  width: 60px;
  height: 10px;
  border-radius: 4px;
  position: absolute;
  right: 10px;
  bottom: 8px;
}

/* Mini loader (flair count) */
#flair-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.flair-loading-status {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.add-kw-chip .remove-kw {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: "Material Symbols Rounded";
  font-size: 16px;
  line-height: 1;
  vertical-align: middle;
}

.add-kw-chip .remove-kw:hover {
  background: rgba(60, 64, 67, 0.12);
  color: var(--ink);
}

.flair-count-loader {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(66, 133, 244, 0.2);
  border-top-color: #4285f4;
  border-radius: 50%;
  animation: loader-spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

.skeleton-ribbon {
  width: 110px;
  height: 10px;
  border-radius: 4px;
}

/* App loader overlay */
.add-flair-loader {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
}

.add-flair-loader:not([hidden]) {
  display: flex;
}

.add-flair-loader-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(66, 133, 244, 0.2);
  border-top-color: #4285f4;
  border-radius: 50%;
  animation: loader-spin 0.7s linear infinite;
}

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}
