/*
 * animeunity-member.css — owned by the member area.
 * Scope: /member/* (frontend/member/**), the public profile pages
 * (frontend/public-profile*, partials/profile/*, partials/member/*).
 *
 * animeunity never published its logged-in pages; app.css still carries the
 * dormant pieces (`#profile #banner/#avatar/#name/#profile-nav`, the
 * AnimeList `.animelist-wrapper/.list-*/.entry-card/.list-head/.entry`,
 * `#profile .theme-switch`, `.import-wrap`, `.modal-tab`) and
 * animeunity-components.css its scoped Vue CSS (`.au-v-anime-list`,
 * `.au-v-default-section`, `.au-v-layout-items`). This file only adds what
 * they never drew (CMS features, engine-hook elements), with the theme
 * tokens and animeunity's few hard-coded colours (#3db4f2, #007bff,
 * #dc3545, #4cca51, #f2870d, #c4213f, #9256f3, #2399d4).
 * Loaded on every page after animeunity-bridge.css: every rule is scoped
 * under `#profile` (member pages and public profiles both draw it).
 */

/* ── 1. Profile header (#banner, avatar, #name, #profile-nav) ──────────── */
#profile #banner.au-banner-empty { background-color: var(--color-background-0); }
#profile .au-profile-head { display: flex; align-items: flex-end; height: 350px; }
#profile .au-profile-head #avatar { padding-top: 0; flex: none; }
#profile .au-profile-head #name { padding-top: 0; padding-bottom: 18px; min-width: 0; flex: 1 1 auto; line-height: 1.3; }
#profile .profile-avatar { overflow: hidden; background-color: var(--color-background-1); }
#profile .au-profile-avatar-img { display: block; width: 100%; height: 100%; object-fit: cover; }
#profile .au-profile-name { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
#profile .au-profile-sub { font-size: 12px; font-weight: 600; color: #fff; opacity: .8; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
#profile .au-avatar-edit { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; text-decoration: none; }
#profile .au-avatar-edit:hover { background: #3db4f2; color: #fff; }
@media (max-width: 500px) {
    #profile .au-profile-head { height: 200px; }
    #profile .au-profile-head #name { padding-bottom: 10px; }
    #profile .au-profile-name { font-size: 17px; }
    #profile .au-profile-sub { font-size: 11px; }
}

#profile .au-profile-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; white-space: nowrap; scrollbar-width: none; }
#profile .au-profile-tabs::-webkit-scrollbar { display: none; }
#profile .au-profile-tabs .nav-link { padding: 14px 16px 12px; font-size: 15px; font-weight: 600; border-bottom: 2px solid transparent; }
#profile .au-profile-tabs .nav-link.active { border-bottom-color: #3db4f2; }
#profile .au-profile-tabs .au-profile-tabs-right { margin-left: auto; }
@media (max-width: 991px) { #profile .au-profile-tabs .nav-link { padding: 12px 11px 10px; font-size: 14px; } }

/* ── 2. Page body, boxes, forms (`.import-wrap`, animeunity's import page) ─ */
#profile .au-member-body { padding-bottom: 10px; }
#profile .import-wrap { margin-bottom: 0; }
#profile .import-wrap h1 { line-height: 1.2; }
#profile .import-wrap .form-control,
#profile .import-wrap .form-control:focus { background: var(--color-background); border: none; box-shadow: none; color: var(--color-text-0); }
#profile .import-wrap .form-control[readonly],
#profile .import-wrap .form-control:disabled { background: var(--color-background); opacity: .7; }
#profile .import-wrap .form-control::placeholder { color: var(--color-text); opacity: .6; }
#profile .import-wrap textarea.form-control { min-height: 80px; }
#profile .import-wrap .au-num { max-width: 120px; }
#profile .import-wrap .form-group { margin-bottom: 18px; }
#profile .import-wrap .form-group.row { align-items: flex-start; }
#profile .import-wrap .col-md-4 > label { margin-bottom: 4px; padding-top: 1px; }
#profile .import-wrap .form-check-input { accent-color: #007bff; }
#profile .import-wrap .form-check-label { font-weight: 600; }
#profile .import-wrap .au-check-note { color: var(--color-text); }
#profile .import-wrap .example { color: var(--color-text); }
#profile .import-wrap a:not(.btn):not(.nav-link) { color: #3db4f2; }
#profile .au-form-sub { margin: 4px 0 14px; font-size: 15px; font-weight: 700; color: var(--color-text-0); }
#profile .au-side-box { font-size: 13px; line-height: 1.6; }
#profile .au-settings-save { margin-top: 6px; }
#profile .au-fold { padding: 16px 0 4px; }
#profile .au-inline-form { display: inline; }
#profile .au-link { color: #3db4f2; font-weight: 700; }
#profile .au-link:hover { color: var(--color-text-0); }
/* main.js AjaxForm prepends its answer to the form: app.css makes it the
   fixed VueAlert toast (animeunity answers a form that way); the skin JS
   adds the × and closes it after 5 s. */
#profile form .alert-dismissible .close { padding: 10px 14px; }

/* Buttons — the outline look of `#top table .btn-primary`. */
#profile .au-btn-outline { background: transparent; color: #007bff; border: 1px solid #007bff; padding: 5px 10px; font-size: 14px; }
#profile .au-btn-outline.btn-sm { padding: 4px 8px; font-size: 12px; line-height: 1.4; }
#profile .au-btn-outline:hover, #profile .au-btn-outline:focus { background: #007bff; color: #fff; box-shadow: none; }
#profile .au-btn-outline.au-danger { color: #dc3545; border-color: #dc3545; }
#profile .au-btn-outline.au-danger:hover, #profile .au-btn-outline.au-danger:focus { background: #dc3545; color: #fff; }
#profile .au-btn-outline:disabled { opacity: .5; background: transparent; color: #007bff; }
#profile .au-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
#profile .au-actions-end { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--color-divider); }

/* Chips (state labels). */
#profile .au-chip { margin-left: 6px; padding: 4px 6px 2px; font-size: 10px; font-weight: 700; color: #fff; vertical-align: 1px; text-transform: uppercase; }
#profile .au-chip-ok { background: #4cca51; }
#profile .au-chip-warn { background: #f2870d; }
#profile .au-chip-off { background: #6c757d; }
#profile .au-info-rows .au-chip { margin-left: 0; margin-top: 3px; }

/* Profilo: avatar + email head, connections. */
#profile .au-account-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--color-divider); }
#profile .au-account-avatar { flex: none; display: block; width: 80px; height: 80px; border-radius: 50%; overflow: hidden; background: var(--color-background); }
#profile .au-account-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
#profile .au-account-avatar:hover { box-shadow: 0 0 0 3px #3db4f2; }
#profile .au-account-mail { flex: 1 1 auto; min-width: 0; }
#profile .au-connection { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--color-divider); }
#profile .au-connection:last-child { border-bottom: 0; padding-bottom: 0; }
#profile .au-connection-name strong { color: var(--color-text-0); font-size: 14px; }
#profile .au-connection-act { text-align: right; max-width: 55%; }
@media (max-width: 500px) {
    #profile .import-wrap { padding: 20px 15px; }
    #profile .au-account-head { gap: 14px; }
    #profile .au-account-avatar { width: 60px; height: 60px; }
    #profile .au-connection { flex-wrap: wrap; }
    #profile .au-connection-act { max-width: none; text-align: left; }
}

/* Side column: the anime page's info box + bar titles + rows. */
#profile .info-wrapper { margin: 30px 0 20px; padding: 6px 15px; border-radius: 3px; background: var(--color-background-1); color: var(--color-text); }
#profile .info-wrapper strong { color: var(--color-text-0); }
#profile .info-item { line-height: 1.4; margin-bottom: 15px; word-break: break-word; }
#profile .info-item a { color: #3db4f2; }
#profile .au-info-bio small { white-space: pre-line; }
#profile .au-info-rows { margin-bottom: 18px; }
#profile .related-title { padding: 5px 15px; border-radius: 3px; width: 100%; color: var(--color-text-0); background: var(--color-background-1); }
#profile .au-side-rows { padding: 12px 4px 8px; margin-bottom: 10px; }
#profile .au-side-empty { font-size: 12px; color: var(--color-text); margin: 0 0 8px; }
#profile .au-activity { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; margin-bottom: 12px; font-size: 12px; line-height: 1.35; color: var(--color-text); }
#profile .au-activity > i { color: #3db4f2; font-size: 12px; padding-top: 2px; }
#profile .au-activity strong, #profile .au-activity a { color: var(--color-text-0); }
#profile .au-activity a:hover { color: #3db4f2; text-decoration: none; }
#profile .au-activity-time { display: block; font-size: 10px; color: var(--color-text); margin-top: 2px; }
@media (max-width: 991px) {
    #profile .au-info { display: flex; flex-wrap: wrap; column-gap: 25px; }
    #profile .au-info .info-item { margin-bottom: 12px; }
    #profile .au-info .au-info-bio { flex-basis: 100%; }
}

/* ── 3. Anime list (AnimeList / DefaultSection / TableSection) ─────────── */
#profile .au-anime-list .filters > .mt-3 > span { color: var(--color-text-0); }
#profile .au-anime-list .list-item:hover { text-decoration: none; }
#profile .au-anime-list .filters.au-open { display: block; }
#profile .au-anime-list .multiselect { min-height: 35px; }
#profile .filter .reset-icon { line-height: 1; }
#profile .filter .reset-icon:hover { color: #dc3545; }
#profile .filter .multiselect--active + .reset-icon { display: none; }
#profile .au-list-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: -6px 0 15px; font-size: 12px; color: var(--color-text); }
#profile .au-list-meta strong { color: var(--color-text-0); }
#profile .au-list-reset { color: #3db4f2; }
#profile .au-list-reset:hover { color: var(--color-text-0); text-decoration: none; }
#profile .au-public-switch { margin-left: auto; padding-right: 2px; }
#profile .au-public-switch .form-check-input { accent-color: #007bff; }
#profile .list-wrap .au-list-meta { padding-right: 80px; }
#profile .list-entries > .no-result,
#profile .items-wrapper > .no-result { grid-column: 1 / -1; padding: 15px 0; text-align: center; font-size: 16px; color: var(--color-text-0); }
#profile .no-result a { margin-left: 6px; color: #3db4f2; }
#profile .list-section > .no-result { padding: 15px 0; text-align: center; font-size: 16px; color: var(--color-text-0); }
#profile .au-profile-main .list-section { margin-top: 30px; margin-bottom: 15px; }
#profile .list-title .au-list-count { font-size: 13px; color: var(--color-text); margin-left: 4px; }
#profile .list-title .au-more { float: right; margin-top: 7px; font-size: 12px; font-weight: 600; color: #3db4f2; }
#profile .list-title .au-more:hover { color: var(--color-text-0); text-decoration: none; }

/* Entry card (owner menu, folder label). */
#profile .entry-card .au-entry-cover-link { display: block; height: 100%; }
#profile .entry-card:hover .title { color: #3db4f2; }
/* CMS scores have decimals ("8.40"): the score cell sizes to its content. */
#profile .entry-card .score { width: auto; white-space: nowrap; }
#profile .au-wl-menu { position: absolute; top: 8px; right: 8px; z-index: 4; }
#profile .au-wl-menu .edit-list { position: static; display: none; color: #fff; text-decoration: none; }
#profile .entry-card:hover .au-wl-menu .edit-list,
#profile .au-wl-menu.show .edit-list,
#profile .au-wl-menu .edit-list:focus { display: block; }
#profile .au-wl-menu .dropdown-menu { min-width: 170px; margin-top: 4px; }
#profile .au-wl-menu .dropdown-header { padding: 4px 27px 6px; font-size: 11px; font-weight: 700; color: var(--color-text); text-transform: uppercase; }
#profile .au-wl-menu .dropdown-item { cursor: pointer; }
#profile .au-wl-menu .au-wl-remove { color: #dc3545; }
#profile .au-wl-menu .au-wl-remove i { color: #dc3545; }
#profile .wl-busy { opacity: .5; pointer-events: none; }
#profile .au-wl-folder { display: none; position: absolute; top: 8px; left: 8px; z-index: 3; max-width: calc(100% - 46px); padding: 3px 5px 1px; border-radius: 3px; background: #3db4f2; color: #fff; font-size: 10px; font-weight: 700; line-height: 1.3; text-transform: uppercase; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#profile .au-wl-folder.au-wl-folder-shown { display: block; }
#profile .entry-card[data-folder="5"] .au-wl-folder, #profile .entry-card[data-au-folder="5"] .au-wl-folder { background: #4cca51; }
#profile .entry-card[data-folder="2"] .au-wl-folder, #profile .entry-card[data-au-folder="2"] .au-wl-folder { background: #f2870d; }
#profile .entry-card[data-folder="4"] .au-wl-folder, #profile .entry-card[data-au-folder="4"] .au-wl-folder { background: #c4213f; }
#profile .entry-card[data-folder="3"] .au-wl-folder, #profile .entry-card[data-au-folder="3"] .au-wl-folder { background: #9256f3; }
@media (max-width: 767px) { #profile .au-wl-menu .edit-list { display: block; } }
@media (max-width: 500px) {
    #profile .entry-card .au-entry-cover-link { height: auto; }
    #profile .entry-card .progress, #profile .entry-card .score { font-size: 11px; padding: 8px; }
    #profile .entry-card .title { padding: 8px 8px 28px; }
}

/* Table view: the same cards drawn as TableSection rows. */
#profile .au-anime-list .list-head { display: none; }
#profile .au-view-table .list-head { display: flex; }
#profile .au-view-table .list-entries { display: block; background: var(--color-background-1); border-radius: 0 0 6px 6px; }
#profile .au-view-table .entry-card { display: flex; align-items: center; height: auto; width: 100%; border-top: 1px solid var(--color-divider); }
#profile .au-view-table .entry-card:hover { background: #3db4f2; }
#profile .au-view-table .entry-card:hover .title,
#profile .au-view-table .entry-card:hover .progress,
#profile .au-view-table .entry-card:hover .score,
#profile .au-view-table .entry-card:hover .au-wl-folder { color: #fff; }
#profile .au-view-table .au-entry-cover-link { flex: none; width: 40px; height: 40px; margin-left: 20px; }
#profile .au-view-table .entry-card .cover { width: 40px; height: 40px; border-radius: 3px; }
#profile .au-view-table .entry-card .cover:before { display: none; }
#profile .au-view-table .entry-card .title { position: static; flex: 5; min-width: 0; padding: 18px 20px; background: none; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--color-text); }
#profile .au-view-table .entry-card .progress,
#profile .au-view-table .entry-card .score { position: static; flex: 1; width: auto; padding: 18px 20px; text-align: center; font-size: 14px; color: var(--color-text); }
/* TableSection's column order: Title · Score · Progress · Type (status). */
#profile .au-view-table .entry-card .score { order: 1; }
#profile .au-view-table .entry-card .progress { order: 2; }
#profile .au-view-table .entry-card .au-wl-folder { order: 3; }
#profile .au-view-table .entry-card .score > div { float: none !important; display: inline-block; padding: 0 3px 0 0 !important; }
#profile .au-view-table .au-wl-folder,
#profile .au-view-table .au-wl-folder.au-wl-folder-shown { display: block; position: static; flex: 1; max-width: none; padding: 18px 20px; background: none !important; color: var(--color-text); font-size: 14px; font-weight: 600; text-transform: none; text-align: center; white-space: normal; }
#profile .au-view-table .au-wl-menu { top: 50%; left: 20px; right: auto; transform: translateY(-50%); }
#profile .au-view-table .au-wl-menu .edit-list { display: none; width: 40px; height: 40px; padding: 0 9px 0 0; border-radius: 3px; background: #2399d4; line-height: 40px; text-align: right; font-size: 18px; }
#profile .au-view-table .entry-card:hover .au-wl-menu .edit-list,
#profile .au-view-table .au-wl-menu.show .edit-list { display: block; }
#profile .au-view-table .au-wl-menu .edit-list i { line-height: 40px; }
@media (max-width: 500px) {
    #profile .au-view-table .list-head .score, #profile .au-view-table .list-head .progress, #profile .au-view-table .list-head .status,
    #profile .au-view-table .entry-card .progress, #profile .au-view-table .entry-card .score,
    #profile .au-view-table .au-wl-folder, #profile .au-view-table .au-wl-folder.au-wl-folder-shown { display: none; }
    #profile .au-view-table .entry-card .title { padding: 14px; font-size: 13px !important; }
}
@media (max-width: 767px) {
    #profile .list-wrap { margin-top: 30px; }
    #profile .au-anime-list #search-wrapper { margin-bottom: 0; min-height: 35px; }
}

/* ── 4. Continua a guardare (home panel + LayoutItems grid) ────────────── */
#profile .au-box-header .cw-toolbar > button { padding: 0; border: 0; background: none; color: #3db4f2; font: inherit; cursor: pointer; }
#profile .au-box-header .cw-toolbar > button:hover { color: var(--color-text-0); }
#profile .au-box-header .cw-toolbar > button:disabled { opacity: .5; }
#profile .au-cw-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(143px, 1fr)); gap: 0 20px; margin-bottom: 8px; }
#profile .au-cw-filters .au-list-search { grid-column: 1 / -1; max-width: 320px; margin-bottom: 12px; }
/* In a bg-1 box the bg-1 fields would vanish: the modal variant's page background (app.css `.modal .multiselect…`). */
#profile .au-cw-filters .search,
#profile .au-cw-filters .search:focus,
#profile .au-cw-filters .search-icon,
#profile .au-cw-filters .multiselect__tags,
#profile .au-cw-filters .multiselect__single,
#profile .au-cw-filters .multiselect__content-wrapper { background: var(--color-background) !important; }
#profile .au-cw-filters .multiselect__tags { border-radius: 5px; }
#profile .au-cw-grid .item { position: relative; }
#profile .au-cw-grid .item .cover { height: auto; }
#profile .au-cw-grid .status { bottom: 3px; }
#profile .au-cw-progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: rgba(255, 255, 255, .25); border-radius: 0 0 3px 3px; overflow: hidden; }
#profile .au-cw-progress > span { display: block; height: 100%; background: #007bff; }
#profile .au-cw-time { margin-top: 2px; font-size: 12px; color: var(--color-text); }
#profile .cw-remove.list-button { position: absolute; top: 6px; right: 6px; z-index: 3; float: none; width: 22px; height: 22px; padding: 0; border: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; cursor: pointer; transition: transform .1s; }
#profile .cw-remove.list-button:hover { transform: scale(1.1); }
#profile .cw-remove.list-button:hover i { color: #dc3545 !important; }
#profile .cw-remove.is-busy { opacity: .5; pointer-events: none; }

/* ── 5. Notifiche ──────────────────────────────────────────────────────── */
#profile .au-noti .au-noti-actions { float: right; display: flex; gap: 8px; margin: -6px 0; }
#profile .au-tabs { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 15px; border-bottom: 1px solid var(--color-divider); scrollbar-width: none; }
#profile .au-tabs .nav-item { margin-right: 16px; }
#profile .au-tabs .nav-link,
#profile .au-subtabs .nav-link { padding: 4px 8px 6px; font-size: 15px; font-weight: 600; color: var(--color-text); border-bottom: 2px solid transparent; white-space: nowrap; }
#profile .au-tabs .nav-link.active, #profile .au-tabs .nav-link:hover,
#profile .au-subtabs .nav-link.active, #profile .au-subtabs .nav-link:hover { color: #3db4f2; }
#profile .au-tabs .nav-link.active, #profile .au-subtabs .nav-link.active { border-bottom-color: #3db4f2; }
#profile .au-tabs .badge { margin-left: 4px; background: #3db4f2; color: #fff; font-size: 10px; vertical-align: 1px; }
#profile .au-subtabs { margin: 0 0 20px; border-bottom: 1px solid var(--color-divider); }
#profile .au-subtabs .nav-item { margin-right: 16px; }
#profile .au-noti-list { list-style: none; margin: 0 -24px; padding: 0; border-top: 1px solid var(--color-divider); }
#profile .au-noti-list .noti-row { position: relative; border-bottom: 1px solid var(--color-divider); }
#profile .au-noti-link { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 10px 20px; border-left: 3px solid transparent; color: var(--color-text); text-decoration: none; }
#profile a.au-noti-link:hover { background: var(--color-background); }
#profile .noti-row.new .au-noti-link { border-left-color: #3db4f2; }
#profile .noti-row.old .au-noti-link { opacity: .6; }
#profile .noti-row.au-noti-acts .au-noti-link { padding-right: 84px; }
#profile .au-noti-thumb { width: 40px; height: 56px; border-radius: 3px; object-fit: cover; background: #2c2c2c; }
#profile .au-noti-avatar { height: 40px; border-radius: 50%; }
#profile .au-noti-icon { height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--color-background-0); color: #3db4f2; font-size: 16px; }
#profile .au-noti-text { display: flex; flex-direction: column; min-width: 0; }
#profile .au-noti-title { font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--color-text-0); overflow-wrap: anywhere; }
#profile .au-noti-lead { color: #3db4f2; }
#profile .au-noti-new { display: inline-block; margin-left: 6px; padding: 2px 5px 0; border-radius: 3px; background: #3db4f2; color: #fff; font-size: 9px; text-transform: uppercase; vertical-align: 2px; }
#profile .noti-row.old .au-noti-new { display: none; }
#profile .au-noti-body { font-size: 12px; font-weight: 400; line-height: 1.4; margin-top: 2px; overflow-wrap: anywhere; }
#profile .au-noti-time { font-size: 11px; font-weight: 400; margin-top: 3px; }
#profile .noti-row-actions { position: absolute; top: 50%; right: 18px; z-index: 2; display: flex; gap: 8px; transform: translateY(-50%); }
#profile .noti-row-actions .list-button { float: none; width: 26px; height: 26px; padding: 0; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; background: var(--color-background); transition: transform .1s; }
#profile .noti-row-actions .list-button:hover { transform: scale(1.1); }
#profile .noti-row-actions .noti-mark:hover i { color: #3db4f2 !important; }
#profile .noti-row-actions .noti-delete:hover i { color: #dc3545 !important; }
#profile .au-noti-empty { padding: 30px 0; }
#profile .au-noti .pre-pagination { margin-top: 20px; }
@media (max-width: 500px) {
    #profile .au-noti .au-noti-actions { float: none; margin: 14px 0 0; flex-wrap: wrap; }
    #profile .au-noti-list { margin: 0 -12px; }
    #profile .au-noti-link { padding: 10px 12px; }
    #profile .noti-row.au-noti-acts .au-noti-link { padding-right: 76px; }
    #profile .noti-row-actions { right: 10px; }
}

/* ── 6. Avatar picker (themed modal) ───────────────────────────────────── */
.au-avatar-modal .modal-content { font-size: 14px; }
.au-avatar-modal .modal-header { padding: 25px 40px 0; align-items: center; }
.au-avatar-modal .modal-title { font-size: 25px; font-weight: 400; color: var(--color-text-0); }
.au-avatar-modal .close { color: var(--color-text-0); opacity: 1; text-shadow: none; }
.au-avatar-modal .modal-body { padding: 30px 40px; }
.au-avatar-modal .au-avatar-groups { margin-top: 0; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; white-space: nowrap; padding-bottom: 2px; border-bottom: 1px solid var(--color-divider); scrollbar-width: thin; }
.au-avatar-modal .au-avatar-groups .nav-link { cursor: pointer; }
.au-avatar-modal .au-avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, 80px); gap: 15px; justify-content: space-between; max-height: 46vh; overflow-y: auto; padding: 20px 4px 4px; }
.au-avatar-modal .au-avatar-grid .item span { position: relative; display: block; width: 80px; height: 80px; border-radius: 50%; cursor: pointer; background: var(--color-background); }
.au-avatar-modal .au-avatar-grid .item img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.au-avatar-modal .au-avatar-grid .item span:hover { box-shadow: 0 0 0 3px rgba(61, 180, 242, .5); }
.au-avatar-modal .au-avatar-grid .item span.active { box-shadow: 0 0 0 3px #3db4f2; }
.au-avatar-modal .au-avatar-grid .item i { display: none; position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: #3db4f2; color: #fff; font-size: 11px; line-height: 22px; text-align: center; }
.au-avatar-modal .au-avatar-grid .item span.active i { display: block; }
.au-avatar-modal .au-avatar-foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 20px; }
.au-avatar-modal .au-avatar-foot .example { font-size: 12px; color: var(--color-text); }
@media (max-width: 575px) {
    .au-avatar-modal .modal-header { padding: 20px 20px 0; }
    .au-avatar-modal .modal-body { padding: 20px; }
    .au-avatar-modal .au-avatar-grid { grid-template-columns: repeat(auto-fill, 64px); gap: 12px; }
    .au-avatar-modal .au-avatar-grid .item span { width: 64px; height: 64px; }
}

/* ── 7. Importa / Esporta ──────────────────────────────────────────────── */
#profile .au-port-file { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--color-divider); }
#profile .au-port-loading { margin-left: 10px; font-size: 13px; color: var(--color-text); }
#profile .au-al-feedback { margin-top: 12px; }
#profile .au-al-feedback .alert ul { margin-top: 6px; }
