/* "Moj profil" and the color skins. A skin swaps the accent tokens the whole
   app is drawn with (buttons, links, active items, focus rings), in light and
   dark; the default Codux skin is the indigo in styles.css. */
body[data-skin="okean"] { --indigo: #0284C7; --indigo-hover: #0369A1; --indigo-soft: #E0F2FE; --indigo-border: #BAE6FD; --indigo-deep: #0C4A6E; --shadow-indigo: 0 4px 12px rgba(2, 132, 199, 0.22); }
body[data-skin="suma"] { --indigo: #059669; --indigo-hover: #047857; --indigo-soft: #ECFDF5; --indigo-border: #A7F3D0; --indigo-deep: #064E3B; --shadow-indigo: 0 4px 12px rgba(5, 150, 105, 0.22); }
body[data-skin="zalazak"] { --indigo: #EA580C; --indigo-hover: #C2410C; --indigo-soft: #FFF7ED; --indigo-border: #FED7AA; --indigo-deep: #7C2D12; --shadow-indigo: 0 4px 12px rgba(234, 88, 12, 0.22); }
body[data-skin="lavanda"] { --indigo: #9333EA; --indigo-hover: #7E22CE; --indigo-soft: #FAF5FF; --indigo-border: #E9D5FF; --indigo-deep: #581C87; --shadow-indigo: 0 4px 12px rgba(147, 51, 234, 0.22); }
body[data-skin="grafit"] { --indigo: #334155; --indigo-hover: #1E293B; --indigo-soft: #F1F5F9; --indigo-border: #CBD5E1; --indigo-deep: #0F172A; --shadow-indigo: 0 4px 12px rgba(51, 65, 85, 0.22); }
body[data-theme="dark"][data-skin="okean"] { --indigo: #38BDF8; --indigo-hover: #7DD3FC; --indigo-soft: rgba(56, 189, 248, 0.14); --indigo-border: rgba(56, 189, 248, 0.34); }
body[data-theme="dark"][data-skin="suma"] { --indigo: #34D399; --indigo-hover: #6EE7B7; --indigo-soft: rgba(52, 211, 153, 0.14); --indigo-border: rgba(52, 211, 153, 0.34); }
body[data-theme="dark"][data-skin="zalazak"] { --indigo: #FB923C; --indigo-hover: #FDBA74; --indigo-soft: rgba(251, 146, 60, 0.14); --indigo-border: rgba(251, 146, 60, 0.34); }
body[data-theme="dark"][data-skin="lavanda"] { --indigo: #C084FC; --indigo-hover: #D8B4FE; --indigo-soft: rgba(192, 132, 252, 0.14); --indigo-border: rgba(192, 132, 252, 0.34); }
body[data-theme="dark"][data-skin="grafit"] { --indigo: #64748B; --indigo-hover: #94A3B8; --indigo-soft: rgba(148, 163, 184, 0.14); --indigo-border: rgba(148, 163, 184, 0.34); }
/* Tokens defined from --indigo follow the skin too. */
body[data-skin] { --accent: var(--indigo); --accent2: var(--indigo-hover); --blue: var(--indigo); }

/* ── Page ── */
.profile { flex: 1; min-height: 0; padding: 28px 36px 64px; overflow-y: auto; }
.profile-page { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin: 0 auto; }
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.profile-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, var(--indigo), var(--indigo-deep)); color: #fff; font-size: 24px; font-weight: 800; box-shadow: var(--shadow-indigo); }
.profile-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.profile-head p { margin: 2px 0 0; color: var(--fg-3); font-size: 13.5px; }

.profile-card { padding: 20px 22px 22px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.profile-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 16px; font-weight: 750; }
.profile-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: var(--indigo-soft); color: var(--indigo); }
.profile-form .form-row { gap: 14px; }
.profile-hint { margin: 6px 0 0; color: var(--fg-4); font-size: 12px; line-height: 1.45; }
.profile-sub { margin: 0 0 12px; color: var(--fg-3); font-size: 13.5px; line-height: 1.5; }
.profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.profile-actions .btn-secondary { display: inline-flex; align-items: center; gap: 8px; }
.profile-status { color: var(--fg-3); font-size: 13px; }
.profile-status.is-bad { color: var(--rose); font-weight: 600; }
.profile-logout:hover { border-color: var(--rose); color: var(--rose); }
.profile-inline select { max-width: 240px; }

.profile-themes { display: inline-flex; gap: 4px; margin-bottom: 16px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.profile-theme { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border: 0; border-radius: 9px; background: none; color: var(--fg-2); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.profile-theme.is-selected { background: var(--surface); color: var(--indigo); box-shadow: 0 1px 3px rgb(0 0 0 / 0.1); }
.profile-theme:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }

.profile-skins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.profile-skin { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 14px 15px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--fg); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.profile-skin:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.profile-skin:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.profile-skin.is-selected { border-color: var(--indigo); box-shadow: 0 0 0 1px var(--indigo); }
.profile-skin-dots { display: inline-flex; gap: 4px; margin-bottom: 6px; }
.profile-skin-dots i { width: 12px; height: 12px; border-radius: 50%; }
.profile-skin strong { font-size: 14px; }
.profile-skin span:not(.profile-skin-dots):not(.profile-skin-check) { color: var(--fg-3); font-size: 12px; line-height: 1.4; }
.profile-skin-check { position: absolute; top: 12px; right: 12px; display: none; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--indigo); color: #fff; }
.profile-skin.is-selected .profile-skin-check { display: inline-flex; }

/* The sidebar's profile button shows it is the open page. */
#profileBtn.is-active { border-color: var(--indigo-border); background: var(--indigo-soft); color: var(--indigo); }

@media (max-width: 860px) {
  .profile { padding: 16px 16px 48px; }
  .profile-card { padding: 16px; }
  .profile-skins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .profile-skin { transition: none; }
  .profile-skin:hover { transform: none; }
}

.profile-check { margin-bottom: 10px; font-weight: 600; }
.profile-list { margin: -4px 0 12px; padding-left: 20px; color: var(--fg-2); font-size: 13.5px; line-height: 1.7; }
.profile-list li::marker { color: var(--indigo); }
.profile-status.is-ok { color: var(--emerald); font-weight: 600; }
