/** ChallengeFlow: 06-forms-discover.css */
@layer components {
  /* Formulare und Uploads */
  .comment-input-wrap input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 13.5px;
    color: var(--text);
  }
  .form-grid label {
    display: grid;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--copy);
  }
  .form-grid input, .form-grid textarea, .form-grid select {
    border: 1px solid var(--line-strong);
    border-radius: 0;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text);
    background: var(--input);
  }
  .password-input-wrap {
    position: relative;
    display: block;
  }
  .password-input-wrap input {
    width: 100%;
    padding-right: 46px;
  }
  .password-toggle {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
  }
  .password-toggle:hover,
  .password-toggle:focus-visible {
    color: var(--text);
    outline: 2px solid var(--accent);
    outline-offset: -2px;
  }
  .password-eye {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .password-eye-off { display: none; }
  .password-toggle[aria-pressed="true"] .password-eye-open { display: none; }
  .password-toggle[aria-pressed="true"] .password-eye-off { display: block; }
  .password-rules {
    display: block;
    font-size: 11.5px;
    line-height: 1.45;
    font-weight: 500;
    color: var(--muted);
  }
  .auth-success {
    color: var(--text);
    font-weight: 700;
    border-left: 3px solid var(--accent);
    padding-left: 10px;
    text-align: left;
  }
  .auth-actions-stack {
    margin-top: 20px;
    text-align: left;
  }
  .challenge-category-field {
    min-width: 0;
  }
  .challenge-category-combobox {
    display: grid;
    grid-template-columns: minmax(0,1fr) 44px;
    min-width: 0;
  }
  .challenge-category-combobox input {
    width: 100%;
    min-width: 0;
    border-right: 0;
  }
  .challenge-category-picker {
    display: grid;
    place-items: center;
    min-width: 44px;
    border: 1px solid var(--line-strong);
    background: var(--input);
    color: var(--text);
    cursor: pointer;
  }
  .challenge-category-picker:hover,
  .challenge-category-picker:focus-visible {
    background: var(--surface-2);
    color: var(--accent);
    outline: none;
  }
  .challenge-category-picker svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .file-drop-field {
    display: grid;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--copy);
  }
  .file-drop input {
    display: none;
  }
  .upload-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 18px;
    color: var(--muted);
    font-size: 12.5px;
    border: 1px dashed var(--line-strong);
    border-radius: 0;
  }
  .preview-thumb img,
  .preview-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .preview-index {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(15,23,42,.62);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 0;
  }
  .preview-primary-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 0;
    padding: 4px 8px;
    background: rgba(10,10,12,.78);
    color: #fff;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .01em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .preview-info {
    margin-top: 6px;
    font-size: 10.5px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .preview-info strong {
    display: block;
    color: var(--text);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .preview-caption-label {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    color: var(--copy);
    font-size: 12px;
    font-weight: 650;
    cursor: default;
  }
  .preview-caption-label span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }
  .preview-caption-label em {
    color: var(--muted);
    font-size: 10.5px;
    font-style: normal;
    font-weight: 500;
  }
  .preview-caption-input {
    width: 100%;
    min-height: 76px;
    resize: vertical;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    padding: 9px 10px;
    background: var(--input);
    color: var(--text);
    font-size: 12.5px;
    line-height: 1.4;
    cursor: text;
  }
  .preview-caption-input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
  }
  .dm-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
  }
  .dm-form .dm-send {
    justify-self: start;
  }
  .preview-item:active {
    cursor: grabbing;
  }
  .preview-item.dragging {
    opacity: .45;
  }
  .preview-item.drop-target {
    outline: 2px dashed var(--accent);
    outline-offset: 2px;
    background: var(--accent-soft);
  }
  .form-grid {
    display: grid;
    gap: 16px;
  }
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  /* Optional notification when an update is published. The compact control
     remains visually secondary to the actual submit action, but has a clear
     keyboard focus and an explicit text description. */
  .update-notify-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
    padding: 13px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .update-notify-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
  }
  .update-notify-copy strong {
    color: var(--text);
    font-size: 12.5px;
    font-weight: 750;
  }
  .update-notify-copy span {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.4;
  }
  .form-grid .mini-switch {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0;
    width: 38px;
    height: 22px;
    cursor: pointer;
  }
  .mini-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .mini-switch-track {
    position: relative;
    width: 38px;
    height: 22px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--soft-2);
    transition: background-color .16s ease, border-color .16s ease;
  }
  .mini-switch-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--muted);
    transition: transform .16s ease, background-color .16s ease;
  }
  .mini-switch input:checked + .mini-switch-track {
    border-color: var(--accent);
    background: var(--accent-soft);
  }
  .mini-switch input:checked + .mini-switch-track .mini-switch-knob {
    transform: translateX(16px);
    background: var(--accent);
  }
  .mini-switch input:focus-visible + .mini-switch-track {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }
  .form-grid textarea {
    resize: vertical;
    min-height: 104px;
    line-height: 1.5;
  }
  .file-drop {
    display: grid;
    justify-items: center;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease,background .15s ease;
    min-height: 154px;
    align-content: center;
    gap: 7px;
    border: 1px dashed rgba(0,0,0,.22);
    border-radius: 0;
    padding: 26px 18px;
    background: #fafafa;
  }
  .file-drop:hover, .file-drop.drag-active {
    border-color: var(--accent);
    background: var(--accent-glow);
  }
  .file-drop-icon {
    line-height: 1;
    font-size: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-soft);
    position: relative;
  }
  .file-drop-icon::before {
    content: "+";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 25px;
    font-weight: 300;
  }
  .file-drop-title {
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
  }
  .file-drop-sub {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
  }
  .upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(210px,1fr));
    gap: 12px;
  }
  .upload-validation-message {
    grid-column: 1 / -1;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid color-mix(in srgb, var(--danger) 48%, transparent);
    border-radius: 0;
    background: color-mix(in srgb, var(--danger) 10%, transparent);
    font-size: 13px;
    line-height: 1.45;
  }
  .field-hint {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
  }
  .preview-item {
    background: #fff;
    cursor: grab;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 7px;
    box-shadow: 0 3px 12px rgba(0,0,0,.04);
  }
  .preview-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--soft);
    cursor: zoom-in;
    border-radius: 0;
  }
  .preview-thumb video {
    pointer-events: none;
  }
  .thumb-btn {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(15,23,42,.64);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(15,23,42,.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background-color .15s ease,transform .1s ease,opacity .15s ease;
  }
  .thumb-btn:hover { background: rgba(15,23,42,.88); }
  .thumb-btn:active { transform: scale(.92); }
  .thumb-btn:disabled { opacity: .35; pointer-events: none; }
  .thumb-remove { position: absolute; top: 5px; right: 5px; }
  .thumb-remove:hover { background: var(--danger); }
  .thumb-crop {
    position: absolute;
    top: 5px;
    left: 40px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 0;
    border-radius: 0;
    background: rgba(15,23,42,.72);
    color: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(15,23,42,.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background-color .15s ease,transform .1s ease;
  }
  .thumb-crop:hover,
  .thumb-crop:focus-visible { background: rgba(15,23,42,.94); }
  .thumb-crop:active { transform: scale(.97); }
  .thumb-crop .ui-icon { width: 14px; height: 14px; }
  .thumb-move {
    position: absolute;
    bottom: 5px;
    left: 50%;
    display: flex;
    gap: 5px;
    transform: translateX(-50%);
  }
  .upload-preview-head {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
  }
  .upload-preview-head > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }
  .upload-clear-all {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 11px;
  }
  .form-submit-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 2px;
  }
  .form-submit-row .primary-action { min-width: 170px; }
  .form-reset-button { margin-right: auto; }

  .comment-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    padding: 6px 6px 6px 14px;
    margin-bottom: 12px;
    min-height: 46px;
    border-color: rgba(0,0,0,.13);
    background: #fff;
    padding-left: 16px;
  }
  .comment-input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: none;
  }

  /* Entdecken, Suche und Filter */
  .country-search {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    padding: 9px 16px;
    font-size: 13.5px;
    background: var(--input);
    color: var(--text);
  }
  .country-search:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
  }
  .feed-selection-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .feed-autocomplete {
    position: relative;
    min-width: 0;
  }
  .feed-autocomplete input {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    padding: 9px 11px;
    background: var(--input);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    text-transform: none;
    letter-spacing: normal;
    -webkit-appearance: none;
    appearance: none;
  }
  .feed-autocomplete input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
  }
  .feed-suggestion-option small {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 600;
  }
  .feed-filter-reset:disabled {
    opacity: .45;
    cursor: default;
  }
  .feed-filter-grid {
    display: grid;
    align-items: end;
    grid-template-columns: minmax(210px,1fr) minmax(210px,1fr) auto;
    gap: 12px;
  }
  .feed-filter-field {
    display: grid;
    text-transform: uppercase;
    min-width: 0;
    gap: 7px;
    color: #767676;
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: .055em;
  }
  .feed-filter-field em {
    font-style: normal;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    color: #767676;
  }
  .feed-selection-chip b {
    line-height: 1;
    font-size: 14px;
    font-weight: 500;
  }
  .feed-autocomplete input, .country-search {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 0 13px;
    background: #fff;
    font-size: 14px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.02);
  }
  .feed-autocomplete input::placeholder, .country-search::placeholder {
    color: #8a8e97;
  }
  .feed-suggestion-menu {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 40;
    max-height: 245px;
    overflow-y: auto;
    text-transform: none;
    letter-spacing: normal;
    top: calc(100% + 7px);
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 18px 50px rgba(0,0,0,.14);
  }
  .feed-suggestion-option span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 560;
  }
  .feed-filter-reset {
    white-space: nowrap;
    min-height: 44px;
  }
  .country-tools {
    display: grid;
    margin: 2px 0 12px;
    gap: 12px;
  }
  .filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }
  .filter-chip {
    color: var(--copy);
    border-radius: 0;
    transition: background .15s ease,color .15s ease,border-color .15s ease;
    min-height: 34px;
    padding: 0 13px;
    border: 0;
    background: var(--soft);
    font-size: 12px;
    font-weight: 560;
  }
  .filter-chip:hover {
    border-color: var(--accent);
    background: var(--soft);
  }
  .discover-scope-panel {
    display: flex;
    justify-content: flex-start;
  }
  .grid.challenge-grid.discover-challenge-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 18px;
  }
  .discover-challenge-card {
    width: 100%;
  }
  .discover-challenge-overlay-card {
    padding: 0;
    overflow: hidden;
  }
  .discover-challenge-hero {
    position: relative;
    width: 100%;
    aspect-ratio: var(--photo-ratio);
    max-height: min(520px,64vh);
    overflow: hidden;
    isolation: isolate;
    background: #17181c;
  }
  .discover-challenge-photo-carousel,
  .discover-challenge-photo-strip,
  .discover-challenge-photo-frame,
  .discover-challenge-hero-photo,
  .discover-challenge-hero-fallback {
    width: 100%;
    height: 100%;
  }
  .discover-challenge-photo-carousel,
  .discover-challenge-hero-fallback {
    position: absolute;
    inset: 0;
  }
  .discover-challenge-photo-carousel {
    border-radius: 0;
  }
  .discover-challenge-photo-strip {
    max-height: none;
    border-radius: 0;
    background: #17181c;
  }
  .discover-challenge-photo-frame {
    aspect-ratio: auto;
    max-height: none;
  }
  .discover-challenge-photo-button {
    cursor: pointer;
  }
  .discover-challenge-hero-photo {
    display: block;
    object-fit: cover;
    object-position: center;
    filter: blur(1.35px) brightness(.72) saturate(.88);
    transform: scale(1.018);
  }
  .discover-challenge-photo-frame .photo-counter {
    top: 14px;
    right: auto;
    z-index: 4;
  }
  .discover-challenge-photo-carousel .media-arrow {
    z-index: 4;
  }
  .discover-challenge-hero-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg,#d3d5cc,#17181c);
    color: rgba(255,255,255,.5);
    font-size: 13px;
    font-weight: 650;
  }
  .discover-challenge-hero-matte {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(180deg,rgba(7,8,11,.58) 0%,rgba(7,8,11,.12) 34%,rgba(7,8,11,.34) 58%,rgba(7,8,11,.94) 100%),
      linear-gradient(90deg,rgba(7,8,11,.28),transparent 55%);
  }
  .discover-challenge-hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    padding: 18px 20px 20px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.74);
    pointer-events: none;
  }
  .discover-challenge-ownerline {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding-right: 48px;
  }
  .discover-challenge-ownerline > div:last-child {
    min-width: 0;
  }
  .discover-challenge-ownerline strong,
  .discover-challenge-ownerline span,
  .discover-challenge-ownerline small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .discover-challenge-ownerline strong {
    color: #fff;
    font-size: 13px;
    font-weight: 750;
  }
  .discover-challenge-ownerline span,
  .discover-challenge-ownerline small {
    color: rgba(255,255,255,.82);
    font-size: 11.5px;
    line-height: 1.35;
  }
  .discover-challenge-ownerline .challenge-category-badge {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    margin-top: 5px;
    border-color: rgba(255,255,255,.28);
    background: rgba(8,9,12,.52);
    color: rgba(255,255,255,.9);
    text-shadow: none;
  }
  .discover-challenge-hero-copy {
    width: 100%;
    max-width: none;
  }
  .discover-challenge-main-photo-label {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    margin-bottom: 8px;
    padding: 3px 9px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 0;
    background: rgba(16,17,20,.58);
    color: rgba(255,255,255,.92);
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: .02em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .discover-challenge-hero-title {
    display: block;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    font-size: clamp(24px,4vw,38px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.035em;
    text-align: left;
    text-shadow: 0 2px 16px rgba(0,0,0,.78);
    cursor: pointer;
  }
  .discover-challenge-hero-title,
  .discover-challenge-more {
    pointer-events: auto;
  }
  .discover-challenge-hero-title:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
  }
  .discover-challenge-hero-title:focus-visible,
  .discover-challenge-more:focus-visible {
    outline: 3px solid var(--accent-glow);
    outline-offset: 3px;
  }
  .discover-challenge-hero-copy p {
    max-width: 58ch;
    margin: 9px 0 0;
    color: rgba(255,255,255,.9);
    font-size: 14px;
    line-height: 1.48;
  }
  .discover-challenge-more {
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
  }
  .discover-challenge-more:hover {
    text-decoration: underline;
  }
  .discover-challenge-hero-copy .progress-wrap.compact {
    margin: 13px 0 0;
  }
  .discover-challenge-hero-copy .progress-meta {
    color: rgba(255,255,255,.78);
    text-shadow: 0 1px 6px rgba(0,0,0,.74);
  }
  .discover-challenge-hero-copy .progress-meta strong {
    color: #fff;
  }
  .discover-challenge-hero-copy .progress-bar {
    height: 6px;
    background: rgba(255,255,255,.26);
    box-shadow: 0 1px 4px rgba(0,0,0,.24);
  }
  .discover-challenge-overlay-card > .discover-challenge-actions {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: end;
    gap: 10px;
    padding: 14px 20px 18px;
  }
  .discover-challenge-action-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
  }
  .discover-challenge-actions > .vote-control {
    align-self: end;
    justify-self: end;
    margin-left: 0;
  }
  .filter-chip.active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
  }
  .discover-challenge-grid>.challenge-card, .grid.challenge-grid>.challenge-card {
    width: 100%;
    height: 100%;
  }
  .feed-selection-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border-radius: 0;
    font: inherit;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    min-height: 30px;
    padding: 0 9px 0 11px;
    gap: 7px;
    border: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-deep);
    background: #e8ecff;
    border-color: rgba(0,38,196,.22);
  }
  .feed-selection-chip:hover {
    color: #fff;
    background: var(--accent);
  }
  .feed-suggestion-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    font: inherit;
    cursor: pointer;
    min-height: 40px;
    border-radius: 0;
    padding: 8px 10px;
    font-size: 13px;
    color: #0a0a0a;
  }
  .feed-suggestion-option:hover, .feed-suggestion-option:focus {
    outline: none;
    color: #0a0a0a;
    background: #e8ecff;
  }
  /* Die drei Darstellungen sind unter „Meine“ und in beiden Entdecken-Modi
     identisch bedienbar. Die Datenquelle ändert sich beim Umschalten nicht. */
  .grid.challenge-grid.discover-challenge-grid.mine-challenge-grid.mine-view-full,
  .grid.challenge-grid.discover-challenge-grid.discover-layout-full {
    grid-template-columns: 1fr;
  }
  .grid.challenge-grid.discover-challenge-grid.mine-challenge-grid.mine-view-three,
  .grid.challenge-grid.discover-challenge-grid.discover-layout-three {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .mine-challenge-grid.mine-view-three .discover-challenge-hero,
  .discover-challenge-grid.discover-layout-three .discover-challenge-hero {
    aspect-ratio: 4/5;
    max-height: none;
  }
  .mine-challenge-grid.mine-view-three .discover-challenge-hero-content,
  .discover-challenge-grid.discover-layout-three .discover-challenge-hero-content {
    gap: 14px;
    padding: 14px;
  }
  .mine-challenge-grid.mine-view-three .discover-challenge-hero-title,
  .discover-challenge-grid.discover-layout-three .discover-challenge-hero-title {
    font-size: clamp(19px,2.2vw,27px);
  }
  .mine-challenge-grid.mine-view-three .discover-challenge-hero-copy p,
  .discover-challenge-grid.discover-layout-three .discover-challenge-hero-copy p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .mine-challenge-grid.mine-view-three .discover-challenge-ownerline small,
  .mine-challenge-grid.mine-view-three .discover-challenge-main-photo-label,
  .discover-challenge-grid.discover-layout-three .discover-challenge-ownerline small,
  .discover-challenge-grid.discover-layout-three .discover-challenge-main-photo-label {
    display: none;
  }
  .mine-challenge-grid.mine-view-three .discover-challenge-actions,
  .discover-challenge-grid.discover-layout-three .discover-challenge-actions {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: minmax(36px,auto) auto;
    gap: 10px;
    min-height: 102px;
    padding: 10px 12px 13px;
  }
  .mine-challenge-grid.mine-view-three .discover-challenge-action-buttons,
  .discover-challenge-grid.discover-layout-three .discover-challenge-action-buttons {
    gap: 4px;
  }
  .mine-challenge-grid.mine-view-three .discover-challenge-actions > .vote-control,
  .discover-challenge-grid.discover-layout-three .discover-challenge-actions > .vote-control {
    justify-self: end;
  }
  .discover-view-switcher {
    flex: 0 0 auto;
  }
  .discover-update-grid {
    display: grid;
    align-items: start;
    gap: 18px;
  }
  .discover-update-grid.discover-layout-three {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .discover-update-grid > .update-card {
    min-width: 0;
    margin: 0;
    overflow: hidden;
  }
  .discover-update-grid .media-carousel,
  .discover-update-grid .update-fallback,
  .discover-update-grid .media-strip,
  .discover-update-grid .media-frame {
    max-height: none;
    aspect-ratio: 4/5;
  }
  .discover-update-grid .update-header {
    align-items: flex-start;
    gap: 10px;
  }
  .discover-update-grid .update-context-labels {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .discover-update-grid .update-copy p {
    display: block;
    overflow: visible;
  }
  .discover-update-grid .discover-update-challenge-title {
    font-size: clamp(17px,1.7vw,21px);
  }
  .discover-update-grid .discover-update-progress {
    font-size: 13px;
  }
  .discover-update-grid .discover-update-text {
    font-size: 14px;
    line-height: 1.55;
  }
  .discover-update-grid .actionbar {
    gap: 5px;
  }
  .discover-loading-stack {
    display: grid;
    gap: 18px;
  }
  .discover-loading-card {
    min-height: 220px;
    display: grid;
    align-content: end;
    gap: 12px;
    overflow: hidden;
  }
  .discover-loading-card span {
    display: block;
    height: 12px;
    border-radius: 0;
    background: var(--soft-2);
    animation: discover-loading-pulse 1.1s ease-in-out infinite alternate;
  }
  .discover-loading-card span:nth-child(1) { width: 42%; }
  .discover-loading-card span:nth-child(2) { width: 78%; }
  .discover-loading-card span:nth-child(3) { width: 61%; }
  @keyframes discover-loading-pulse {
    from { opacity: .42; }
    to { opacity: .9; }
  }

  /* Suchbares Länderfeld beim Erstellen einer Challenge. */
  .country-autocomplete {
    position: relative;
  }
  .country-autocomplete-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 40;
    max-height: 260px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    background: var(--card);
    box-shadow: var(--elevated-shadow);
  }
  .country-autocomplete-option {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: left;
  }
  .country-autocomplete-option:hover,
  .country-autocomplete-option:focus-visible {
    background: var(--accent-soft);
  }
  .country-autocomplete-empty {
    padding: 9px 10px;
    color: var(--muted);
    font-size: 13px;
  }


  .country-tool-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .country-sort-label {
    display: grid;
    gap: 5px;
    min-width: 172px;
    color: var(--muted);
    font-family: var(--font-data);
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .country-sort {
    min-height: 38px;
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    background: var(--input);
    color: var(--text);
    padding: 0 34px 0 10px;
    font: inherit;
    text-transform: none;
    letter-spacing: normal;
  }
}
