/* Profilarket och temaväljaren (ProfileView, ThemePicker). */

.profile .form {
    gap: 12px;
}

.profile .verified {
    color: var(--positive-text);
    font-size: 20px;
}

/* Bildredigeraren (AvatarEditor): bilden till vänster och knapparna bredvid, i ett kort. */
.avatar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
}

.avatar-frame {
    position: relative;
    flex: none;
    display: block;
    border-radius: 50%;
}

.avatar-busy {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
}

.avatar-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.avatar-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    color: var(--accent);
}

.avatar-action.danger {
    color: var(--sos-text);
}

.avatar-action:disabled {
    opacity: 0.5;
}

.avatar-progress {
    padding-bottom: 12px;
    font: var(--footnote);
    color: var(--secondary);
}

.profile-end {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}

.profile-end .link-button {
    min-height: 44px;
    color: var(--sos-text);
}

.build-label {
    text-align: center;
    font: var(--caption);
    color: var(--secondary);
    user-select: all;
}

/* Temaväljaren: tre rutor per rad, var och en med en liten förhandsbild. */
.theme-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 12px;
    padding: 14px 0;
}

.theme-tile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    text-align: center;
}

.theme-tile .frame {
    position: relative;
    padding: 3px;
    border-radius: 15px;
    border: 2px solid transparent;
}

.theme-tile[aria-checked="true"] .frame {
    border-color: var(--accent);
}

.theme-tile .label {
    font: var(--footnote);
    color: var(--secondary);
}

.theme-tile[aria-checked="true"] .label {
    font-weight: 600;
    color: var(--label);
}

.theme-tile .tick {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-fill);
    color: #fff;
    font-size: 12px;
    box-shadow: 0 0 0 1.5px #fff;
}

.theme-tile .tick .icon {
    stroke-width: 3.4;
}

.theme-swatch {
    position: relative;
    display: flex;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 0 0.5px var(--separator);
    isolation: isolate;
}

.theme-swatch .half {
    position: relative;
    flex: 1;
}

.theme-swatch .half.light {
    background: #f2f2f7;
}

.theme-swatch .half.dark {
    background: #000;
}

.theme-swatch .mini-card {
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 9px;
    height: 16px;
    border-radius: 4px;
    background: #fff;
}

.theme-swatch .half.dark .mini-card {
    background: #1c1c1e;
}

.theme-swatch .mini-card.glass {
    left: 10px;
    right: 10px;
    background: rgba(28, 28, 30, 0.6);
    box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 1;
}

/* Nio färgfält i ett rutnät, mjukade till ett – samma färger som bakgrunden. */
.theme-swatch .mesh {
    position: absolute;
    inset: -12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    filter: blur(12px);
    z-index: 0;
}

/* ---------- Undersidorna: e-post, lösenord, enheter, notiser, export, radera kontot ---------- */

.profile-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-page > .sheet-lead {
    padding-bottom: 2px;
}

.profile-page > .footnote {
    padding-top: 0;
}

/* Ett besked i ett kort: rubrik med ikon och en förklaring under. */
.result-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 0;
}

.result-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font: var(--subheadline);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.result-card h3 .icon {
    flex: none;
}

.result-card.positive h3 {
    color: var(--positive-text);
}

.result-card p {
    font: var(--footnote);
    color: var(--secondary);
}

.result-card .button {
    margin-top: 6px;
}

.card-note {
    display: flex;
    gap: 8px;
    padding: 14px 0;
    font: var(--footnote);
    color: var(--secondary);
}

.card-note .icon {
    flex: none;
    margin-top: 2px;
}

.session-row {
    min-height: 58px;
}

.session-row .title {
    font: var(--subheadline);
    font-weight: 600;
}

.session-row .detail {
    font: var(--footnote);
    color: var(--secondary);
}

.card > .row.divided {
    border-top: 0.5px solid var(--separator);
}

/* Notiser i den här webbläsaren: frågan och läget, överst på sidan Notiser. */
.push-status {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.push-status .title {
    display: flex;
    align-items: center;
    gap: 8px;
    font: var(--subheadline);
    font-weight: 600;
}

.push-status .title .icon {
    flex: none;
    font-size: 17px;
    color: var(--secondary);
}

.push-status .detail {
    font: var(--footnote);
    color: var(--secondary);
}
