:root {
  --canvas: #faf4df;
  --surface: #fffdf4;
  --surface-soft: #f6efd9;
  --surface-raised: #fff9e9;
  --ink: #213b31;
  --muted: #68766b;
  --line: #e6dcc0;
  --honey: #f5cf66;
  --honey-hover: #edbd45;
  --honey-ink: #26382c;
  --link: #76520f;
  --focus: #a9700d;
  --shadow: 0 8px 28px rgb(91 72 29 / 7%);
}

html[data-theme="dark"] {
  --canvas: #111d19;
  --surface: #1a2923;
  --surface-soft: #22352b;
  --surface-raised: #24362e;
  --ink: #f6f0da;
  --muted: #b7c3b3;
  --line: #405246;
  --honey: #f5cf66;
  --honey-hover: #ffe08d;
  --honey-ink: #1b2c21;
  --link: #ffdb80;
  --focus: #ffdc7a;
  --shadow: 0 8px 28px rgb(0 0 0 / 18%);
}

html body { background: var(--canvas); color: var(--ink); }
body { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, h2, .gc-brand { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
h1 { line-height: 1.12; }
a { color: var(--link); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.gc-shell { max-width: 75rem; }
.gc-header { border-bottom: 1px solid var(--line); }
.gc-nav { display: flex; align-items: center; gap: 1.5rem; padding: .25rem 0 1rem; }
.gc-brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-size: 1.35rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.gc-brand:hover { text-decoration: none; }
.gc-brand img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; }
.gc-brand small { display: block; margin-top: .35rem; color: var(--muted); font: 500 .7rem/1.1 ui-sans-serif, system-ui, sans-serif; letter-spacing: .01em; }
.gc-nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; margin-left: auto; }
.gc-nav-links a { color: var(--ink); font-size: .875rem; font-weight: 650; padding: .55rem .7rem; border-radius: .65rem; }
.gc-nav-links a:hover, .gc-nav-links a[aria-current="page"] { background: var(--surface-soft); text-decoration: none; }
.gc-account { display: flex; align-items: center; gap: .6rem; font-size: .8rem; }
.gc-theme-toggle { position: relative; display: inline-flex; align-items: center; justify-content: space-between; width: 4rem; height: 2.15rem; padding: .35rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--muted); cursor: pointer; }
.gc-theme-toggle svg { position: relative; z-index: 1; width: 1.15rem; height: 1.15rem; }
.gc-theme-toggle .gc-theme-sun { color: var(--honey-ink); }
.gc-theme-thumb { position: absolute; top: .2rem; left: .2rem; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--honey); transition: transform .15s ease; }
html[data-theme="dark"] .gc-theme-thumb { transform: translateX(1.85rem); }
html[data-theme="dark"] .gc-theme-toggle .gc-theme-sun { color: var(--muted); }
html[data-theme="dark"] .gc-theme-toggle .gc-theme-moon { color: var(--honey-ink); }
.gc-user img { width: 2.25rem; height: 2.25rem; }
.gc-logout { display: inline-flex; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: .65rem; color: var(--ink); font-weight: 650; white-space: nowrap; }
.gc-logout:hover { background: var(--surface-soft); text-decoration: none; }
.status-tag { font-size: 1.2rem; margin-right: .5rem; }
.gc-operations h1 { font-size: 2rem; }
.gc-operations h2 { font-size: 1.35rem; }
.gc-status { display: inline-flex; align-items: center; gap: .35rem; margin-left: .7rem; padding: .2rem .55rem; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: .72rem; font-weight: 650; }
.gc-status::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.gc-status-on { color: #31734b; background: #e0efdc; }
html[data-theme="dark"] .gc-status-on { color: #b3e2b4; background: #284a34; }

/* Map existing shared utility colors to the brand palette. */
html .bg-white, html .bg-white\/70 { background-color: var(--surface); }
html .bg-slate-50, html .bg-slate-100 { background-color: var(--surface-soft); }
html body.bg-slate-50 { background-color: var(--canvas); }
html .text-slate-900, html .text-slate-800, html .text-slate-700 { color: var(--ink); }
html .text-slate-600, html .text-slate-500, html .text-slate-400 { color: var(--muted); }
html .text-indigo-500, html .text-indigo-600, html .text-indigo-700, html .text-indigo-800 { color: var(--link); }
html .border-slate-100, html .border-slate-200, html .border-slate-300, html .border-indigo-100 { border-color: var(--line); }
html .divide-slate-100 > :not([hidden]) ~ :not([hidden]), html .divide-slate-200 > :not([hidden]) ~ :not([hidden]) { border-color: var(--line); }
html .bg-indigo-50, html .bg-indigo-100, html .bg-amber-50, html .bg-amber-100 { background-color: var(--surface-soft); }
html .text-indigo-100, html .text-amber-600, html .text-amber-700, html .text-amber-900 { color: var(--link); }
html .bg-gradient-to-r.from-indigo-500 { background-image: linear-gradient(110deg, #e7bd54, #f7df95); color: #26382c; }
html .bg-gradient-to-r.from-indigo-500 .text-indigo-100 { color: #455841; }
html .shadow, html .shadow-sm { box-shadow: var(--shadow); }
html main section.bg-white, html main div.bg-white { border: 1px solid var(--line); }
html main section { overflow-wrap: anywhere; }

/* Shared form controls: native inputs stay accessible and keep their behavior. */
html input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), html select, html textarea {
  max-width: 100%; min-height: 2.65rem; border: 1px solid var(--line); border-radius: .6rem;
  background-color: var(--surface-raised); color: var(--ink); padding: .55rem .75rem; font: inherit;
}
html input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus, html select:focus, html textarea:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
html input::placeholder, html textarea::placeholder { color: var(--muted); opacity: .85; }
html select:not([multiple]) { appearance: none; padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238c7d55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; }
html select[multiple] { min-height: 6rem; }
html textarea { width: 100%; }
html input[type="checkbox"] { appearance: none; display: inline-block; flex-shrink: 0; width: 2.65rem; height: 1.5rem; margin: 0 .4rem 0 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); vertical-align: middle; cursor: pointer; transition: background .15s ease; }
html input[type="checkbox"]::before { content: ""; display: block; width: 1.05rem; height: 1.05rem; margin: .16rem; border-radius: 50%; background: var(--muted); transition: transform .15s ease, background .15s ease; }
html input[type="checkbox"]:checked { background: #446e4e; border-color: #446e4e; }
html input[type="checkbox"]:checked::before { transform: translateX(1.1rem); background: #fffbee; }
html input[type="checkbox"]:disabled { opacity: .5; cursor: not-allowed; }
html input[type="radio"] { accent-color: #94701b; }
html form p:has(> label) { margin-bottom: .85rem; }
html form p > label { display: block; margin-bottom: .3rem; font-size: .875rem; font-weight: 650; }
html form p:has(input[type="checkbox"]) > label { display: inline; }
html .bg-indigo-600 { background-color: var(--honey); color: var(--honey-ink); }
html .bg-indigo-600:hover { background-color: var(--honey-hover); text-decoration: none; }
html button, html a.bg-indigo-600 { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
html button:disabled { opacity: .6; cursor: not-allowed; }
html .bg-red-50 { background-color: #ffebdf; color: #802f27; }
html .text-red-600, html .text-red-700 { color: #a33d30; }
html .bg-red-600, html .bg-red-700 { color: #fff; }
html[data-theme="dark"] .bg-red-50 { background-color: #4a2924; color: #ffd9c8; }
html[data-theme="dark"] .text-red-600, html[data-theme="dark"] .text-red-700 { color: #ffb7a4; }
html[data-theme="dark"] .bg-emerald-100 { background-color: #284d34; }
html[data-theme="dark"] .text-emerald-700 { color: #b9e6b9; }

/* Select2 shares the same form design, including its search and multi-select. */
html .select2-container--default .select2-selection--single,
html .select2-container--default .select2-selection--multiple { min-height: 2.65rem; height: auto; padding: .2rem .4rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--surface-raised); }
html .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ink); line-height: 2.15rem; }
html .select2-container--default .select2-selection--single .select2-selection__arrow { height: 2.65rem; }
html .select2-container--focus .select2-selection { outline: 2px solid var(--focus); outline-offset: 2px; }
html .select2-dropdown { border-color: var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
html .select2-container--default .select2-search--dropdown .select2-search__field { width: 100%; }
html .select2-container--default .select2-results__option--highlighted[aria-selected] { background: #446e4e; color: #fff; }
html .select2-container--default .select2-results__option[aria-selected=true] { background: var(--surface-soft); color: var(--ink); }
html .select2-container--default .select2-selection--multiple .select2-selection__choice { background: var(--surface-soft); border-color: var(--line); color: var(--ink); }
html body .select2-container--default .select2-search--inline input.select2-search__field { min-height: auto; border: 0; background: transparent; padding: .1rem; box-shadow: none; }
html body .select2-container--default .select2-search--inline input.select2-search__field:focus { outline: none; }
.gc-toggle-row { display: flex; align-items: center; gap: .65rem; min-height: 2.5rem; }
.gc-toggle-row label { cursor: pointer; }
.gc-hood-tab { padding: .45rem .75rem; border: 1px solid var(--line); border-radius: .6rem; font-size: .85rem; font-weight: 650; }
.gc-hood-tab[aria-current="page"] { background: var(--honey); color: var(--honey-ink); border-color: var(--honey); }
.gc-log-status { border-radius: 999px; padding: .2rem .65rem; font-size: .75rem; font-weight: 700; }
.gc-log-posted { color: #31734b; background: #e0efdc; }
.gc-log-missing { color: var(--link); background: var(--surface-soft); }
html[data-theme="dark"] .gc-log-posted { color: #b3e2b4; background: #284a34; }
.gc-log-images { display: flex; flex-wrap: wrap; gap: .6rem; }
.gc-log-images img { width: 8rem; height: 6rem; object-fit: cover; border-radius: .6rem; border: 1px solid var(--line); }
.gc-log-images a:focus-visible { border-radius: .6rem; }
.gc-image-dialog { width: fit-content; max-width: 95vw; max-height: 95vh; padding: .75rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); color: var(--ink); }
.gc-image-dialog::backdrop { background: rgb(0 0 0 / 75%); }
.gc-image-dialog img { max-width: min(90vw, 75rem); max-height: 85vh; object-fit: contain; }
.gc-image-close { display: block; margin-left: auto; font-size: 1.8rem; line-height: 1; padding: .25rem .5rem; }
html input.gc-level-input { width: 7rem; }

@media (max-width: 850px) {
  .gc-nav { flex-wrap: wrap; gap: .8rem; }
  .gc-nav-links { order: 3; width: 100%; margin-left: 0; }
  .gc-account { margin-left: auto; }
}
@media (max-width: 520px) {
  .gc-brand small, .gc-user > span { display: none; }
  .gc-brand { font-size: 1.15rem; }
  .gc-nav-links a { padding: .5rem .6rem; }
  .gc-user img { width: 1.9rem; height: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }

/* Reservation pages */
.gc-reservation-eyebrow { color: var(--link); font-size: .7rem; font-weight: 800; letter-spacing: .13em; }
.gc-reservation-heading h1 { margin: .25rem 0 .35rem; }
.gc-reservation-tabs, .gc-reservation-hoods { display: flex; flex-wrap: wrap; gap: .45rem; }
.gc-reservation-tabs { margin-top: 1.6rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.gc-reservation-tabs a { padding: .55rem .85rem; border-radius: .6rem; color: var(--muted); font-size: .9rem; font-weight: 700; }
.gc-reservation-tabs a:hover, .gc-reservation-tabs a[aria-current="page"] { background: var(--surface-soft); color: var(--ink); text-decoration: none; }
.gc-reservation-tabs a[aria-current="page"] { box-shadow: inset 0 -2px var(--honey); }
.gc-reservation-hood-picker { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-top: 1.4rem; }
.gc-reservation-hood-picker > a { margin-inline-start: auto; }
.gc-discord-preview { min-height: 7rem; padding: 1rem; border-radius: .5rem; border-inline-start: .25rem solid #e2b93b; background: #313338; color: #dbdee1; overflow-wrap: anywhere; }
.gc-reservation-section-head, .gc-reservation-group-heading, .gc-member-heading, .gc-task-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.gc-reservation-task-icon:not([hidden]) { display: inline-block; vertical-align: -.35em; margin-inline-end: .35rem; object-fit: contain; }
.gc-reservation-section-head { margin-top: 1.8rem; }
.gc-reservation-section-head p { margin-top: .25rem; }
.gc-reservation-search, .gc-reservation-filters { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem; margin-top: 1.2rem; }
.gc-reservation-search input { flex: 1; min-width: 13rem; }
.gc-reservation-filters label { display: grid; gap: .3rem; color: var(--muted); font-size: .8rem; font-weight: 650; }
.gc-reservation-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.45rem; padding: .45rem .85rem; border: 1px solid var(--line); border-radius: .6rem; color: var(--ink); font-size: .85rem; font-weight: 700; }
.gc-reservation-button:hover { background: var(--surface-soft); }
.gc-reservation-primary { background: var(--honey); border-color: var(--honey); color: var(--honey-ink); }
.gc-reservation-primary:hover { background: var(--honey-hover); }
.gc-log-approve { background: #17693f; border-color: #17693f; color: #fff; }
.gc-log-approve:hover { background: #105532; }
.gc-log-reject { background: #a62d38; border-color: #a62d38; color: #fff; }
.gc-log-reject:hover { background: #85232c; }
.gc-log-approve:disabled, .gc-log-reject:disabled { opacity: .5; cursor: not-allowed; }
.gc-reservation-note { margin-top: 1rem; color: var(--muted); font-size: .85rem; }
.gc-reservation-group { margin-top: 2rem; }
.gc-reservation-group-heading { margin-bottom: .9rem; }
.gc-reservation-group-heading span, .gc-member-heading span { color: var(--muted); font-size: .8rem; }
.gc-reservation-count { display: inline-flex; padding: .3rem .65rem; border-radius: 999px; background: var(--surface-soft); color: var(--ink); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.gc-task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: .85rem; }
.gc-task-card, .gc-member-reservations { border: 1px solid var(--line); border-radius: .85rem; background: var(--surface-raised); }
.gc-task-card { display: flex; flex-direction: column; min-height: 11rem; padding: 1rem; }
.gc-task-card[hidden] { display: none; }
.gc-task-card h3, .gc-member-heading h3 { font-weight: 750; }
.gc-task-label { margin-top: 1rem; color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .08em; }
.gc-task-members { flex: 1; margin: .3rem 0 .85rem; color: var(--muted); font-size: .85rem; }
.gc-task-member-list { display: flex; align-content: flex-start; flex-wrap: wrap; gap: .3rem .4rem; padding: 0; list-style: none; }
.gc-task-member-list li { max-width: 100%; padding: .15rem .45rem; border-radius: .4rem; background: var(--surface-soft); color: var(--ink); overflow-wrap: anywhere; }
.gc-task-own { margin: 0 0 .7rem; color: var(--link); font-size: .8rem; font-weight: 700; }
.gc-task-card form { margin-top: auto; }
.gc-task-actions, .gc-task-actions form { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.gc-task-actions { margin-top: auto; }
.gc-task-actions form { margin: 0; }
.gc-task-actions .gc-reservation-button { padding-inline: .65rem; }
.gc-task-action-note { flex-basis: 100%; color: var(--muted); font-size: .85rem; }
.gc-member-reservations { margin-bottom: .8rem; padding: 1rem; }
.gc-member-tasks { margin-top: .75rem; }
.gc-member-tasks li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.gc-member-tasks li span { display: block; color: var(--muted); font-size: .8rem; }
.gc-reservation-empty { padding: 1rem 0; color: var(--muted); font-size: .9rem; }
.gc-audit-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* Weekly derby review */
.gc-review-search { display: grid; gap: .35rem; max-width: 24rem; margin-top: 1.2rem; color: var(--muted); font-size: .85rem; font-weight: 650; }
.gc-weekly-save, .gc-vault-save { position: sticky; top: 0; z-index: 1; display: flex; justify-content: end; padding: .6rem 0; background: var(--surface); }
.gc-weekly-scroll { overflow-x: auto; }
.gc-weekly-roster, .gc-vault-inventory { width: 100%; min-width: 36rem; border-collapse: collapse; text-align: left; }
.gc-weekly-roster-swarm { min-width: 46rem; }
:is(.gc-weekly-roster, .gc-vault-inventory) :is(th, td) { padding: .65rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.gc-weekly-roster thead, .gc-weekly-group, .gc-vault-inventory thead, .gc-vault-group { background: var(--surface-soft); }
.gc-weekly-roster th small { display: block; color: var(--muted); font-weight: 400; }
.gc-weekly-value { width: 6rem; }
.gc-weekly-points { width: 8rem; }
.gc-weekly-deadline { width: 9rem; }
.gc-weekly-roster input, .gc-weekly-roster select, .gc-weekly-roster textarea { width: 100%; }
.gc-weekly-review { width: 38%; font-size: .85rem; }
.gc-weekly-review summary { cursor: pointer; color: var(--link); }
.gc-weekly-review dl { display: grid; gap: .35rem; margin-top: .5rem; }
.gc-weekly-review dt { font-weight: 650; }
.gc-weekly-review dd { color: var(--muted); }
.gc-weekly-roster [hidden] { display: none; }

/* Server vault inventory */
.gc-vault-save { align-items: end; flex-wrap: wrap; gap: .6rem; }
.gc-vault-total { width: 8rem; }
.gc-vault-total input { width: 100%; }
.gc-vault-error, .gc-vault-inventory { --vault-error: #a2261a; }
html[data-theme="dark"] :is(.gc-vault-error, .gc-vault-inventory) { --vault-error: #ffb3a8; }
.gc-vault-error { padding: .65rem .85rem; border: 1px solid currentColor; border-radius: .55rem; }
.gc-vault-error, .gc-vault-field-error { color: var(--vault-error); }
.gc-vault-field-error { min-width: 10rem; margin-top: .35rem; font-size: .8rem; }
.gc-vault-total input[aria-invalid="true"] { --line: var(--vault-error); --focus: var(--vault-error); }
.gc-vault-actions { width: 30%; font-size: .85rem; }
.gc-vault-actions summary { cursor: pointer; color: var(--link); }

.gc-save-toast {
  --toast-accent: var(--link);
  position: fixed;
  inset-block-end: max(1rem, env(safe-area-inset-bottom));
  inset-inline-end: max(1rem, env(safe-area-inset-right));
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  width: max-content;
  max-width: min(26rem, calc(100% - 2rem));
  padding: .875rem 1rem;
  border: 1px solid var(--line);
  border-inline-start: .25rem solid var(--toast-accent);
  border-radius: .75rem;
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: 0 8px 28px rgb(0 0 0 / 18%);
}
.gc-save-toast[hidden], .gc-save-toast-dismiss[hidden] { display: none; }
.gc-save-toast[data-state="success"] { --toast-accent: #33734a; }
.gc-save-toast[data-state="error"] { --toast-accent: #a0332a; }
html[data-theme="dark"] .gc-save-toast[data-state="success"] { --toast-accent: #9bd7aa; }
html[data-theme="dark"] .gc-save-toast[data-state="error"] { --toast-accent: #ffb7a4; }
.gc-save-toast-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--toast-accent);
  font-size: .75rem;
  font-weight: 700;
}
.gc-save-toast[data-state="loading"] .gc-save-toast-icon {
  border-inline-end-color: transparent;
  animation: gc-toast-spin .7s linear infinite;
}
.gc-save-toast-message { margin: 0; font-size: .875rem; font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
.gc-save-toast-dismiss {
  flex: none;
  margin: -.25rem -.25rem -.25rem 0;
  padding: .125rem .375rem;
  border-radius: .25rem;
  color: var(--ink);
  line-height: 1;
  font-size: 1.25rem;
}
.gc-save-toast-dismiss:focus-visible { outline: 2px solid var(--focus); }
@keyframes gc-toast-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .gc-save-toast[data-state="loading"] .gc-save-toast-icon { animation: none; }
}

.gc-emoji-editor {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.gc-emoji-editor input {
  flex: 1;
  min-width: 0;
}
.gc-emoji-preview:not([hidden]) {
  display: grid;
  place-items: center;
  flex: 0 0 2.75rem;
  height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: var(--surface-soft);
  color: var(--muted);
}
.gc-emoji-preview img:not([hidden]) + span {
  display: none;
}

.gc-contribution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: .5rem 1rem;
}
@media (min-width: 640px) {
  .gc-contribution-grid {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  }
}
.gc-contribution-field {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5rem;
  align-items: center;
  gap: .35rem;
  padding: .25rem 0 .5rem;
  border-bottom: 1px solid var(--line);
}
.gc-contribution-field input {
  width: 100%;
  min-width: 0;
}
.gc-contribution-field .errorlist {
  grid-column: 1 / -1;
}
.gc-contribution-field input[aria-invalid="true"],
.gc-emoji-editor input[aria-invalid="true"] {
  --line: #a33d30;
}
html[data-theme="dark"] :is(.gc-contribution-field, .gc-emoji-editor) input[aria-invalid="true"] {
  --line: #ffb7a4;
}
.gc-product-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.gc-product-label:not([data-icon-ready]) img {
  display: none;
}
.gc-product-label[data-icon-ready] span {
  position: absolute;
  z-index: 1;
  bottom: calc(100% - .25rem);
  left: 0;
  max-width: 100%;
  padding: .25rem .5rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
}
.gc-contribution-field:hover .gc-product-label[data-icon-ready] span,
.gc-contribution-field:focus-within .gc-product-label[data-icon-ready] span {
  opacity: 1;
}
