/*
 * ============================================================================
 *  « CRÉER UN ÉVÉNEMENT » — maquettes docs/maquettes/creation_evenements
 *  (guide + 8 étapes, 04/10). Préfixe .ew-*.
 * ============================================================================
 */

.ew {
    --ew-violet: #4f17e8;
    --ew-violet-soft: #f3f0fe;
    --ew-line: #e6e8ef;
    --ew-ink: #0b1437;
    --ew-muted: #6b6f85;
    --ew-green: #16a34a;
    --ew-red: #e5324b;
    max-width: 1500px;
    margin: 0 auto;
    padding: 28px 32px 64px;
    background: #fbfbfe;
    font-family: var(--tm-font, inherit);
    color: var(--ew-ink);
}
.ew-form { display: contents; }

/* ---- En-tête ---------------------------------------------------------------- */
.ew-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.ew-head__title { display: flex; align-items: center; gap: 14px; margin: 0 0 8px; font-size: 32px; font-weight: 800; color: var(--ew-ink); }
.ew-head__ico { display: inline-flex; color: var(--ew-violet); }
.ew-head__sub { margin: 0; color: var(--ew-ink); font-size: 15px; }
.ew-head__actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 4px; }

.ew-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 26px; border: 1px solid var(--ew-line); border-radius: 8px; background: #fff; color: var(--ew-ink); font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.ew-btn--primary { border-color: var(--ew-violet); background: var(--ew-violet); color: #fff; }
.ew-btn--primary:hover { color: #fff; filter: brightness(1.1); }
.ew-btn--ghost:hover { border-color: var(--ew-violet); color: var(--ew-violet); }
.ew-btn--outline { border-color: var(--ew-violet); color: var(--ew-violet); }
.ew-btn--outline:hover { background: var(--ew-violet-soft); color: var(--ew-violet); }
.ew-btn--sm { height: 36px; padding: 0 16px; font-size: 13.5px; }
.ew-btn--block { display: flex; width: 100%; }
.ew-btn--wide { display: flex; width: min(360px, 100%); margin: 26px auto 0; }
.ew-link { padding: 0; background: none; border: 0; color: var(--ew-violet); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }

.ew-alert { display: flex; align-items: center; gap: 10px; margin: -6px 0 18px; padding: 12px 16px; background: #fde8eb; border: 1px solid #f6c5cc; border-radius: 10px; color: #a3172b; font-size: 14px; font-weight: 600; }

/* ---- Grille ----------------------------------------------------------------- */
.ew-grid { display: grid; grid-template-columns: 236px minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.ew-col { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--tm-header-h, 80px) + 16px); }
.ew-card { background: #fff; border: 1px solid var(--ew-line); border-radius: 14px; padding: 20px; box-shadow: 0 2px 12px rgba(11, 20, 55, .04); }

/* Étapes. */
.ew-steps { display: flex; flex-direction: column; gap: 4px; padding: 12px; }
.ew-steps__title { margin: 6px 8px 8px; font-size: 16px; font-weight: 800; }
.ew-step { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 10px; color: inherit; text-decoration: none; }
a.ew-step:hover { background: #f7f7fb; }
.ew-step__dot { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1.5px solid #c9cbd6; border-radius: 50%; color: var(--ew-ink); font-size: 12.5px; font-weight: 700; }
.ew-step__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ew-step__text strong { font-size: 13.5px; font-weight: 700; }
.ew-step__text small { color: var(--ew-muted); font-size: 12px; line-height: 16px; }
.ew-step.is-active { background: var(--ew-violet-soft); }
.ew-step.is-active .ew-step__dot { background: var(--ew-violet); border-color: var(--ew-violet); color: #fff; }
.ew-step.is-active .ew-step__text strong, .ew-step.is-active .ew-step__text small { color: var(--ew-violet); }
.ew-step.is-done .ew-step__dot { background: var(--ew-green); border-color: var(--ew-green); color: #fff; }

.ew-help { background: linear-gradient(180deg, #f6f3ff, #fff); }
.ew-help__art { display: inline-flex; color: #8b5cf6; }
.ew-help h2 { margin: 12px 0 6px; font-size: 18px; font-weight: 800; }
.ew-help p { margin: 0 0 14px; color: var(--ew-ink); font-size: 13.5px; }

/* ---- Colonne centrale -------------------------------------------------------- */
.ew-main { padding: 26px 28px 30px; }
.ew-main__title { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.ew-main__lead { margin: 0 0 20px; color: var(--ew-ink); font-size: 14px; }
.ew-main__sub { margin: 26px 0 4px; font-size: 17px; font-weight: 800; }
.ew-main__label { margin: 22px 0 12px; font-size: 14.5px; font-weight: 800; }
.ew-sep { margin: 22px 0 4px; border: 0; border-top: 1px solid var(--ew-line); }

.ew-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.ew-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.ew-field--half { max-width: 420px; }
.ew-field > label, .ew-field__label { font-size: 13.5px; font-weight: 700; }
.ew-field em { color: var(--ew-red); font-style: normal; }
.ew-field input:not([type=checkbox]):not([type=radio]):not([type=file]), .ew-select select, .ew-textarea textarea, .ew-time-sm {
    width: 100%; height: 46px; padding: 0 14px; background: #fff; border: 1px solid var(--ew-line); border-radius: 8px; color: var(--ew-ink); font: inherit; font-size: 14px;
}
.ew-textarea textarea { height: auto; min-height: 90px; padding: 12px 14px 28px; resize: vertical; }
.ew-field input:focus, .ew-select select:focus, .ew-textarea textarea:focus { outline: none; border-color: var(--ew-violet); box-shadow: 0 0 0 3px rgba(79, 23, 232, .1); }
.ew-field.has-error input, .ew-field.has-error select, .ew-field.has-error textarea, .has-error > .ew-drop { border-color: var(--ew-red); }
.ew-error { margin: 0; color: var(--ew-red); font-size: 12.5px; font-weight: 600; }
.ew-hint { margin: -4px 0 4px; color: var(--ew-muted); font-size: 12.5px; }
.ew-hint--center { text-align: center; }
.ew-select { position: relative; display: block; }
.ew-select select { appearance: none; padding-right: 36px; cursor: pointer; }
.ew-select::after { content: ""; position: absolute; top: 50%; right: 15px; width: 7px; height: 7px; border-right: 1.7px solid var(--ew-ink); border-bottom: 1.7px solid var(--ew-ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.ew-select--sm { width: 220px; flex: none; }
.ew-select--sm select { height: 40px; font-size: 13px; }
.ew-textarea { position: relative; display: block; }
.ew-count { position: absolute; right: 12px; bottom: 8px; color: var(--ew-muted); font-size: 12px; }
.ew-count b { font-weight: 500; }
.ew-inline { display: flex; align-items: center; gap: 18px; }
.ew-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; white-space: nowrap; cursor: pointer; }
.ew-check input { width: 16px; height: 16px; accent-color: var(--ew-violet); }
.ew-time-sm { width: 140px; height: 40px; }

/* Éditeur. */
.ew-editor { border: 1px solid var(--ew-line); border-radius: 8px; overflow: hidden; }
.ew-editor__bar { display: flex; align-items: center; gap: 2px; padding: 6px 10px; border-bottom: 1px solid var(--ew-line); }
.ew-editor__bar button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 28px; padding: 0; background: none; border: 0; border-radius: 6px; color: var(--ew-ink); cursor: pointer; }
.ew-editor__bar button:hover { background: var(--ew-violet-soft); color: var(--ew-violet); }
.ew-editor__bar span { width: 1px; height: 18px; margin: 0 6px; background: var(--ew-line); }
.ew-textarea--flat textarea { border: 0 !important; border-radius: 0; box-shadow: none !important; min-height: 120px; }

/* Cartes de choix. */
.ew-visibility { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 6px 0 4px; background: #f6f4ff; border: 1px solid #e3dcfd; border-radius: 12px; }
.ew-visibility .ew-choice { border: 0; border-radius: 0; background: transparent; }
.ew-visibility .ew-choice + .ew-choice { border-left: 1px solid #e3dcfd; }
.ew-choices { display: grid; gap: 14px; margin-bottom: 6px; }
.ew-choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ew-choices--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ew-choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--ew-line); border-radius: 10px; cursor: pointer; }
.ew-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ew-choice__ico { flex: none; display: inline-flex; color: var(--ew-violet); }
.ew-choice__text { display: flex; flex-direction: column; gap: 3px; }
.ew-choice__text strong { font-size: 13.5px; font-weight: 700; }
.ew-choice__text small { color: var(--ew-ink); font-size: 12.5px; }
.ew-choice__check { position: absolute; top: 8px; right: 8px; display: none; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ew-violet); color: #fff; }
.ew-choice:has(input:checked), .ew-cat:has(input:checked) { border-color: var(--ew-violet); background: var(--ew-violet-soft); box-shadow: 0 0 0 1px var(--ew-violet) inset; }
.ew-choice:has(input:checked) .ew-choice__check, .ew-cat:has(input:checked) .ew-choice__check { display: inline-flex; }
.ew-choice:has(input:focus-visible), .ew-cat:has(input:focus-visible), .ew-type:has(input:focus-visible) { outline: 2px solid var(--ew-violet); outline-offset: 2px; }
.ew-choice--center { justify-content: center; text-align: center; }
.ew-choice--center .ew-choice__text strong { color: var(--ew-violet); }
.ew-choice--stack { flex-direction: column; text-align: center; gap: 8px; }

.ew-types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ew-type { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; background: #fff; border: 1px solid var(--ew-line); border-radius: 10px; text-align: center; cursor: pointer; }
.ew-type input { position: absolute; opacity: 0; }
.ew-type strong { font-size: 13.5px; }
.ew-type small { color: var(--ew-ink); font-size: 11.5px; line-height: 15px; }
.ew-type:has(input:checked) { border-color: var(--ew-violet); background: var(--ew-violet-soft); }
.ew-type__ico, .ew-cat__ico, .ew-setting__ico, .ew-timeline__ico { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.ew-type__ico { width: 46px; height: 46px; }
.is-green { background: #e4f8e8; color: #16a34a; }
.is-red { background: #fde8eb; color: #e5324b; }
.is-violet { background: #efebfd; color: #6d28d9; }
.is-blue { background: #e3ebfd; color: #2f5be7; }
.is-orange { background: #fdf0e0; color: #f08a00; }
.is-grey { background: #eef0f4; color: #6b6f85; }
.is-teal { background: #e0f7f6; color: #0d9488; }

/* Catégories. */
.ew-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ew-cat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; background: #fff; border: 1px solid var(--ew-line); border-radius: 12px; text-align: center; cursor: pointer; }
.ew-cat input { position: absolute; opacity: 0; }
.ew-cat__ico { width: 56px; height: 56px; }
.ew-cat strong { font-size: 13.5px; }
.ew-cat small { color: var(--ew-muted); font-size: 12px; line-height: 16px; }

/* Réglages (lignes à interrupteur). */
.ew-settings { border: 1px solid var(--ew-line); border-radius: 10px; }
.ew-setting { display: flex; align-items: center; gap: 14px; padding: 12px 16px; cursor: pointer; }
.ew-setting + .ew-setting { border-top: 1px solid var(--ew-line); }
.ew-setting__ico { flex: none; width: 34px; height: 34px; border-radius: 8px; }
.ew-setting__text { flex: 1; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.ew-setting__text strong { font-size: 13.5px; }
.ew-setting__text small { color: var(--ew-muted); font-size: 12.5px; }
.ew-switch { position: relative; flex: none; }
.ew-switch input { position: absolute; opacity: 0; }
.ew-switch i { display: block; width: 42px; height: 24px; background: #d6d9e3; border-radius: 999px; transition: background .2s; }
.ew-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .2s; }
.ew-switch input:checked + i { background: var(--ew-violet); }
.ew-switch input:checked + i::after { transform: translateX(18px); }
.ew-switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(79, 23, 232, .25); }

.ew-tip { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; padding: 12px 16px; background: var(--ew-violet-soft); border: 1px solid #e3dcfd; border-radius: 10px; color: var(--ew-ink); font-size: 13px; }
.ew-tip b { color: var(--ew-violet); }
.ew-tip .pl-icon { flex: none; color: var(--ew-violet); margin-top: 1px; }
.ew-tip--soft { background: #f8f7ff; }

/* Lieu. */
.ew-search { position: relative; display: block; }
.ew-search > .pl-icon { position: absolute; top: 14px; right: 14px; color: var(--ew-ink); pointer-events: none; }
.ew-search input { padding-right: 42px !important; }
.ew-suggest { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--ew-line); border-radius: 10px; list-style: none; box-shadow: 0 12px 30px rgba(11, 20, 55, .12); }
.ew-suggest li { padding: 9px 10px; border-radius: 6px; font-size: 13.5px; cursor: pointer; }
.ew-suggest li:hover, .ew-suggest li.is-active { background: var(--ew-violet-soft); }
.ew-suggest small { display: block; color: var(--ew-muted); font-size: 12px; }
.ew-place { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--ew-line); border-radius: 10px; }
.ew-place__ico { display: inline-flex; color: var(--ew-violet); }
.ew-place > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.ew-place strong { font-size: 13.5px; }
.ew-place small { color: var(--ew-muted); font-size: 12.5px; }
.ew-place button { background: none; border: 0; color: var(--ew-ink); cursor: pointer; }
.ew-map { height: 220px; margin-bottom: 8px; border: 1px solid var(--ew-line); border-radius: 10px; background: #eef2f6; }
.ew-maplink { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; color: var(--ew-violet); font-size: 13px; font-weight: 600; }

/* Images. */
.ew-drop { position: relative; display: flex; align-items: center; justify-content: center; min-height: 160px; padding: 20px; overflow: hidden; background: #fbfaff; border: 1.5px dashed #b9a6fb; border-radius: 12px; cursor: pointer; }
.ew-drop.is-over { background: var(--ew-violet-soft); border-color: var(--ew-violet); }
.ew-drop > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.ew-drop__body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ew-ink); font-size: 13.5px; text-align: center; }
.ew-drop__body .pl-icon { color: var(--ew-violet); }
.ew-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ew-drop.has-image > img { opacity: .55; }
.ew-gallery { display: flex; flex-wrap: wrap; gap: 14px; }
.ew-gallery__item, .ew-gallery__add { position: relative; display: flex; align-items: center; justify-content: center; width: 112px; height: 80px; overflow: hidden; border: 1px solid var(--ew-line); border-radius: 8px; background: #fff; }
.ew-gallery__item img, .ew-gallery__add img { width: 100%; height: 100%; object-fit: cover; }
.ew-gallery__add { cursor: pointer; color: var(--ew-ink); }
.ew-gallery__add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ew-gallery__add img + span { display: none; }
.ew-gallery__remove { position: absolute; top: 4px; right: 4px; display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px; background: rgba(255, 255, 255, .9); border-radius: 6px; font-size: 11px; cursor: pointer; }
.ew-gallery__remove input { margin: 0; }
.ew-gallery__item:has(input:checked) img { opacity: .3; }

/* Invitations. */
.ew-tabs { display: flex; gap: 24px; margin-bottom: 16px; border-bottom: 1px solid var(--ew-line); }
.ew-tabs button { position: relative; padding: 10px 6px; background: none; border: 0; color: var(--ew-ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.ew-tabs button.is-active { color: var(--ew-violet); }
.ew-tabs button.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ew-violet); }
.ew-people__head { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0 8px; font-size: 13.5px; }
.ew-people__head small { color: var(--ew-muted); }
.ew-people { margin: 0 0 8px; padding: 0; list-style: none; border: 1px solid var(--ew-line); border-radius: 10px; }
.ew-people:empty { display: none; }
.ew-people li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.ew-people li + li { border-top: 1px solid var(--ew-line); }
.ew-people strong { flex: 1; font-size: 13.5px; }
.ew-avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ew-violet-soft); color: var(--ew-violet); font-size: 12px; font-weight: 700; object-fit: cover; }
.ew-people .ew-btn { height: 30px; padding: 0 12px; font-size: 12.5px; }
.ew-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px; border: 1px dashed #b9a6fb; border-radius: 12px; color: var(--ew-violet); text-align: center; }
.ew-empty strong { color: var(--ew-ink); font-size: 13.5px; }
.ew-empty small { color: var(--ew-muted); font-size: 12.5px; }

/* Publication. */
.ew-summary { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: center; padding: 20px 22px; background: #f8f7ff; border: 1px solid #e3dcfd; border-radius: 12px; }
.ew-summary h3 { margin: 0 0 12px; font-size: 14.5px; font-weight: 800; }
.ew-summary dl { margin: 0; }
.ew-summary dl > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; padding: 6px 0; font-size: 13px; }
.ew-summary dt { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ew-summary dd { margin: 0; }
.ew-summary img { width: 100%; height: 160px; border-radius: 10px; object-fit: cover; }
.ew-publish { display: flex; flex-direction: column; gap: 10px; }
.ew-pubopt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--ew-line); border-radius: 10px; cursor: pointer; }
.ew-pubopt input { width: 18px; height: 18px; accent-color: var(--ew-violet); }
.ew-pubopt span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ew-pubopt strong { color: var(--ew-violet); font-size: 13.5px; }
.ew-pubopt small { font-size: 12.5px; }
.ew-pubopt i { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: var(--ew-violet-soft); color: var(--ew-violet); }
.ew-pubopt:has(input:checked) { border-color: var(--ew-violet); box-shadow: 0 0 0 1px var(--ew-violet) inset; }
.ew-schedule { padding: 0 6px; }
.ew-terms { margin-top: 18px; font-size: 13.5px; white-space: normal; }
.ew-terms a { color: var(--ew-violet); font-weight: 600; }
.ew-terms.has-error { color: var(--ew-red); }

/* ---- Colonne de droite ------------------------------------------------------- */
.ew-preview__title, .ew-advice h2, .ew-links h2, .ew-examples h2 { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.ew-preview__cover { position: relative; height: 170px; overflow: hidden; border-radius: 10px; background: #eef0f4; }
.ew-preview__cover img { width: 100%; height: 100%; object-fit: cover; }
.ew-preview__cover.is-empty img { filter: grayscale(.2); opacity: .85; }
.ew-preview__add { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; background: rgba(11, 20, 55, .65); border-radius: 6px; color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
.ew-preview__name { margin: 14px 0 8px; font-size: 15px; font-weight: 800; }
.ew-preview__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ew-preview__pills span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; background: #f3f4f8; border-radius: 6px; color: var(--ew-ink); font-size: 11.5px; }
.ew-preview__pills b { font-weight: 500; }
.ew-preview__people { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 10px; }
.ew-preview__people small { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 600; }
.ew-preview__org, .ew-preview__count { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.ew-preview__org img, .ew-preview__org i { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.ew-preview__org i { display: inline-flex; align-items: center; justify-content: center; background: var(--ew-violet-soft); color: var(--ew-violet); font-size: 10px; font-style: normal; font-weight: 700; }
.ew-preview__desc { margin: 0; padding-top: 10px; border-top: 1px solid var(--ew-line); color: var(--ew-muted); font-size: 12.5px; line-height: 18px; }
.ew-advice { background: linear-gradient(180deg, #f8f6ff, #fff); }
.ew-advice ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; }
.ew-advice li { display: flex; gap: 8px; }
.ew-advice .pl-icon { flex: none; color: var(--ew-violet); }

/* ---- Guide (étape 0) ---------------------------------------------------------- */
.ew-welcome { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; padding: 22px; background: #f8f7ff; border: 1px solid #e3dcfd; border-radius: 12px; }
.ew-welcome__art { font-size: 42px; }
.ew-welcome strong { display: block; margin-bottom: 6px; font-size: 15px; }
.ew-welcome p { margin: 0; font-size: 13.5px; line-height: 21px; }
.ew-timeline { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin: 18px 0 8px; padding: 0; list-style: none; }
.ew-timeline::before { content: ""; position: absolute; top: 26px; left: 6%; right: 6%; height: 1px; background: var(--ew-line); }
.ew-timeline a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ew-ink); font-size: 12.5px; font-weight: 600; text-align: center; text-decoration: none; }
.ew-timeline__ico { width: 52px; height: 52px; }
.ew-timeline b { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid var(--ew-line); border-radius: 50%; background: #fff; font-size: 11px; }
.ew-advice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ew-advice-grid > div { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 14px; background: #f1fbf4; border-radius: 10px; text-align: center; }
.ew-advice-grid > div.is-yellow { background: #fff8e8; }
.ew-advice-grid span { display: inline-flex; color: #16a34a; }
.ew-advice-grid .is-yellow span { color: #f5a524; }
.ew-advice-grid strong { font-size: 13.5px; }
.ew-advice-grid small { color: var(--ew-muted); font-size: 12px; line-height: 17px; }
.ew-faqband { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 16px 20px; background: #fffaf0; border: 1px solid #f7e3b8; border-radius: 12px; }
.ew-faqband > .pl-icon { color: #f5a524; }
.ew-faqband div { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.ew-faqband a:not(.ew-btn) { color: var(--ew-violet); font-weight: 600; }
.ew-pdf { display: flex; gap: 14px; background: #f8f7ff; border-color: #e3dcfd; }
.ew-pdf > span { color: var(--ew-violet); }
.ew-pdf div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ew-pdf small { margin-bottom: 8px; color: var(--ew-muted); font-size: 12px; }
.ew-links p, .ew-examples p { margin: -4px 0 12px; color: var(--ew-muted); font-size: 13px; }
.ew-links a { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ew-line); color: var(--ew-ink); text-decoration: none; }
.ew-links a > span:first-child { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ew-violet-soft); color: var(--ew-violet); }
.ew-links a > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.ew-links strong { font-size: 13px; }
.ew-links small { color: var(--ew-muted); font-size: 12px; }
.ew-examples > a:not(.ew-btn) { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--ew-ink); text-decoration: none; }
.ew-examples img { width: 56px; height: 42px; border-radius: 6px; object-fit: cover; }
.ew-examples span { display: flex; flex-direction: column; }
.ew-examples strong { font-size: 13px; }
.ew-examples small { color: var(--ew-muted); font-size: 12px; }

/* ---- Responsive ---------------------------------------------------------------- */
@media (max-width: 1399.98px) {
    .ew-grid { grid-template-columns: 220px minmax(0, 1fr); }
    .ew-grid > .ew-col:last-child { grid-column: 2; position: static; display: grid; grid-template-columns: 1fr 1fr; }
    .ew-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ew-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .ew { padding: 20px 16px 48px; }
    .ew-head { flex-direction: column; }
    .ew-grid { grid-template-columns: 1fr; }
    .ew-col, .ew-grid > .ew-col:last-child { position: static; grid-column: auto; }
    .ew-steps { flex-direction: row; overflow-x: auto; }
    .ew-step { flex: none; }
    .ew-step__text small { display: none; }
    .ew-help { display: none; }
    .ew-choices--4, .ew-advice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ew-timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; }
    .ew-timeline::before { display: none; }
}
@media (max-width: 767.98px) {
    .ew-row, .ew-choices--3, .ew-visibility, .ew-summary, .ew-grid > .ew-col:last-child { grid-template-columns: 1fr; }
    .ew-visibility .ew-choice + .ew-choice { border-left: 0; border-top: 1px solid #e3dcfd; }
    .ew-types, .ew-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ew-setting { flex-wrap: wrap; }
    .ew-select--sm { width: 100%; }
    .ew-head__title { font-size: 26px; }
}
