.cw-portal {
    --cw-ink: #203c36;
    --cw-muted: #586962;
    --cw-green: #245f4c;
    --cw-border: #d7e2da;
    --cw-cream: #faf9f3;
    box-sizing: border-box;
    color: var(--cw-ink);
    font-family: inherit;
    line-height: 1.65;
    margin: 2rem auto;
    max-width: 960px;
}
.cw-portal *, .cw-portal *::before, .cw-portal *::after { box-sizing: inherit; }
.cw-portal h2, .cw-portal h3, .cw-portal h4 { color: var(--cw-ink); line-height: 1.25; }
.cw-portal h2 { font-size: clamp(1.55rem, 3.5vw, 2.1rem); margin: .45rem 0 1rem; }
.cw-portal h3 { font-size: 1.3rem; margin: 0 0 .9rem; }
.cw-portal h4 { font-size: 1rem; margin: 0 0 .5rem; }
.cw-portal p { margin: .6rem 0 1rem; }
.cw-portal a { text-underline-offset: .16em; }
.cw-portal__intro { padding: 1rem 0 1.5rem; max-width: 720px; }
.cw-portal .cw-eyebrow { color: var(--cw-green); font-size: .78rem; font-weight: 700; letter-spacing: .14em; margin: 0; text-transform: uppercase; }
.cw-session { color: var(--cw-muted); font-size: .95rem; }
.cw-round { border: 1px solid var(--cw-border); border-radius: 20px; margin: 1.5rem 0 2rem; overflow: hidden; background: #fff; box-shadow: 0 5px 25px #203c3607; }
.cw-round__header { background: var(--cw-cream); padding: clamp(1.2rem, 4vw, 2rem); border-bottom: 1px solid var(--cw-border); }
.cw-round__body { padding: clamp(1.2rem, 4vw, 2rem); }
.cw-badge { display: inline-block; border: 1px solid #d2dcd4; border-radius: 100px; padding: .2rem .7rem; background: #fff; color: #4b5e55; font-size: .78rem; font-weight: 650; margin-bottom: .55rem; }
.cw-badge--open { background: #e7f3e9; color: #245b37; border-color: #b7d9be; }
.cw-facts { display: flex; flex-wrap: wrap; gap: 1.1rem 2.2rem; margin: 1.1rem 0 0; }
.cw-facts dt, .cw-shipping-facts dt { color: var(--cw-muted); font-size: .8rem; font-weight: 600; }
.cw-facts dd, .cw-shipping-facts dd { margin: .1rem 0 0; font-size: .95rem; overflow-wrap: anywhere; }
.cw-panel { border: 1px solid var(--cw-border); border-radius: 14px; padding: clamp(1.1rem, 3vw, 1.6rem); background: #fff; }
.cw-panel--login { background: var(--cw-cream); }
.cw-panel--recipient { background: #f6faf7; margin: 1.4rem 0; }
.cw-notice { border-left: 4px solid #768c81; border-radius: 4px; padding: .85rem 1rem; background: #f2f5f3; overflow-wrap: anywhere; }
.cw-notice--success { border-color: #30754b; background: #ecf6ee; color: #214b31; }
.cw-notice--error { border-color: #a83e33; background: #fff1ed; color: #762b24; }
.cw-form fieldset { border: 0; border-bottom: 1px solid var(--cw-border); padding: 0 0 1.5rem; margin: 1.5rem 0; min-width: 0; }
.cw-form legend { display: block; font-size: 1.2rem; font-weight: 700; margin: 0 0 .6rem; padding: 0; width: 100%; }
.cw-form-grid, .cw-shipment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.cw-shipment-grid { gap: 1.2rem; margin: 1.2rem 0; align-items: start; }
.cw-field { margin: 0 0 1.05rem; }
.cw-field--full { grid-column: 1 / -1; }
.cw-field label, .cw-label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.cw-portal input[type="text"], .cw-portal textarea, .cw-portal select {
    appearance: auto;
    background: #fff;
    border: 1px solid #9bac9f;
    border-radius: 7px;
    box-shadow: none;
    color: #203c36;
    display: block;
    font: inherit;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 100%;
    min-height: 46px;
    padding: .65rem .8rem;
    width: 100%;
}
.cw-portal textarea { resize: vertical; }
.cw-portal .cw-help { color: var(--cw-muted); font-size: .86rem; font-weight: 400; }
.cw-checkbox { display: flex; align-items: start; gap: .7rem; margin: 1rem 0 .5rem; cursor: pointer; }
.cw-checkbox input[type="checkbox"] { accent-color: var(--cw-green); flex: 0 0 auto; height: 1.2rem; width: 1.2rem; margin: .25rem 0 0; }
.cw-portal .cw-button {
    background: var(--cw-green);
    border: 1px solid var(--cw-green);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font: inherit;
    font-size: .94rem;
    font-weight: 650;
    line-height: 1.4;
    min-height: 44px;
    padding: .75rem 1rem;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    white-space: normal;
}
.cw-portal .cw-button:hover { background: #174636; border-color: #174636; color: #fff; }
.cw-portal .cw-button--secondary { background: #fff; border-color: #9daf9e; color: var(--cw-green); }
.cw-portal .cw-button--secondary:hover { background: #edf4ee; border-color: var(--cw-green); color: #174636; }
.cw-portal .cw-button:disabled { cursor: not-allowed; opacity: .6; }
.cw-portal .cw-button .cw-help { color: inherit; }
.cw-portal :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #aa6a14; outline-offset: 3px; }
.cw-portal [hidden] { display: none !important; }
.cw-details { border-top: 1px solid var(--cw-border); padding: 1rem 0; margin-top: 1rem; }
.cw-details summary { cursor: pointer; font-weight: 650; }
.cw-details[open] summary { margin-bottom: 1rem; }
.cw-rules { overflow-wrap: anywhere; }
.cw-rules img, .cw-rules video, .cw-rules iframe { max-width: 100%; height: auto; }
.cw-rules table { display: block; max-width: 100%; overflow-x: auto; }
.cw-withdraw summary { color: #7c392e; }
.cw-portal .cw-address { background: #fff; line-height: 1.7; margin: .6rem 0 .8rem; min-height: 175px; }
.cw-copy-status { display: block; color: var(--cw-green); font-size: .86rem; min-height: 1.5em; margin: .4rem 0; }
.cw-preference { margin-top: 1.2rem; overflow-wrap: anywhere; }
.cw-preference p { white-space: normal; }
.cw-ai { background: var(--cw-cream); border: 1px dashed #a9bcad; border-radius: 12px; margin: 1.3rem 0 .3rem; padding: 1rem; }
.cw-ai__actions { align-items: center; display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
.cw-ai__quota { color: var(--cw-muted); font-size: .86rem; }
.cw-ai__status { color: var(--cw-green); font-size: .9rem; overflow-wrap: anywhere; }
.cw-ai__status:empty { display: none; }
.cw-ai__preview { background: #fff; border: 1px solid var(--cw-border); border-radius: 8px; margin-top: 1rem; padding: 1rem; }
.cw-ai__suggestion { margin: .8rem 0; overflow-wrap: anywhere; }
.cw-ai__suggestion p { white-space: pre-wrap; }
.cw-postage { border-top: 1px solid var(--cw-border); padding-top: 1.3rem; margin-top: 1.4rem; }
.cw-own-address { font-style: normal; overflow-wrap: anywhere; }
.cw-shipping-facts { margin: 1rem 0; }
.cw-shipping-facts > div { margin: .7rem 0; }

/* Registration: a quiet, parcel-inspired guided experience, scoped to the portal. */
.cw-portal .cw-wizard { --cw-warm: #a16a38; --cw-soft: #f5f5ed; margin: 0; }
.cw-wizard__welcome { align-items: center; background: #f2f4eb; border: 1px solid #e0e5d6; border-radius: 18px; display: flex; gap: 1.5rem; padding: clamp(1.25rem, 4vw, 2rem); }
.cw-wizard__welcome > div { flex: 1; min-width: 0; }
.cw-portal .cw-wizard__welcome h3 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.18; margin: .65rem 0; max-width: 18em; }
.cw-portal .cw-wizard__welcome p:not(.cw-eyebrow) { color: var(--cw-muted); font-size: .92rem; line-height: 1.65; margin: 0; max-width: 34em; }
.cw-wizard__gift { flex: 0 0 112px; height: 112px; width: 112px; transform: rotate(-6deg); }
.cw-wizard__progress { margin: 1.8rem 0 0; }
.cw-wizard__progress ol { display: flex; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.cw-wizard__progress li { flex: 1; margin: 0; min-width: 0; padding: 0; }
.cw-wizard__progress button { align-items: center; appearance: none; background: transparent; border: 0; border-radius: 8px; box-shadow: none; color: var(--cw-muted); cursor: pointer; display: flex; font: inherit; font-size: .86rem; font-weight: 600; gap: .6rem; line-height: 1.4; min-height: 48px; padding: .25rem; text-align: left; text-transform: none; width: 100%; }
.cw-step-number { align-items: center; background: #f4f4ee; border: 1px solid #dbe1d5; border-radius: 50%; display: inline-flex; flex: 0 0 32px; font-size: .85rem; height: 32px; justify-content: center; }
.cw-wizard__progress button[aria-current="step"] { color: var(--cw-green); }
.cw-wizard__progress button[aria-current="step"] .cw-step-number { background: var(--cw-green); border-color: var(--cw-green); box-shadow: 0 0 0 4px #eaf0e7; color: #fff; }
.cw-wizard__progress .is-complete .cw-step-number { background: #e6eee2; border-color: #c4d7c3; color: var(--cw-green); }
.cw-wizard__progress button:hover { background: #f5f7f2; color: var(--cw-green); }
.cw-wizard__track { background: #e9ede4; border-radius: 4px; height: 3px; margin: 1rem 0 .75rem; overflow: hidden; }
.cw-wizard__track span { background: var(--cw-green); display: block; height: 100%; width: 0; }
.cw-portal .cw-wizard__status { color: var(--cw-muted); font-size: .77rem; letter-spacing: .025em; margin: 0; }
.cw-form.cw-wizard fieldset.cw-wizard__step { border: 0; margin: 2rem 0 0; padding: 0; }
.cw-form.cw-wizard legend { font-size: clamp(1.25rem, 2.8vw, 1.55rem); letter-spacing: -.02em; line-height: 1.35; margin: 0; }
.cw-form.cw-wizard legend:focus { outline: none; }
.cw-form.cw-wizard legend:focus-visible { border-radius: 3px; outline: 2px solid var(--cw-warm); outline-offset: 5px; }
.cw-portal .cw-step-intro { color: var(--cw-muted); font-size: .9rem; margin: .65rem 0 1.65rem; }
.cw-portal .cw-optional { color: var(--cw-muted); font-size: .76rem; font-weight: 400; white-space: nowrap; }
.cw-step-intro .cw-optional { display: block; margin-top: .45rem; }
.cw-wizard .cw-field { margin-bottom: 1.15rem; }
.cw-wizard .cw-field label { font-size: .88rem; margin-bottom: .45rem; }
.cw-wizard .cw-field label .cw-optional { margin-left: .35rem; }
.cw-portal .cw-field-hint { color: var(--cw-muted); font-size: .82rem; line-height: 1.5; margin: -.1rem 0 .6rem; }
.cw-wizard .cw-address-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 1rem; }
.cw-address-grid .cw-field { grid-column: span 3; }
.cw-address-grid .cw-field--street, .cw-address-grid .cw-field--city { grid-column: span 4; }
.cw-address-grid .cw-field--house_number, .cw-address-grid .cw-field--postal_code { grid-column: span 2; }
.cw-address-grid .cw-field--full { grid-column: 1 / -1; }
.cw-portal .cw-wizard input[type="text"], .cw-portal .cw-wizard textarea, .cw-portal .cw-wizard select { background-color: #fdfdf9; border-color: #c2cebf; border-radius: 10px; min-height: 49px; padding: .72rem .9rem; }
.cw-portal .cw-wizard input[type="text"]:hover, .cw-portal .cw-wizard textarea:hover, .cw-portal .cw-wizard select:hover { border-color: #849e83; }
.cw-portal .cw-wizard input[type="text"]:focus, .cw-portal .cw-wizard textarea:focus, .cw-portal .cw-wizard select:focus { background: #fff; border-color: var(--cw-green); }
.cw-portal .cw-wizard__privacy { align-items: start; background: #f4f6f0; border-radius: 10px; color: #50654e; display: flex; font-size: .8rem; gap: .65rem; line-height: 1.6; margin: .4rem 0 0; padding: .9rem 1rem; }
.cw-wizard__privacy svg { fill: none; flex: 0 0 19px; height: 21px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; width: 19px; }
.cw-wizard__actions { align-items: center; border-top: 1px solid var(--cw-border); display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; margin-top: 1.7rem; padding-top: 1.35rem; }
.cw-wizard__actions [data-cw-back] { margin-right: auto; }
.cw-portal .cw-wizard__actions .cw-button { border-radius: 10px; min-height: 48px; padding: .8rem 1.25rem; }
.cw-wizard__actions [data-cw-next]::after { content: ' →'; margin-left: .5rem; }
.cw-portal .cw-wizard__save-note { color: var(--cw-muted); font-size: .76rem; line-height: 1.5; margin: .85rem 0 0; text-align: right; }
.cw-review { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.cw-review__card { background: #fafaf5; border: 1px solid #e0e4d7; border-radius: 14px; padding: 1.15rem 1.25rem; min-width: 0; }
.cw-review__heading { align-items: baseline; display: flex; flex-wrap: wrap; gap: .35rem 1rem; justify-content: space-between; margin-bottom: .7rem; }
.cw-portal .cw-review__heading h4 { font-size: .9rem; margin: 0; }
.cw-portal .cw-text-button { appearance: none; background: none; border: 0; border-radius: 3px; box-shadow: none; color: var(--cw-green); cursor: pointer; font: inherit; font-size: .8rem; line-height: 1.5; min-height: 32px; padding: .25rem 0; text-decoration: underline; text-underline-offset: .2em; text-transform: none; }
.cw-text-button:hover { color: #173e2e; }
.cw-portal .cw-review__address { font-size: .96rem; line-height: 1.7; margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.cw-review__card dl { margin: 0; }
.cw-review__card dl > div + div { margin-top: 1rem; }
.cw-review__card dt { color: var(--cw-muted); font-size: .78rem; font-weight: 600; }
.cw-review__card dd { font-size: .9rem; margin: .2rem 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.cw-wizard__notification { border: 1px solid var(--cw-border); border-radius: 12px; margin: 1.25rem 0; padding: 1.1rem 1.2rem; }
.cw-wizard__notification .cw-checkbox { font-size: .9rem; }
.cw-wizard__rules { background: #f6f7f1; border: 1px solid var(--cw-border); border-radius: 12px; margin-top: 1.25rem; padding: 1rem 1.2rem; }
.cw-wizard__rules summary { font-size: .94rem; }
.cw-wizard__rules .cw-rules { font-size: .9rem; }
.cw-wizard__consent { background: #fff; border: 1px solid #bccfba; border-radius: 12px; font-size: .9rem; line-height: 1.6; padding: 1rem 1.2rem; }
.cw-wizard .cw-ai { background: #f8f5ec; border: 1px solid #e6dcc4; border-radius: 12px; }
.cw-portal .cw-edit-deadline { margin: 1rem 0; }
.cw-edit-deadline strong { display: block; margin-top: .4rem; }
.cw-details.cw-edit { border: 0; margin-top: 1rem; padding: 0; }
.cw-edit > summary { background: var(--cw-green); border: 1px solid var(--cw-green); border-radius: 10px; color: #fff; font-size: .95rem; min-height: 48px; padding: .8rem 1.2rem; width: fit-content; }
.cw-edit > summary:hover { background: #174636; }
.cw-edit[open] > summary { margin-bottom: 1.3rem; }
@media (max-width: 620px) {
    .cw-wizard__welcome { gap: .75rem; }
    .cw-wizard__gift { flex-basis: 72px; height: 72px; width: 72px; }
    .cw-wizard__progress ol { gap: .3rem; }
    .cw-wizard__progress button { align-items: flex-start; flex-direction: column; font-size: .75rem; gap: .65rem; padding: .25rem; }
    .cw-step-number { flex-basis: 30px; height: 30px; width: 30px; }
    .cw-wizard__actions { gap: .65rem; }
    .cw-portal .cw-wizard__actions .cw-button { flex: 1; width: auto; }
    .cw-portal .cw-wizard__actions [data-cw-back] { flex: 0 0 auto; }
    .cw-portal .cw-wizard__save-note { text-align: center; }
    .cw-wizard .cw-address-grid { column-gap: .7rem; }
}
@media (max-width: 480px) {
    .cw-wizard__gift { display: none; }
    .cw-address-grid .cw-field:not(.cw-field--full) { grid-column: span 3; }
}
@media (max-width: 380px) {
    .cw-wizard .cw-address-grid { grid-template-columns: 1fr; }
    .cw-address-grid .cw-field, .cw-address-grid .cw-field:not(.cw-field--full) { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: no-preference) {
    .cw-wizard--ready .cw-wizard__step:not([hidden]) { animation: cw-step-in .2s ease-out; }
    .cw-wizard__track span { transition: width .2s ease; }
    @keyframes cw-step-in { from { opacity: .3; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 620px) {
    .cw-form-grid, .cw-shipment-grid { grid-template-columns: 1fr; }
    .cw-portal .cw-button { width: 100%; }
    .cw-round { border-radius: 12px; }
    .cw-facts { gap: .8rem 1.5rem; }
}
@media (prefers-reduced-motion: no-preference) {
    .cw-portal .cw-button { transition: background-color .15s ease, border-color .15s ease; }
}
