* {
    box-sizing: border-box;
}

body {
    background: var(--gmw-cream);
    color: var(--gmw-ink);
    font-family: var(--gmw-font-family);
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: var(--gmw-primary);
}

.gmw-shell {
    max-width: 1160px;
    margin: 0 auto;
    padding: var(--gmw-space-4);
}

/* The signed-in page header from the October 2026 restyle (AppHome.dc.html, AppOccasions.dc.html):
   a rounded app-icon mark, the page title over its one-line subtitle, and the page's primary action
   on the right. Reusable across signed-in pages; the mark's tint is set by a modifier. */
.gmw-page-head {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
}

.gmw-page-head__identity {
    align-items: center;
    display: flex;
    gap: 18px;
    min-width: 0;
}

.gmw-page-head__mark {
    align-items: center;
    background: var(--gmw-violet-tint);
    border-radius: 20px;
    display: flex;
    flex: none;
    height: 64px;
    justify-content: center;
    width: 64px;
}

.gmw-page-head__mark--coral {
    background: var(--gmw-coral-tint);
}

.gmw-page-head__mark--lemon {
    background: var(--gmw-lemon);
}

.gmw-page-head__titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.gmw-page-head__title {
    font-family: var(--gmw-font-display);
    font-size: clamp(1.9rem, 3.4vw, 36px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.05;
    margin: 0;
}

.gmw-page-head__subtitle {
    color: var(--gmw-slate);
    font-size: 15px;
    margin: 0;
}

.gmw-page-head__action {
    align-items: center;
    display: inline-flex;
    flex: none;
    gap: 8px;
}

.gmw-topbar {
    align-items: center;
    display: flex;
    gap: var(--gmw-space-3);
    justify-content: space-between;
    margin-bottom: var(--gmw-space-4);
}

.gmw-brand {
    align-items: center;
    color: var(--gmw-ink);
    display: flex;
    font-family: var(--gmw-font-display);
    font-size: 1.55rem;
    font-weight: 800;
    gap: 10px;
    letter-spacing: -.02em;
    text-decoration: none;
}

.gmw-brand__mark {
    align-items: center;
    color: var(--gmw-ink);
    display: inline-flex;
    justify-content: center;
}

/* The "My" in the GotMyWish wordmark carries the brand violet; on the midnight
   band the next nav cards use the light violet instead. */
.gmw-wordmark__my {
    color: var(--gmw-violet);
}

.gmw-brand--on-dark .gmw-wordmark__my {
    color: var(--gmw-violet-dark);
}

.gmw-top-actions,
.gmw-action-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--gmw-space-2);
}

.gmw-top-actions {
    justify-content: flex-end;
}

.gmw-account-chip {
    align-items: center;
    background: var(--gmw-card);
    border: 1px solid var(--gmw-line);
    border-radius: 999px;
    display: inline-flex;
    gap: var(--gmw-space-2);
    padding: .35rem .55rem .35rem .35rem;
    color: var(--gmw-ink);
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}

.gmw-account-chip__avatar {
    background: var(--gmw-lemon);
    border-radius: 50%;
    color: var(--gmw-midnight);
    display: grid;
    font-family: var(--gmw-font-display);
    font-size: .875rem;
    font-weight: 700;
    height: 2.25rem;
    place-items: center;
    width: 2.25rem;
}

.gmw-account-chip__body {
    display: grid;
    gap: .2rem;
}

.gmw-button {
    background: var(--gmw-primary);
    border: 0;
    border-radius: var(--gmw-radius-pill);
    box-shadow: var(--gmw-button-shadow);
    color: white;
    cursor: pointer;
    font-weight: 700;
    padding: .75rem 1.15rem;
    text-decoration: none;
}

.gmw-button:hover,
.gmw-button:focus-visible {
    background: var(--gmw-primary-2);
    outline: var(--gmw-focus-ring);
    outline-offset: 2px;
}

/* Secondary: white pill, lilac hairline, midnight label. */
.gmw-button--secondary {
    background: var(--gmw-card);
    border: var(--gmw-border-control);
    box-shadow: none;
    color: var(--gmw-midnight);
}

.gmw-button--secondary:hover,
.gmw-button--secondary:focus-visible {
    background: var(--gmw-card);
    border-color: var(--gmw-midnight);
}

/* Gold: solid lemon pill with midnight label ("I bought it"). */
.gmw-button--gold {
    background: var(--gmw-lemon);
    box-shadow: none;
    color: var(--gmw-midnight);
}

.gmw-button--gold:hover,
.gmw-button--gold:focus-visible {
    background: var(--gmw-lemon-tint);
    color: var(--gmw-midnight);
}

/* Text: violet label, no fill, no border. */
.gmw-button--text {
    background: transparent;
    border: 0;
    border-radius: var(--gmw-radius-pill);
    box-shadow: none;
    color: var(--gmw-primary);
    padding: .55rem .65rem;
}

.gmw-button--text:hover,
.gmw-button--text:focus-visible {
    background: var(--gmw-violet-tint);
    color: var(--gmw-primary);
}

.gmw-button--ghost {
    background: transparent;
    border: var(--gmw-border-control);
    box-shadow: none;
    color: var(--gmw-midnight);
}

.gmw-button--ghost:hover,
.gmw-button--ghost:focus-visible {
    background: var(--gmw-lilac-mist);
}

.gmw-button--warning {
    background: var(--gmw-primary);
}

.gmw-button--warning:hover,
.gmw-button--warning:focus-visible {
    background: var(--gmw-primary-2);
}

/* Destructive request ("Request account deletion"): a red outline, never a filled primary, so it
   cannot read as the main action of its card (docs/UI-REVIEW-2026-10.md, item 7). */
.gmw-button--danger-outline {
    background: transparent;
    border: 2px solid var(--gmw-coral-ink);
    box-shadow: none;
    color: var(--gmw-coral-ink);
}

.gmw-button--danger-outline:hover,
.gmw-button--danger-outline:focus-visible {
    background: var(--gmw-coral-tint);
    color: var(--gmw-coral-ink);
}

.gmw-button--small {
    box-shadow: none;
    font-size: .9rem;
    padding: .5rem .8rem;
}

/* A disclosure toggle (<summary>) is a list item by default, so its label sat on the first line of the
   pill instead of the middle. Make every pill-shaped summary a flex box and centre the label on both
   axes, desktop and phone (GOT-1877, GotMyWish#519). */
summary.gmw-button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.gmw-hero {
    align-items: stretch;
    display: grid;
    gap: var(--gmw-space-4);
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    margin-bottom: var(--gmw-space-4);
}

.gmw-panel,
.gmw-item-card,
.gmw-modal-card {
    background: var(--gmw-card);
    border: var(--gmw-border-hairline);
    border-radius: var(--gmw-radius-lg);
    box-shadow: var(--gmw-shadow-card);
}

.gmw-panel {
    display: grid;
    gap: var(--gmw-space-3);
    padding: var(--gmw-space-4);
}

.gmw-panel--subtle {
    background: var(--gmw-cream-2);
    box-shadow: none;
}

.gmw-eyebrow {
    align-items: center;
    background: var(--gmw-success-tint);
    border-radius: 999px;
    color: var(--gmw-success-2);
    display: inline-flex;
    font-size: .78rem;
    font-weight: 700;
    gap: .45rem;
    letter-spacing: .04em;
    padding: .4rem .72rem;
    text-transform: uppercase;
    width: max-content;
}

.gmw-lead {
    color: var(--gmw-muted);
    font-size: 1.02rem;
    line-height: 1.6;
    max-width: 64ch;
}

.gmw-privacy-note,
.gmw-binding-callout {
    border-radius: var(--gmw-radius-md);
    color: var(--gmw-muted);
    line-height: 1.45;
    padding: .85rem;
}

/* One-line icon banner: white card, tinted 36 px icon tile, bold lead then slate copy. */
.gmw-privacy-note {
    align-items: center;
    background: var(--gmw-white);
    border: var(--gmw-border-hairline);
    border-radius: 16px;
    color: var(--gmw-slate);
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    padding: 14px 18px;
}

.gmw-privacy-note::before {
    background-color: var(--gmw-mint-tint);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230FA58A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
    border-radius: 12px;
    content: "";
    flex: none;
    height: 36px;
    width: 36px;
}

.gmw-privacy-note > strong {
    color: var(--gmw-midnight);
    flex: 0 1 auto;
    font-weight: 700;
    min-width: 0;
}

.gmw-privacy-note > span {
    flex: 1 1 auto;
}

.gmw-privacy-note > .gmw-button--text {
    flex: none;
    white-space: nowrap;
}

/* One-line privacy banner (GmwPrivacyBanner): white card, tinted lock tile, bold lead then a
   slate body line, with an optional trailing link. One row on desktop, one column on a phone. */
.gmw-banner {
    align-items: center;
    background: var(--gmw-white);
    border: var(--gmw-border-hairline);
    border-radius: 16px;
    color: var(--gmw-slate);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
}

.gmw-banner__icon {
    align-items: center;
    background: var(--gmw-mint-tint);
    border-radius: 14px;
    display: inline-flex;
    flex: none;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.gmw-banner__icon::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
    background-color: var(--gmw-mint-ink);
    content: "";
    height: 18px;
    width: 18px;
}

.gmw-banner__body {
    display: flex;
    flex: 1 1 0%;
    flex-wrap: wrap;
    font-size: 14px;
    gap: 0 .35rem;
    line-height: 1.4;
    margin: 0;
    min-width: 0;
}

.gmw-banner__lead {
    color: var(--gmw-midnight);
    font-weight: 700;
}

.gmw-banner__line {
    color: var(--gmw-slate);
}

.gmw-banner__link,
.gmw-banner__link--phone {
    color: var(--gmw-primary);
    flex: none;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

/* A phone-only label (GOT-315): hidden on desktop; the page that sets PhoneLinkText shows it and
   hides the wide link inside its own 540px media query. */
.gmw-banner__link--phone {
    display: none;
}

.gmw-banner__link:hover,
.gmw-banner__link:focus-visible,
.gmw-banner__link--phone:hover,
.gmw-banner__link--phone:focus-visible {
    color: var(--gmw-midnight);
    text-decoration: underline;
}

/* Tone variants tint the tile and the lock; the mint privacy tone is the default. */
.gmw-banner--info .gmw-banner__icon {
    background: var(--gmw-violet-tint);
}

.gmw-banner--info .gmw-banner__icon::before {
    background-color: var(--gmw-primary);
}

.gmw-banner--warning .gmw-banner__icon {
    background: var(--gmw-lemon-tint);
}

.gmw-banner--warning .gmw-banner__icon::before {
    background-color: var(--gmw-coral-ink);
}

.gmw-banner--neutral .gmw-banner__icon {
    background: var(--gmw-lilac-mist);
}

.gmw-banner--neutral .gmw-banner__icon::before {
    background-color: var(--gmw-slate);
}

.gmw-binding-callout {
    background: var(--gmw-cream-3);
    border: 1px solid var(--gmw-line);
    color: var(--gmw-ink-2);
}

.gmw-journey-nav {
    display: flex;
    gap: .5rem;
    margin-bottom: var(--gmw-space-3);
    overflow-x: auto;
    padding: .35rem .1rem var(--gmw-space-3);
    scrollbar-width: thin;
}

.gmw-tab {
    background: var(--gmw-card);
    border: 1px solid var(--gmw-line);
    border-radius: 999px;
    color: var(--gmw-muted);
    cursor: pointer;
    font-weight: 700;
    padding: .6rem .95rem;
    text-decoration: none;
    white-space: nowrap;
}

.gmw-tab.active,
.gmw-tab:hover,
.gmw-tab:focus-visible {
    background: var(--gmw-primary);
    border-color: var(--gmw-primary);
    color: white;
    outline: none;
}

.gmw-grid {
    align-items: start;
    display: grid;
    gap: var(--gmw-space-4);
    grid-template-columns: 1fr 1fr;
}

.gmw-grid--three {
    grid-template-columns: repeat(3, 1fr);
}

.gmw-chip {
    align-items: center;
    border-radius: var(--gmw-radius-pill);
    display: inline-flex;
    font-size: .75rem;
    font-weight: 800;
    gap: .35rem;
    letter-spacing: .04em;
    padding: .28rem .6rem;
    white-space: nowrap;
    width: max-content;
}

/* Claimed / accepted -> solid mint with midnight text (9.1:1). */
.gmw-chip--success {
    background: var(--gmw-mint);
    color: var(--gmw-midnight);
}

/* Nice-to-have / quiet states -> lilac mist with slate text. */
.gmw-chip--info,
.gmw-chip--neutral {
    background: var(--gmw-lilac-mist);
    color: var(--gmw-slate);
}

/* Invited, not yet accepted -> white with a lilac hairline and midnight text. The padding
   saves the 1px border back so the chip stays the same size as its neighbours in a row. */
.gmw-chip--invited {
    background: var(--gmw-white);
    border: 1px solid var(--gmw-lilac-border);
    color: var(--gmw-midnight);
    padding: calc(.28rem - 1px) calc(.6rem - 1px);
}

/* Must-have / purchased -> solid lemon with midnight text (12.0:1). */
.gmw-chip--purchased {
    background: var(--gmw-lemon);
    color: var(--gmw-midnight);
}

/* Warning / impossible / revoked -> violet tint with readable violet ink. */
.gmw-chip--warning {
    background: var(--gmw-primary-tint);
    color: var(--gmw-primary-ink);
}

.gmw-item-list,
.gmw-rule-list {
    display: grid;
    gap: var(--gmw-space-3);
}

.gmw-shell-state-list {
    display: grid;
    gap: var(--gmw-space-2);
}

.gmw-shell-state {
    background: var(--gmw-card);
    border: 1px solid var(--gmw-line);
    border-radius: var(--gmw-radius-md);
    color: var(--gmw-ink);
    display: grid;
    gap: var(--gmw-space-1);
    padding: var(--gmw-space-3);
    text-decoration: none;
}

.gmw-shell-state:hover,
.gmw-shell-state:focus-visible {
    border-color: var(--gmw-primary);
    outline: var(--gmw-focus-ring);
    outline-offset: 2px;
}

.gmw-form,
.gmw-field {
    display: grid;
    gap: var(--gmw-space-2);
}

/* A form is one column of the card's content width, not of its widest child. The implicit `auto` column
   took its width from a wide child - the Cloudflare Turnstile box is 300px even with data-size="flexible" -
   so on a 360px phone every field ran past the account card (GotMyWish#514). minmax(0, 1fr) keeps the
   column at the content width and lets a flexible child shrink inside it. */
.gmw-form {
    grid-template-columns: minmax(0, 1fr);
}

.gmw-field span,
.gmw-check-field {
    color: var(--gmw-ink);
    font-weight: 700;
}

.gmw-field input,
.gmw-field select,
.gmw-field textarea {
    background: var(--gmw-white);
    border: var(--gmw-border-control);
    border-radius: var(--gmw-radius-sm);
    color: var(--gmw-midnight);
    /* A text input's default intrinsic width follows the text size, and as a grid child with
       min-width:auto it kept that width and could run past a narrow card (GotMyWish#510, the same
       class as the Add-a-wish panel in GotMyWish#306). Fill the field instead. */
    min-width: 0;
    width: 100%;
    padding: 12px 14px;
}

.gmw-field input:focus-visible,
.gmw-field select:focus-visible,
.gmw-field textarea:focus-visible,
.gmw-check-field input:focus-visible {
    outline: var(--gmw-focus-ring-soft);
    outline-offset: 2px;
}

.gmw-check-field {
    align-items: center;
    display: flex;
    gap: var(--gmw-space-2);
}

/* Reusable segmented control (AppProfile.dc.html "How often"): a radio group where each real radio
   covers its pill, so keyboard and assistive tech get a normal radio and the pill is the label. */
.gmw-segmented {
    border: 0;
    margin: 0;
    padding: 0;
}

.gmw-segmented__legend {
    color: var(--gmw-ink);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    padding: 0;
}

.gmw-segmented__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gmw-segmented__option {
    flex: 1 1 0;
    min-width: 64px;
    position: relative;
}

.gmw-segmented__option input[type="radio"] {
    cursor: pointer;
    height: 100%;
    inset: 0;
    margin: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
}

.gmw-segmented__option span {
    background: var(--gmw-white);
    border: 1.5px solid var(--gmw-lilac-border);
    border-radius: 999px;
    color: var(--gmw-slate);
    display: block;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 10px;
    pointer-events: none;
    text-align: center;
}

.gmw-segmented__option input[type="radio"]:checked + span {
    background: var(--gmw-gold);
    border-color: var(--gmw-gold);
    color: var(--gmw-midnight);
}

.gmw-segmented__option input[type="radio"]:focus-visible + span {
    outline: var(--gmw-focus-ring);
    outline-offset: 2px;
}

/* Reusable switch (AppProfile.dc.html reminders): the artboard's violet toggle over a real checkbox,
   so the row still posts. The track ignores pointer events so the checkbox underneath is the target. */
.gmw-switch {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.gmw-switch__copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.gmw-switch__title {
    color: var(--gmw-ink);
    font-size: 14px;
    font-weight: 700;
}

.gmw-switch__hint {
    color: var(--gmw-slate);
    font-size: 12px;
}

.gmw-switch__control {
    display: inline-flex;
    flex-shrink: 0;
    height: 26px;
    position: relative;
    width: 44px;
}

.gmw-switch__control input[type="checkbox"] {
    cursor: pointer;
    height: 100%;
    inset: 0;
    margin: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
}

.gmw-switch__track {
    background: var(--gmw-lilac-border);
    border-radius: 999px;
    inset: 0;
    pointer-events: none;
    position: absolute;
    transition: background .15s ease;
}

.gmw-switch__track::after {
    background: var(--gmw-white);
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(27, 19, 64, .25);
    content: "";
    height: 20px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform .15s ease;
    width: 20px;
}

.gmw-switch__control input[type="checkbox"]:checked ~ .gmw-switch__track {
    background: var(--gmw-primary);
}

.gmw-switch__control input[type="checkbox"]:checked ~ .gmw-switch__track::after {
    transform: translateX(18px);
}

.gmw-switch__control input[type="checkbox"]:focus-visible ~ .gmw-switch__track {
    outline: var(--gmw-focus-ring);
    outline-offset: 2px;
}

.gmw-item-card {
    align-items: center;
    border-radius: var(--gmw-radius-lg);
    display: grid;
    gap: var(--gmw-space-3);
    grid-template-columns: 52px 1fr;
    padding: var(--gmw-space-3);
}

.gmw-item-card__visual {
    background: var(--gmw-cream-2);
    border: 1px solid var(--gmw-line);
    border-radius: 10px;
    display: grid;
    font-size: 1.4rem;
    height: 52px;
    place-items: center;
    width: 52px;
}

.gmw-item-card__image {
    object-fit: cover;
}

.gmw-item-card__body {
    display: grid;
    gap: .4rem;
}

.gmw-item-card__topline {
    align-items: start;
    display: flex;
    gap: var(--gmw-space-2);
    justify-content: space-between;
}

.gmw-item-card__price {
    color: var(--gmw-ink);
    font-weight: 700;
}

.gmw-item-card__metadata,
.gmw-hint {
    color: var(--gmw-muted);
    font-size: .88rem;
    line-height: 1.45;
}

/* Shared-list buyer card (SharedList.dc.html, restyle 2026-10): 20 px radius, 88 px tinted
   thumbnail tile, title + state chip, store/price/qty, notes, then the action row. Scoped to
   .gmw-item-card--shared so the owner-side default card is untouched until its own restyle. */
.gmw-item-card--shared {
    align-items: stretch;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
}

.gmw-item-card__head {
    display: flex;
    gap: 14px;
    min-width: 0;
}

.gmw-item-card__thumb {
    align-items: center;
    border-radius: 14px;
    display: flex;
    flex: none;
    font-size: 1.7rem;
    height: 88px;
    justify-content: center;
    overflow: hidden;
    width: 88px;
}

.gmw-item-card__thumb--coral {
    background: var(--gmw-coral-tint);
}

.gmw-item-card__thumb--violet {
    background: var(--gmw-violet-tint);
}

.gmw-item-card__thumb--mint {
    background: var(--gmw-mint-tint);
}

.gmw-item-card__thumb--lemon {
    background: var(--gmw-lemon-tint);
}

.gmw-item-card__thumb-image {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.gmw-item-card--shared .gmw-item-card__body {
    flex: 1 1 auto;
    gap: 6px;
    min-width: 0;
}

.gmw-item-card--shared .gmw-item-card__topline {
    align-items: flex-start;
    gap: 8px;
}

.gmw-item-card--shared .gmw-item-card__topline h3 {
    font-size: 17px;
    line-height: 1.25;
    margin: 0;
}

.gmw-item-card__badge {
    display: flex;
}

.gmw-item-card--shared .gmw-item-card__metadata,
.gmw-item-card__notes {
    color: var(--gmw-slate);
    font-size: 13px;
    line-height: 1.4;
}

.gmw-item-card__covered {
    color: var(--gmw-slate);
    font-size: 13px;
    font-weight: 600;
}

.gmw-item-card--shared .gmw-item-card__actions {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.gmw-item-card__actions-primary {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.gmw-item-card__actions-trailing {
    align-items: center;
    display: flex;
    flex: none;
}

.gmw-item-card__actions-trailing a,
.gmw-item-card__actions-trailing button {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

/* Shared-list chip row above the item grid (SharedList.dc.html). */
.gmw-shared-items {
    display: grid;
    gap: 14px;
    margin-bottom: var(--gmw-space-4);
}

.gmw-shared-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gmw-shared-chip {
    align-items: center;
    background: var(--gmw-white);
    border: 1px solid var(--gmw-lilac-border);
    border-radius: 999px;
    color: var(--gmw-midnight);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 11px;
    white-space: nowrap;
}

.gmw-shared-chip--active {
    background: var(--gmw-midnight);
    border-color: var(--gmw-midnight);
    color: var(--gmw-white);
}

/* Filter chips above a signed-in list (App.dc.html "All · 4 / Must-have · 1 / Nice-to-have · 3",
   AppLists.dc.html, GAN-245). The same visual values as the shared-list chips above, kept as one
   look. Each chip is an anchor carrying its filter in the query string, so the row filters without
   JavaScript. */
.gmw-chips {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gmw-chips__chip {
    align-items: center;
    background: var(--gmw-white);
    border: 1px solid var(--gmw-lilac-border);
    border-radius: 999px;
    color: var(--gmw-midnight);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 11px;
    text-decoration: none;
    white-space: nowrap;
}

.gmw-chips__chip:hover,
.gmw-chips__chip:focus-visible {
    border-color: var(--gmw-dashed-border);
    outline: none;
}

.gmw-chips__chip--active {
    background: var(--gmw-midnight);
    border-color: var(--gmw-midnight);
    color: var(--gmw-white);
}

/* A JS-free price-sort control (GotMyWish#424): a labelled GET form whose select carries the chosen
   sort in the query string. It sits beside the owner list's filter chips and above the friend list's
   items; the Apply button submits and a hidden field carries the current filter so the two compose. */
.gmw-sort {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gmw-sort__label {
    color: var(--gmw-slate);
    font-size: 12px;
    font-weight: 700;
}

.gmw-sort__select {
    background: var(--gmw-white);
    border: 1px solid var(--gmw-lilac-border);
    border-radius: 10px;
    color: var(--gmw-midnight);
    font-size: 13px;
    padding: 8px 10px;
}

/* A responsive card grid (AppFollowed.dc.html draws the followed-list cards three-up). Three
   columns wide, two in the middle band and one on the phone, so a card is never squeezed. */
.gmw-card-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1023.98px) {
    .gmw-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639.98px) {
    .gmw-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* The gallery sample layout for the furniture: the page content on the left, the add panel to its
   right (App.dc.html, note s3). The panel itself is a bottom sheet below 768 px. */
.gmw-signed-in-furniture {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 360px;
}

/* The add panel beside a signed-in list page (App.dc.html, note s3): a 20 px white card with a
   title, a one-line subtitle, a close control and the page's form slot. */
.gmw-sidepanel {
    align-self: start;
    background: var(--gmw-white);
    border: 1px solid var(--gmw-lilac-border);
    border-radius: 20px;
    box-shadow: var(--gmw-shadow-panel);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
}

.gmw-sidepanel__head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.gmw-sidepanel__heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.gmw-sidepanel__title {
    font-family: var(--gmw-font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0;
}

.gmw-sidepanel__subtitle {
    color: var(--gmw-slate);
    font-size: 13px;
    margin: 0;
}

.gmw-sidepanel__close {
    align-items: center;
    border: 1px solid var(--gmw-lilac-border);
    border-radius: 999px;
    color: var(--gmw-midnight);
    display: inline-flex;
    flex: none;
    height: 32px;
    justify-content: center;
    text-decoration: none;
    width: 32px;
}

.gmw-sidepanel__close:hover,
.gmw-sidepanel__close:focus-visible {
    border-color: var(--gmw-dashed-border);
    outline: none;
}

.gmw-sidepanel__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Phone: the panel leaves the side column and becomes a full-width bottom sheet anchored to the
   bottom edge (PhoneApp.dc.html, note s4). The chip row wraps rather than overflowing. */
@media (max-width: 767px) {
    .gmw-signed-in-furniture {
        grid-template-columns: minmax(0, 1fr);
    }

    .gmw-sidepanel {
        border-radius: 20px 20px 0 0;
        bottom: 0;
        box-shadow: 0 -12px 32px rgba(27, 19, 64, .18);
        left: 0;
        max-height: 85vh;
        overflow-y: auto;
        position: fixed;
        right: 0;
        width: 100%;
        z-index: 42;
    }
}

/* Signed-in page header (AppFriends.dc.html, AppProfile.dc.html, AppHome.dc.html): a tinted 64 px
   icon tile, the page title over a one-line subtitle, and the page's primary action on the right.
   The block is reusable across signed-in pages; a page supplies only its icon, its copy and its
   action. It wraps rather than overflowing, and shrinks the tile and title on a phone. */
.gmw-page-head {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
}

.gmw-page-head__intro {
    align-items: center;
    display: flex;
    gap: 18px;
    min-width: 0;
}

.gmw-page-head__icon {
    align-items: center;
    background: var(--gmw-mint-tint);
    border-radius: 20px;
    color: var(--gmw-midnight);
    display: inline-flex;
    flex: none;
    height: 64px;
    justify-content: center;
    width: 64px;
}

.gmw-page-head__titles {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.gmw-page-head__title {
    font-family: var(--gmw-font-display);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.05;
    margin: 0;
}

.gmw-page-head__subtitle {
    color: var(--gmw-slate);
    font-size: 15px;
    margin: 0;
}

.gmw-page-head__action {
    align-items: center;
    display: inline-flex;
    flex: none;
    gap: 8px;
}

@media (max-width: 540px) {
    .gmw-page-head__icon {
        height: 52px;
        width: 52px;
    }

    .gmw-page-head__title {
        font-size: 1.9rem;
    }
}

/* docs/UI-REVIEW-2026-10.md items 10/10a: the owner detail page's Add a wish panel is closed by
   default at every width. ?panel=add (server) or list-actions.js (in place) opens it: a 460px drawer
   sliding in from the right over a dimmed page on desktop, the bottom sheet above on a phone. */
.owner-add-panel {
    display: none;
}

.owner-add-panel--open {
    display: contents;
}

.owner-add-panel__backdrop {
    background: rgba(27, 19, 64, .38);
    inset: 0;
    position: fixed;
    z-index: 41;
}

.owner-add-panel .gmw-sidepanel {
    position: fixed;
    z-index: 42;
}

.owner-add-panel__grip {
    display: none;
}

@media (min-width: 768px) {
    .owner-add-panel .gmw-sidepanel {
        animation: owner-drawer-in .22s ease-out;
        border-radius: 20px 0 0 20px;
        bottom: 0;
        height: 100dvh;
        max-height: none;
        overflow-y: auto;
        right: 0;
        top: 0;
        width: min(460px, 100%);
    }
}

@media (max-width: 767px) {
    .owner-add-panel__grip {
        background: var(--gmw-lilac-border);
        border-radius: 999px;
        display: block;
        height: 5px;
        margin: -10px auto 0;
        width: 44px;
    }
}

@keyframes owner-drawer-in {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: none; }
}

/* Generic drawer (docs/UI-REVIEW-2026-10.md item 15a): a side panel that slides in over a dimmed
   page on desktop and is the bottom sheet on a phone; closed unless .gmw-drawer--open. */
.gmw-drawer {
    display: none;
}

.gmw-drawer--open {
    display: contents;
}

.gmw-drawer__backdrop {
    background: rgba(27, 19, 64, .38);
    inset: 0;
    position: fixed;
    z-index: 41;
}

.gmw-drawer .gmw-sidepanel {
    position: fixed;
    z-index: 42;
}

@media (min-width: 768px) {
    .gmw-drawer .gmw-sidepanel {
        animation: owner-drawer-in .22s ease-out;
        border-radius: 20px 0 0 20px;
        bottom: 0;
        height: 100dvh;
        max-height: none;
        overflow-y: auto;
        right: 0;
        top: 0;
        width: min(460px, 100%);
    }
}

/* Exchange cards (item 15a): the countdown tile, role and status tags, the dark match panel and the
   organizer progress block. */
.exch-tag {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    padding: .28rem .6rem;
    white-space: nowrap;
}

.exch-tag--role {
    background: var(--gmw-violet-tint);
    color: var(--gmw-violet-ink);
}

/* One icon per list (docs/UI-REVIEW-2026-10.md item 13): the picker's row of radio pills. */
.gmw-icon-picker {
    border: 0;
    margin: 0;
    padding: 0;
}

.gmw-icon-picker legend {
    font-size: 13px;
    font-weight: 700;
    padding: 0 0 6px;
}

.gmw-icon-picker__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gmw-icon-picker__option {
    align-items: center;
    background: var(--gmw-white);
    border: 1.5px solid var(--gmw-lilac-border);
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    position: relative;
    width: 44px;
}

.gmw-icon-picker__option input {
    height: 0;
    opacity: 0;
    position: absolute;
    width: 0;
}

.gmw-icon-picker__option:has(input:checked) {
    background: var(--gmw-lemon);
    border-color: var(--gmw-lemon);
}

.gmw-icon-picker__option:has(input:focus-visible) {
    outline: var(--gmw-focus-ring);
    outline-offset: 2px;
}

/* Toast with an inline action ("Added to Christmas 2026 · Undo"). */
.gmw-toast--action {
    align-items: center;
    display: flex;
    gap: 14px;
    max-width: min(520px, calc(100vw - 32px));
    z-index: 60;
}

.gmw-toast__action {
    background: none;
    border: 0;
    color: var(--gmw-lemon);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    min-height: 44px;
    padding: 0;
}

/* The grip on each owner card under the "Drag to reorder" hint. list-actions.js drives a real pointer
   drag while the Reorder chip is on; touch-action keeps a phone drag from scrolling the page, and the
   reverse-order action above the cards stays as the no-JavaScript fallback. */
.owner-item__handle {
    align-items: center;
    color: var(--gmw-muted);
    cursor: grab;
    display: inline-flex;
    flex: none;
    justify-content: center;
    min-height: 24px;
    min-width: 24px;
    touch-action: none;
}

.owner-item--dragging { opacity: .55; }
.owner-item--dragging .owner-item__handle { cursor: grabbing; }
body.owner-reordering { cursor: grabbing; }


.gmw-shared-item-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 760px) {
    .gmw-shared-item-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.gmw-stepper {
    counter-reset: steps;
    display: grid;
    gap: .8rem;
}

.gmw-stepper .gmw-step {
    align-items: start;
    background: var(--gmw-card);
    border: 1px solid var(--gmw-line);
    border-radius: var(--gmw-radius-md);
    display: grid;
    gap: .8rem;
    grid-template-columns: 38px 1fr;
    padding: .8rem;
}

.gmw-stepper .gmw-step::before {
    background: var(--gmw-primary);
    border-radius: 12px;
    color: white;
    content: counter(steps);
    counter-increment: steps;
    display: grid;
    font-weight: 700;
    height: 38px;
    place-items: center;
    width: 38px;
}

.gmw-participants {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gmw-person-card,
.gmw-friend-card,
.gmw-rule-row {
    align-items: center;
    background: var(--gmw-card);
    border: 1px solid var(--gmw-line);
    border-radius: var(--gmw-radius-md);
    display: flex;
    gap: .65rem;
    justify-content: space-between;
    padding: .75rem;
}

.gmw-rule-row {
    background: var(--gmw-cream-2);
}

.gmw-avatar {
    background: var(--gmw-lemon);
    border-radius: var(--gmw-radius-pill);
    color: var(--gmw-midnight);
    display: inline-grid;
    font-family: var(--gmw-font-display);
    font-size: 14px;
    font-weight: 700;
    height: 36px;
    margin-right: .35rem;
    place-items: center;
    width: 36px;
}

/* A stored profile photo fills whatever circle the page drew (docs/product/avatars-2026-10.md A21). */
.gmw-avatar--photo {
    overflow: hidden;
    padding: 0;
}

.gmw-avatar__photo {
    border-radius: inherit;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.gmw-validation-box {
    background: var(--gmw-card);
    border: var(--gmw-border-hairline);
    border-radius: var(--gmw-radius-lg);
    box-shadow: var(--gmw-shadow-card);
    display: grid;
    gap: .7rem;
    padding: var(--gmw-space-3);
}

.gmw-validation-box--success {
    background: var(--gmw-mint-tint);
    border-color: var(--gmw-mint);
}

.gmw-validation-box--error {
    background: var(--gmw-coral-tint);
    border-color: var(--gmw-coral);
}

.gmw-validation-box--info {
    background: var(--gmw-lilac-mist);
    border-color: var(--gmw-lilac-border);
}

.gmw-state-card {
    align-items: start;
    background: var(--gmw-card);
    border: 1px solid var(--gmw-line);
    border-radius: var(--gmw-radius-lg);
    box-shadow: var(--gmw-shadow);
    display: grid;
    gap: var(--gmw-space-3);
    grid-template-columns: 3rem minmax(0, 1fr);
    padding: var(--gmw-space-4);
}

.gmw-state-card__indicator {
    align-items: center;
    border-radius: 999px;
    display: flex;
    font-weight: 700;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.gmw-state-card__body {
    display: grid;
    gap: var(--gmw-space-2);
}

.gmw-state-card__content {
    color: var(--gmw-muted);
    line-height: 1.45;
}

.gmw-state-card--success .gmw-state-card__indicator {
    background: var(--gmw-success-tint);
    color: var(--gmw-success-2);
}

.gmw-state-card--info .gmw-state-card__indicator {
    background: var(--gmw-cream-2);
    color: var(--gmw-muted);
}

.gmw-state-card--warning .gmw-state-card__indicator {
    background: var(--gmw-primary-tint);
    color: var(--gmw-primary-ink);
}

.gmw-state-card--neutral .gmw-state-card__indicator {
    background: var(--gmw-cream-2);
    color: var(--gmw-muted);
}

/* Empty state: centred white card with the surprised Wishy, heading, body and a primary pill. */
.gmw-state-card--empty {
    align-items: center;
    background: var(--gmw-white);
    border: var(--gmw-border-hairline);
    border-radius: 16px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: var(--gmw-space-4);
    text-align: center;
}

.gmw-state-card--empty h2 {
    font-family: var(--gmw-font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
}

.gmw-state-card--empty .gmw-state-card__content {
    color: var(--gmw-slate);
    font-size: 13px;
    line-height: 1.45;
}

.gmw-state-card--empty .gmw-button {
    margin-top: .35rem;
}

/* Public account card (SignIn.dc.html, GAN-225): the shared centred 440 px card for the account
   screens. The shell, the heading row and the private-beta line live here so the next card can
   move the other account pages onto the same card. */
.gmw-auth {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 auto;
    max-width: 440px;
    padding: 24px 0 8px;
    width: 100%;
}

.gmw-auth__card {
    background: var(--gmw-white);
    border: 1px solid var(--gmw-lilac-border);
    border-radius: 24px;
    box-shadow: var(--gmw-shadow-hero);
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 32px;
    width: 100%;
}

.gmw-auth__head {
    align-items: center;
    display: flex;
    gap: 14px;
}

.gmw-auth__titles {
    display: grid;
    gap: 2px;
}

.gmw-auth__heading {
    font-family: var(--gmw-font-display);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.05;
}

.gmw-auth__subtitle {
    color: var(--gmw-slate);
    font-size: 14px;
}

.gmw-auth__body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.gmw-auth__beta {
    color: var(--gmw-slate);
    font-size: 12px;
    padding: 0 8px 24px;
    text-align: center;
}

/* Field label row: the label on the left, the recovery link on the right, as the artboard draws. */
.gmw-auth .gmw-field > span,
.gmw-auth .gmw-field__label {
    font-size: 13px;
}

.gmw-field__row {
    align-items: baseline;
    display: flex;
    gap: var(--gmw-space-2);
    justify-content: space-between;
}

.gmw-field__aside {
    color: var(--gmw-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.gmw-field__aside:hover,
.gmw-field__aside:focus-visible {
    color: var(--gmw-midnight);
    outline: var(--gmw-focus-ring);
    outline-offset: 2px;
}

.gmw-auth__divider,
.gmw-auth__alternate {
    color: var(--gmw-slate);
    font-size: 13px;
    text-align: center;
}

.gmw-auth__alternate a {
    color: var(--gmw-primary);
    font-weight: 700;
    text-decoration: none;
}

.gmw-auth__submit {
    box-shadow: var(--gmw-shadow-button-lg);
    font-size: 16px;
    padding: 15px;
}

/* Keep me signed in: the artboard's violet toggle over a real checkbox, so the row still posts. */
.gmw-auth__remember {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    gap: 12px;
    justify-content: space-between;
}

.gmw-auth__remember input[type="checkbox"] {
    height: 0;
    opacity: 0;
    position: absolute;
    width: 0;
}

.gmw-auth__remember-track {
    background: var(--gmw-lilac-border);
    border-radius: 999px;
    flex-shrink: 0;
    height: 26px;
    position: relative;
    transition: background .15s ease;
    width: 44px;
}

.gmw-auth__remember-track::after {
    background: var(--gmw-white);
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(27, 19, 64, .25);
    content: "";
    height: 20px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform .15s ease;
    width: 20px;
}

.gmw-auth__remember input[type="checkbox"]:checked + .gmw-auth__remember-track {
    background: var(--gmw-primary);
}

.gmw-auth__remember input[type="checkbox"]:checked + .gmw-auth__remember-track::after {
    transform: translateX(18px);
}

.gmw-auth__remember input[type="checkbox"]:focus-visible + .gmw-auth__remember-track {
    outline: var(--gmw-focus-ring);
    outline-offset: 2px;
}

.gmw-assignment-card {
    background: linear-gradient(135deg, var(--gmw-primary), var(--gmw-primary-2));
    border-radius: var(--gmw-radius-xl);
    color: white;
    display: grid;
    gap: .8rem;
    padding: var(--gmw-space-4);
}

.gmw-assignment-card p,
.gmw-assignment-card__version {
    color: rgba(255, 255, 255, .82);
}

.gmw-modal-layer {
    align-items: center;
    background: rgba(34, 32, 28, .42);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 20;
}

.gmw-modal-card {
    border-radius: var(--gmw-radius-xl);
    box-shadow: var(--gmw-shadow-panel);
    display: grid;
    gap: var(--gmw-space-3);
    padding: var(--gmw-space-4);
    width: min(520px, 100%);
}

.gmw-toast {
    background: var(--gmw-ink);
    border-radius: 999px;
    bottom: 1rem;
    box-shadow: var(--gmw-shadow);
    color: white;
    font-weight: 700;
    left: 50%;
    padding: .8rem 1rem;
    position: fixed;
    transform: translateX(-50%);
    z-index: 30;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2 {
    font-family: var(--gmw-font-display);
}

h1 {
    font-size: clamp(2.35rem, 5.4vw, 4rem);
    letter-spacing: -.04em;
    line-height: .98;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -.03em;
    line-height: 1.02;
}

h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

@media (max-width: 900px) {
    .gmw-shell {
        padding: 1rem;
    }

    .gmw-topbar {
        align-items: flex-start;
    }

    .gmw-hero,
    .gmw-grid,
    .gmw-grid--three {
        grid-template-columns: 1fr;
    }

    .gmw-panel {
        border-radius: var(--gmw-radius-lg);
        padding: 1rem;
    }

    .gmw-participants {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .gmw-topbar {
        display: grid;
    }

    .gmw-brand {
        font-size: 1.3rem;
    }

    h1 {
        font-size: 2.35rem;
    }

    .gmw-top-actions,
    .gmw-action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .gmw-account-chip {
        align-self: stretch;
    }

    .gmw-button {
        width: 100%;
    }

    /* A full-width pill on a phone needs room around its label to read as a button and to meet the
       44px tap target (GOT-1877). */
    summary.gmw-button {
        min-height: 44px;
    }

    .gmw-auth__card {
        padding: 24px;
    }

    .gmw-item-card {
        grid-template-columns: 44px 1fr;
    }

    /* docs/UI-REVIEW-2026-10.md item 18: on a phone the privacy banner is one row, aligned to the
       content padding: the lock tile, the bold lead and a short "How?" link. The long explanation
       lives on the help page. */
    .gmw-banner {
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        padding: 10px 12px;
    }

    .gmw-banner__body {
        min-width: 0;
    }

    .gmw-banner__icon {
        border-radius: 10px;
        height: 32px;
        width: 32px;
    }

    .gmw-banner__line {
        display: none;
    }

    .gmw-banner__link {
        display: none;
    }

    .gmw-banner__link--phone {
        display: inline;
        flex: none;
        white-space: nowrap;
    }

    /* docs/UI-REVIEW-2026-10.md item 20: filter chips scroll sideways in one row instead of wrapping. */
    .gmw-chips {
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        margin-inline: -2px;
        overflow-x: auto;
        padding: 2px;
        scrollbar-width: none;
    }

    .gmw-chips::-webkit-scrollbar {
        display: none;
    }

    .gmw-chips__chip {
        flex: none;
    }
}

/* FlowShare.dc.html (restyle 2026-10, GAN-274): the share sheet. A centred 480 px card on the
   desktop artboard that becomes a bottom sheet on a phone. It shows the link in full, the Copy
   control, the three send targets, the pause / regenerate lifecycle controls and the design's note. */
.gmw-share-sheet-layer {
    align-items: center;
    background: rgba(34, 32, 28, .42);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 16px;
    position: fixed;
    z-index: 60;
}

.gmw-share-sheet {
    background: var(--gmw-white);
    border: 1px solid var(--gmw-lilac-border);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(27, 19, 64, .14);
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    width: min(480px, 100%);
}

.gmw-share-sheet__head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.gmw-share-sheet__title {
    font-family: var(--gmw-font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0;
}

.gmw-share-sheet__close {
    align-items: center;
    background: var(--gmw-white);
    border: 1px solid var(--gmw-lilac-border);
    border-radius: 10px;
    color: var(--gmw-muted);
    display: inline-flex;
    flex: none;
    height: 32px;
    justify-content: center;
    text-decoration: none;
    width: 32px;
}

.gmw-share-sheet__close:hover,
.gmw-share-sheet__close:focus-visible {
    border-color: var(--gmw-dashed-border);
    color: var(--gmw-midnight);
    outline: none;
}

.gmw-share-sheet__lead {
    color: var(--gmw-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.gmw-share-sheet__linkrow {
    align-items: center;
    background: var(--gmw-violet-tint);
    border: 1.5px solid var(--gmw-lilac-border);
    border-radius: 12px;
    display: flex;
    gap: 8px;
    padding: 6px 6px 6px 14px;
}

.gmw-share-sheet__link {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.gmw-share-sheet__copy {
    flex: none;
}

.gmw-share-sheet__targets {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gmw-share-sheet__target {
    align-items: center;
    background: var(--gmw-white);
    border: 1px solid var(--gmw-lilac-border);
    border-radius: 14px;
    color: var(--gmw-midnight);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    gap: 6px;
    padding: 12px 6px;
    text-decoration: none;
}

.gmw-share-sheet__target:hover,
.gmw-share-sheet__target:focus-visible {
    border-color: var(--gmw-primary);
    outline: none;
}

.gmw-share-sheet__target-icon {
    align-items: center;
    border-radius: 14px;
    display: flex;
    flex: none;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.gmw-share-sheet__target-icon--mint {
    background: var(--gmw-mint);
    color: var(--gmw-success-2);
}

.gmw-share-sheet__target-icon--violet {
    background: var(--gmw-violet-tint);
    color: var(--gmw-violet);
}

.gmw-share-sheet__target-icon--amber {
    background: var(--gmw-gold-tint);
    color: #9a6b00;
}

/* FlowShare.dc.html (GAN-275): the QR target is empty until gmw-qr.js draws the code into it. */
.gmw-share-sheet__qr {
    align-items: center;
    display: flex;
    justify-content: center;
}

.gmw-share-sheet__qr[hidden] {
    display: none;
}

.gmw-share-sheet__qr svg {
    height: auto;
    max-width: 100%;
}

.gmw-share-sheet__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gmw-share-sheet__pause {
    color: var(--gmw-violet);
}

.gmw-share-sheet__preview {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.gmw-share-sheet__note {
    align-items: flex-start;
    background: var(--gmw-violet-tint);
    border-radius: 12px;
    color: var(--gmw-slate);
    display: flex;
    font-size: 12px;
    gap: 10px;
    line-height: 1.45;
    margin: 0;
    padding: 12px;
}

.gmw-share-sheet__note svg {
    color: var(--gmw-success-2);
    flex: none;
    margin-top: 1px;
}

@media (max-width: 767px) {
    .gmw-share-sheet-layer {
        align-items: flex-end;
        padding: 0;
    }

    .gmw-share-sheet {
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
        width: 100%;
    }

    /* The global phone rule makes every .gmw-button full width; inside the sheet the Copy control
       must stay compact or the link is squeezed to zero width and wraps one character per line. */
    .gmw-share-sheet .gmw-button {
        width: auto;
    }
}
