/* ==========================================================
   Application screens: sign-in, accreditation portal, admin panel
   ========================================================== */

/* ---------- Sign in ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.auth-side { position: relative; background: var(--lapis-deep); color: #fff; padding: var(--s-7) var(--s-8); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.auth-side::before { content: ""; position: absolute; inset: 0; background-image: var(--tile); background-size: 80px 80px; opacity: .07; z-index: -1; }
.auth-side .brand { color: #fff; }
.auth-side .brand-text span { color: #9FB0D0; }
.auth-side h1 { color: #fff; font-weight: 400; font-size: clamp(2rem, 3.4vw, 3rem); margin-top: auto; }
.auth-side > p { color: #C9D4EA; }
.auth-steps { list-style: none; padding: 0; margin: var(--s-6) 0 0; display: grid; gap: 0; counter-reset: s; }
.auth-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: var(--s-3); padding: var(--s-4) 0; border-top: 1px solid rgba(255,255,255,.12); color: #C9D4EA; font-size: .92rem; opacity: 0; animation: fadeUp .6s var(--ease) forwards; }
.auth-steps li:nth-child(1) { animation-delay: .3s; } .auth-steps li:nth-child(2) { animation-delay: .4s; } .auth-steps li:nth-child(3) { animation-delay: .5s; } .auth-steps li:nth-child(4) { animation-delay: .6s; }
.auth-steps li::before { content: counter(s); width: 30px; height: 30px; border: 1px solid #B08A3E; color: #D7C08A; display: grid; place-items: center; border-radius: 50%; font-family: var(--f-display); }
.auth-steps b { color: #fff; display: block; font-weight: 600; }
.auth-side .rosette-bg { position: absolute; right: -160px; top: -160px; width: 520px; opacity: .25; z-index: -1; }
.auth-side .rosette-bg g { transform-origin: 50% 50%; animation: spin 180s linear infinite; }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: var(--s-7) clamp(16px, 6vw, 96px); position: relative; }
.auth-main .back { position: absolute; top: var(--s-5); left: clamp(16px, 6vw, 96px); font-size: .9rem; text-decoration: none; color: var(--muted); }
.auth-main .back:hover { color: var(--lapis); }
.auth-card { width: 100%; max-width: 440px; animation: rise .6s var(--ease); }
.auth-card h2 { margin-bottom: 6px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--marble); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px; margin: var(--s-5) 0; position: relative; }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 10px 6px; font-weight: 600; font-size: .88rem; color: var(--muted); border-radius: var(--r-sm); transition: color .25s; }
.seg button[aria-selected="true"] { color: #fff; }
.seg .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); background: var(--lapis); border-radius: var(--r-sm); transition: transform .4s var(--ease); }
.auth-form { display: grid; gap: var(--s-4); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 70px; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--lapis); font-size: .82rem; font-weight: 600; padding: 6px 8px; }
.form-error { display: none; padding: 12px 14px; background: #FDECEA; color: var(--err); border-left: 3px solid var(--err); font-size: .88rem; }
.form-error.show { display: block; animation: shake .35s; }
.demo { margin-top: var(--s-6); padding: var(--s-4); border: 1px dashed var(--line); border-radius: var(--r-md); font-size: .84rem; color: var(--muted); }
.demo b { color: var(--ink); }
.demo button { border: 0; background: none; color: var(--lapis); font-weight: 600; text-decoration: underline; padding: 0; font-size: .84rem; }
.demo-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin-top: 8px; }

/* ---------- App shell ---------- */
.app { min-height: 100vh; display: grid; grid-template-columns: 264px 1fr; background: var(--marble); }
.sidebar { background: var(--lapis-deep); color: #C9D4EA; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { color: #fff; padding: var(--s-5); border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar .brand svg { width: 40px; height: 40px; }
.sidebar .brand-text b { font-size: .95rem; }
.sidebar .brand-text span { color: #9FB0D0; }
.side-menu { list-style: none; margin: 0; padding: var(--s-4) var(--s-3); display: grid; gap: 2px; }
.side-menu .group { font-size: .74rem; color: #7F90B2; padding: var(--s-4) var(--s-3) 6px; }
.side-menu button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: none; color: #C9D4EA; border-radius: var(--r-sm); font-size: .9rem; text-align: left; position: relative; transition: background .2s, color .2s; }
.side-menu button svg { width: 18px; height: 18px; flex-shrink: 0; }
.side-menu button:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-menu button[aria-current="true"] { background: rgba(255,255,255,.1); color: #fff; }
.side-menu button[aria-current="true"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; background: var(--gold); border-radius: 0 2px 2px 0; animation: barIn .3s var(--ease); }
@keyframes barIn { from { transform: scaleY(0); } to { transform: none; } }
.side-menu .count { margin-left: auto; font-size: .72rem; background: var(--gold); color: #fff; border-radius: 999px; padding: 1px 7px; }
.sidebar .me { margin-top: auto; padding: var(--s-4) var(--s-5); border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.sidebar .me b { color: #fff; display: block; }
.sidebar .me button { margin-top: 10px; }
.role-pill { display: inline-block; font-size: .7rem; padding: 2px 8px; border-radius: 999px; background: rgba(176,138,62,.25); color: #E9D7A8; margin-top: 4px; }

.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-6); background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.topbar h1 { font-size: 1.5rem; margin: 0; }
.topbar .spacer { flex: 1; }
.topbar .sb-toggle { display: none; }
.content { padding: var(--s-6); }   /* fills the whole width next to the sidebar */
.view { animation: fadeUp .4s var(--ease); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin-bottom: var(--s-6); }
.stat { background: var(--paper); border: 1px solid var(--line); padding: var(--s-5); border-radius: var(--r-sm); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c, var(--lapis)); }
.stat span { font-size: .84rem; color: var(--muted); }
.stat b { display: block; font-family: var(--f-display); font-size: 2.2rem; font-weight: 500; color: var(--lapis-deep); line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: .78rem; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: var(--s-5); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1.2rem; }
.panel-body { padding: var(--s-5); }
.panel .table-wrap { border: 0; border-radius: 0; }
.filters { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.filters select, .filters input { width: auto; min-width: 160px; padding: 8px 10px; font-size: .88rem; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.draft { background: #EEF0F4; color: #5B6577; }
.status.submitted { background: var(--lapis-soft); color: var(--lapis); }
.status.review { background: #FFF6E5; color: var(--warn); }
.status.approved { background: #E7F5EC; color: var(--ok); }
.status.correction { background: #FFF0E0; color: #B54708; }
.status.rejected { background: #FDECEA; color: var(--err); }
.status.published { background: #E7F5EC; color: var(--ok); }

table.data tr { transition: background .2s; }
table.data tbody tr:hover { background: #FAFBFD; }
table.data td .person { display: flex; gap: 12px; align-items: center; }
table.data td .avatar { width: 38px; height: 46px; border-radius: 2px; background: var(--lapis-soft); color: var(--lapis); display: grid; place-items: center; font-weight: 700; font-size: .8rem; overflow: hidden; flex-shrink: 0; }
table.data td .avatar img { width: 100%; height: 100%; object-fit: cover; }
table.data td small { display: block; color: var(--muted); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.link-btn { border: 0; background: none; color: var(--lapis); font-weight: 600; font-size: .85rem; padding: 4px 6px; border-radius: var(--r-sm); }
.link-btn:hover { background: var(--lapis-soft); }
.link-btn.danger { color: var(--err); }
.empty-state { text-align: center; padding: var(--s-8) var(--s-5); }
.empty-state svg { width: 56px; height: 56px; margin: 0 auto var(--s-4); color: var(--turq); }

/* Quota meter */
.quota { display: flex; align-items: center; gap: var(--s-5); padding: var(--s-5); background: var(--gold-soft); border: 1px solid #E9D7A8; border-radius: var(--r-sm); margin-bottom: var(--s-5); flex-wrap: wrap; }
.quota b.big { font-family: var(--f-display); font-size: 2rem; font-weight: 500; color: #7A5D22; }
.meter { flex: 1; min-width: 200px; height: 8px; background: rgba(122,93,34,.15); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--gold); border-radius: 999px; transition: width 1s var(--ease); }

/* ---------- Wizard ---------- */
.wizard-steps { display: flex; gap: 0; padding: var(--s-4) var(--s-6); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.wizard-steps li { list-style: none; display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.wizard-steps li + li::before { content: ""; width: 28px; height: 1px; background: var(--line); margin: 0 10px; }
.wizard-steps li span { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: .78rem; font-weight: 600; transition: all .3s var(--ease); }
.wizard-steps li.current { color: var(--lapis); font-weight: 600; }
.wizard-steps li.current span { background: var(--lapis); border-color: var(--lapis); color: #fff; transform: scale(1.08); }
.wizard-steps li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.wizard-progress { height: 3px; background: var(--line); }
.wizard-progress i { display: block; height: 100%; background: var(--gold); transition: width .5s var(--ease); }
.step { display: none; }
.step.active { display: block; animation: stepIn .45s var(--ease); }
.step.active.back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.step h4 { font-family: var(--f-body); font-weight: 600; font-size: 1rem; margin: var(--s-5) 0 var(--s-3); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.step h4:first-child { margin-top: 0; }
.cond { display: none; }
.cond.show { display: contents; }
.review-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.review-list div { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.review-list div:nth-child(odd) { border-right: 1px solid var(--line); }
.review-list dt { color: var(--muted); font-size: .78rem; }
.review-list dd { margin: 0; font-weight: 500; }
.badge-preview { width: 240px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; box-shadow: var(--shadow); flex-shrink: 0; animation: zoomIn .5s var(--ease); }
.badge-preview .bp-top { background: var(--lapis); color: #fff; padding: 12px; display: flex; gap: 8px; align-items: center; font-size: .72rem; }
.badge-preview .bp-top svg { width: 28px; height: 28px; }
.badge-preview .bp-photo { width: 96px; height: 120px; margin: 14px auto 8px; background: var(--lapis-soft); display: grid; place-items: center; color: var(--lapis); overflow: hidden; }
.badge-preview .bp-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge-preview .bp-name { text-align: center; padding: 0 12px; font-family: var(--f-display); font-size: 1.05rem; line-height: 1.2; }
.badge-preview .bp-pos { text-align: center; font-size: .74rem; color: var(--muted); padding: 4px 12px 10px; }
.badge-preview .bp-cat { padding: 8px; text-align: center; color: #fff; font-weight: 700; font-size: .78rem; }

.check.invalid { color: var(--err); }
.check.invalid input { outline: 2px solid var(--err); outline-offset: 1px; }

/* Detail drawer (admin) */
.drawer { position: fixed; inset: 0; z-index: 400; display: none; }
.drawer.open { display: block; }
.drawer .shade { position: absolute; inset: 0; background: rgba(9,29,62,.5); animation: fade .25s; }
.drawer .sheet { position: absolute; right: 0; top: 0; bottom: 0; width: min(720px, 100%); background: var(--paper); display: flex; flex-direction: column; animation: slideIn .4s var(--ease); }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.drawer .sheet-body { flex: 1; overflow-y: auto; padding: var(--s-6); }
.files-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-3); }

/* Rich text editor (admin) */
.rte { border: 1px solid #C8CFDB; border-radius: var(--r-sm); background: #fff; }
.rte-bar { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--marble); flex-wrap: wrap; }
.rte-bar button { border: 0; background: none; padding: 6px 10px; border-radius: var(--r-sm); font-size: .85rem; }
.rte-bar button:hover { background: #fff; }
.rte textarea { border: 0; border-radius: 0; min-height: 200px; box-shadow: none !important; }
.lang-tabs { display: flex; gap: 4px; margin-bottom: var(--s-3); }
.lang-tabs button { border: 1px solid var(--line); background: #fff; padding: 6px 14px; border-radius: var(--r-sm); font-size: .82rem; font-weight: 600; color: var(--muted); }
.lang-tabs button[aria-selected="true"] { background: var(--lapis); border-color: var(--lapis); color: #fff; }
.lang-tabs button .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--line); margin-left: 6px; vertical-align: middle; }
.lang-tabs button .dot.on { background: var(--flag-green); }
.lang-pane { display: none; }
.lang-pane.active { display: grid; gap: var(--s-4); animation: fade .3s; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; }
.toggle input { position: absolute; opacity: 0; }
.toggle i { width: 38px; height: 22px; background: #C8CFDB; border-radius: 999px; position: relative; transition: background .25s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .25s var(--ease); }
.toggle input:checked + i { background: var(--ok); }
.toggle input:checked + i::after { transform: translateX(16px); }
.toggle input:focus-visible + i { outline: 2px solid var(--turq); outline-offset: 2px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs figure { margin: 0; position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-sm); background: var(--lapis); animation: zoomIn .35s var(--ease); }
.thumbs img, .thumbs svg { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; }
.thumbs input { position: absolute; left: 0; right: 0; bottom: 0; border: 0; border-radius: 0; font-size: .72rem; padding: 4px 6px; background: rgba(255,255,255,.92); }
.audit { list-style: none; padding: 0; margin: 0; font-size: .86rem; }
.audit li { display: grid; grid-template-columns: 150px 120px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.audit time { color: var(--muted); }
.bar-list { display: grid; gap: 10px; }
.bar-list .bl { display: grid; grid-template-columns: 170px 1fr 40px; gap: 12px; align-items: center; font-size: .86rem; }
.bar-list .track { height: 8px; background: var(--marble); border-radius: 999px; overflow: hidden; }
.bar-list .track i { display: block; height: 100%; background: var(--lapis); border-radius: 999px; width: 0; transition: width 1s var(--ease); }
.bar-list b { text-align: right; font-variant-numeric: tabular-nums; }
.lock-note { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--marble); border: 1px solid var(--line); font-size: .86rem; color: var(--muted); border-radius: var(--r-sm); }

@media (max-width: 1000px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: var(--s-6) var(--s-5); }
  .auth-side h1 { margin-top: var(--s-6); }
  .auth-main { padding-top: var(--s-8); }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; z-index: 120; transform: translateX(-100%); transition: transform .35s var(--ease); }
  .sidebar.open { transform: none; box-shadow: 20px 0 60px -20px rgba(0,0,0,.4); }
  .topbar .sb-toggle { display: grid; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .content { padding: var(--s-4); }
  .topbar { padding: var(--s-3) var(--s-4); }
  .topbar h1 { font-size: 1.15rem; }
  .topbar a.btn-ghost { display: none; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: var(--s-2); }
  .stat b { font-size: 1.7rem; }
  .review-list { grid-template-columns: 1fr; }
  .review-list div:nth-child(odd) { border-right: 0; }
  .audit li { grid-template-columns: 1fr; gap: 2px; }
  .bar-list .bl { grid-template-columns: 110px 1fr 30px; }
  .wizard-steps { padding: var(--s-3) var(--s-4); }
  .wizard-steps li:not(.current) em { display: none; }
  .filters select, .filters input { min-width: 0; flex: 1; }
}

/* ==========================================================
   Language switch inside the applications, role backgrounds,
   national ornament in the sidebar
   ========================================================== */
.app-lang { gap: 2px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 2px; background: var(--paper); }
.app-lang button { color: var(--muted); padding: 5px 9px; }
.app-lang button[aria-pressed="true"] { background: var(--lapis); color: #fff; }
.app-lang button:hover:not([aria-pressed="true"]) { background: var(--lapis-soft); color: var(--lapis); }
.auth-main .app-lang { position: absolute; top: var(--s-5); right: clamp(16px, 6vw, 96px); }
/* Keep the focus ring inside the segmented control so it does not overlap its border */
.seg button:focus-visible { outline: 2px solid var(--turq); outline-offset: -3px; }

/* Sign-in: a background for each account type, cross-faded when the tab changes */
.auth-side .role-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1s var(--ease), transform 6s var(--ease); }
.auth-side .role-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,29,62,.55) 0%, rgba(9,29,62,.88) 55%, rgba(9,29,62,.97) 100%); }
.auth[data-role="delegation"] .role-bg[data-r="delegation"].wiki-on,
.auth[data-role="media"] .role-bg[data-r="media"].wiki-on,
.auth[data-role="staff"] .role-bg[data-r="staff"].wiki-on { opacity: .55; transform: scale(1); }
.auth-side .role-mark { position: absolute; right: var(--s-7); bottom: var(--s-7); width: 150px; height: 150px; z-index: -1; color: #D7C08A; opacity: .14; transition: transform .6s var(--ease); }
.auth-side .role-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(.8) rotate(-8deg); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.auth[data-role="delegation"] .role-mark [data-r="delegation"], .auth[data-role="media"] .role-mark [data-r="media"], .auth[data-role="staff"] .role-mark [data-r="staff"] { opacity: 1; transform: none; }
.auth-side .role-tag { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s-4); font-size: .82rem; color: #D7C08A; }
.auth-side .role-tag::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.auth-side .flag-stripe { position: absolute; left: 0; right: 0; bottom: 0; }

/* Sidebar: girih lattice and a suzani rosette behind the menu */
.sidebar { isolation: isolate; }
.sidebar::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--tile); background-size: 64px 64px; opacity: .06; }
.sidebar::after { content: ""; position: absolute; left: -90px; bottom: 60px; width: 300px; height: 300px; z-index: -1; pointer-events: none; background: var(--suzani) center / contain no-repeat; opacity: .14; animation: spin 240s linear infinite; }
.sidebar .brand { background: linear-gradient(90deg, rgba(176,138,62,.12), transparent); }

/* Main area: a faint photograph and lattice at the top of each role's workspace */
.main { position: relative; isolation: isolate; }
.app-photo { position: absolute; left: 0; right: 0; top: 0; height: 320px; z-index: -1; pointer-events: none; background-size: cover; background-position: center 35%; opacity: 0; transition: opacity 1.4s var(--ease); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, transparent 100%); }
.app-photo.wiki-on { opacity: .16; }
.main::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 320px; z-index: -1; pointer-events: none; background-image: var(--girih-gold); background-size: 96px 96px; opacity: .06; -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent); }
.topbar { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }
.stat { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat::before { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; background: var(--suzani) center / contain no-repeat; opacity: .1; transition: transform .8s var(--ease); }
.stat:hover::before { transform: rotate(45deg); }
.panel { transition: box-shadow .3s var(--ease); }
.panel:hover { box-shadow: 0 1px 2px rgba(15,44,92,.04), 0 10px 30px -18px rgba(15,44,92,.25); }
@media (max-width: 1000px) {
  .auth-side .role-mark { width: 100px; height: 100px; right: var(--s-5); bottom: var(--s-5); }
}
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .auth-main .app-lang { top: var(--s-3); }
}
@media (prefers-reduced-motion: reduce) { .sidebar::after { animation: none; } }
