/* SWL app screens: sign-in, certificates, portfolio. */
.swl-app { background: #FBFAFE; min-height: 60vh; }
.app-signin { background: #fff; border: 2px solid #ECEBF5; border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.app-signin form { display: flex; flex-direction: column; gap: 10px; }
.app-signin form p { margin: 0; display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.app-signin form .login-remember label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.app-signin input[type=text], .app-signin input[type=password], .app-form input[type=text], .app-form input[type=url], .app-form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid #E6E5F0; border-radius: 14px; background: #fff; color: #232161; }
.app-signin input:focus, .app-form input:focus, .app-form textarea:focus { outline: none; border-color: #784899; }
.app-signin input[type=submit] { font: inherit; font-weight: 700; padding: 12px 24px; border-radius: 999px; border: 0; background: #232161; color: #fff; cursor: pointer; align-self: flex-start; }

/* Certificate */
.app-cert-sec { background: linear-gradient(120deg, #F6F5FB, #FDEEF4, #DDF3F5); }
.app-cert { width: 100%; max-width: 900px; padding: 14px; border-radius: 28px; background: linear-gradient(135deg, var(--c), var(--a), var(--c)); box-shadow: 0 30px 60px rgba(35,33,97,.2); }
.app-cert-in { background: #fff; border-radius: 18px; padding: 44px 48px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; overflow: hidden; }
.app-cert-in::before, .app-cert-in::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--a); opacity: .12; }
.app-cert-in::before { left: -90px; top: -90px; } .app-cert-in::after { right: -90px; bottom: -90px; background: var(--c); }
.app-cert-top { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.app-cert-top img { height: 54px; width: auto; }
.app-cert-top span { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c); border: 2px solid var(--c); border-radius: 999px; padding: 6px 12px; }
.app-cert small { font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #9A2F57; }
.app-cert p { margin: 8px 0 0; color: #6B6990; }
.app-cert h1 { margin: 0; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: clamp(2rem, 5vw, 3.2rem); color: #232161; border-bottom: 2px solid #ECEBF5; padding: 0 30px 6px; }
.app-cert h2 { margin: 0; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--c); }
.app-cert-skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.app-cert-skills span { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #F6F5FB; color: #3A3870; }
.app-cert-foot { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 18px; border-top: 1px solid #ECEBF5; }
.app-cert-foot div { display: flex; flex-direction: column; text-align: left; }
.app-cert-foot b { color: #232161; } .app-cert-foot span { font-size: 12px; color: #6B6990; }
.app-cert em { font-style: normal; font-size: 12px; color: #8A88AE; margin-top: 12px; }
.app-verified { background: #E5F6F2; color: #0B5F68; border-radius: 999px; padding: 10px 18px; font-size: 14px; text-align: center; }
.app-li { background: #0A66C2 !important; border-color: #0A66C2 !important; color: #fff !important; }
.app-li-chip { background: #0A66C2 !important; }

/* Portfolio */
.app-profile { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 32px; border-radius: 32px; background: linear-gradient(120deg, #232161, #784899, #17A9B5, #232161); color: #fff; }
.app-avatar img { width: 110px; height: 110px; border-radius: 50%; border: 5px solid rgba(255,255,255,.6); display: block; }
.app-profile-text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.app-headline { margin: 0; font-size: 18px; color: #F6F5FB; }
.app-profile-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.app-profile-stats span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 18px; padding: 12px 16px; display: flex; flex-direction: column; font-size: 13px; }
.app-profile-stats b { font-family: Fraunces, Georgia, serif; font-size: 30px; line-height: 1; }
.app-certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.app-certmini { background: #fff; border-radius: 22px; padding: 20px; border-top: 6px solid var(--c); display: flex; flex-direction: column; gap: 6px; }
.app-certmini small { font-weight: 800; font-size: 12px; color: var(--c); letter-spacing: .06em; text-transform: uppercase; }
.app-certmini b { font-family: Fraunces, Georgia, serif; font-size: 19px; }
.app-certmini > span { font-size: 13px; color: #6B6990; }
.app-settings { background: #fff; border-radius: 22px; padding: 18px 22px; border: 2px solid #ECEBF5; }
.app-settings summary { cursor: pointer; font-weight: 800; }
.app-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.app-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.app-form .app-wide { grid-column: 1 / -1; }
.app-form .app-check { flex-direction: row; align-items: center; gap: 10px; }
@media (max-width: 700px) { .app-form { grid-template-columns: 1fr; } .app-cert-in { padding: 28px 18px; } }
@media print {
	.swl-header, .swl-footer, .st-btns, .app-verified, .kl-bar, .kl-side, .wp-site-blocks > header { display: none !important; }
	.app-cert-sec { background: none; padding: 0; }
	.app-cert { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Join and sign in */
.app-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.app-auth { display: flex; flex-direction: column; gap: 16px; }
.app-auth-tabs { display: inline-flex; align-self: flex-start; background: #F1EFFA; border-radius: 999px; padding: 4px; }
.app-auth-tabs button { border: 0; background: none; font: inherit; font-weight: 700; font-size: 15px; padding: 10px 20px; border-radius: 999px; color: #232161; cursor: pointer; transition: background .2s, color .2s; }
.app-auth-tabs button.is-on { background: #232161; color: #fff; }
.app-alert { background: #FDEEF4; color: #9A2F57; border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.app-note-ok { background: #E5F6F2; color: #0B5F68; border-radius: 16px; padding: 12px 16px; font-weight: 600; }
.app-form-one { grid-template-columns: 1fr; }
.app-form input[type=password], .app-form input[type=email], .app-form input[type=tel] { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid #E6E5F0; border-radius: 14px; background: #fff; color: #232161; }
.app-form input:focus { outline: none; border-color: #784899; }
.app-progs { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.app-progs legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.app-progs label { flex-direction: row !important; align-items: center; gap: 8px !important; border: 2px solid #E6E5F0; border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.app-progs label:has(input:checked) { border-color: #784899; background: #F4EEF9; }
.app-join-sec { background: linear-gradient(120deg, #232161, #784899, #17A9B5, #232161); padding: 80px 0; }
.app-join-in { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.app-join-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 18px; }
.app-join-text .st-ticks li { color: #F1EFFA; }
.app-join-box { flex: 1.1 1 440px; max-width: none; }

/* Account dashboard */
.app-dash-head { background: linear-gradient(120deg, #232161, #784899, #17A9B5, #232161); color: #fff; padding: 40px 0; }
.app-dash-head-in { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.app-dash-head-in > div:nth-child(2) { flex: 1 1 260px; }
.app-dash-head .app-avatar img { width: 84px; height: 84px; }
.app-dash { display: flex; gap: 28px; align-items: flex-start; padding-top: 28px; padding-bottom: 72px; }
.app-dash-nav { flex: 0 0 220px; position: sticky; top: 20px; display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid #ECEBF5; border-radius: 20px; padding: 10px; }
.app-dash-nav button, .app-dash-nav a { text-align: left; border: 0; background: none; font: inherit; font-weight: 600; font-size: 15px; padding: 11px 14px; border-radius: 14px; color: #232161; cursor: pointer; text-decoration: none; transition: background .2s; }
.app-dash-nav button:hover { background: #F6F5FB; }
.app-dash-nav button.is-on { background: #232161; color: #fff; }
.app-dash-nav a { color: #9A2F57; font-size: 14px; }
.app-dash-body { flex: 1; min-width: 0; }
.app-panel { background: #fff; border-radius: 24px; padding: 24px; border: 1px solid #ECEBF5; margin-top: 0; }
.app-progs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.app-prog { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 24px; text-decoration: none; color: #fff !important; background: linear-gradient(135deg, var(--c), var(--c) 55%, color-mix(in srgb, var(--a) 55%, var(--c))); }
.app-prog b { font-family: Fraunces, Georgia, serif; font-size: 24px; font-weight: 600; }
.app-prog small { font-weight: 600; opacity: .9; }
.app-ladder { display: flex; gap: 6px; }
.app-ladder i { flex: 1; font-style: normal; font-size: 11px; font-weight: 800; text-align: center; padding: 6px 4px; border-radius: 10px; background: rgba(255,255,255,.14); color: rgba(255,255,255,.75); }
.app-ladder i.is-on { background: var(--a); color: var(--c); }
.app-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.app-quick a { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid #ECEBF5; border-radius: 20px; padding: 18px; text-decoration: none; color: #232161; }
.app-quick span { font-size: 14px; color: #6B6990; }

/* Member directory */
.app-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.app-member { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; background: #fff; border: 1px solid #ECEBF5; border-radius: 26px; padding: 22px 18px; text-decoration: none; color: #232161; }
.app-member-pic { position: relative; margin-bottom: 10px; }
.app-member-pic img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; display: block; border: 4px solid #fff; box-shadow: 0 0 0 3px #ECEBF5; transition: box-shadow .3s; }
.app-member:hover .app-member-pic img { box-shadow: 0 0 0 3px #784899; }
.app-lvl { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.app-lvl-explorer { background: #F4AF4C; color: #232161; }
.app-lvl-companion { background: #17A9B5; color: #fff; }
.app-lvl-lantern { background: #784899; color: #fff; }
.app-member b { font-size: 17px; }
.app-member > span { font-size: 14px; color: #3A3870; }
.app-member small { color: #6B6990; }
.app-member-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 6px; }
.app-member-tags i { font-style: normal; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: #F6F5FB; color: #3A3870; }
.app-member-tags .app-tag-cert { background: #FDF1DC; color: #8A5A00; }
@media (max-width: 900px) {
	.app-dash { flex-direction: column; }
	.app-dash-nav { position: static; flex: none; width: 100%; flex-direction: row; overflow-x: auto; }
	.app-dash-nav button, .app-dash-nav a { white-space: nowrap; }
}

/* Portfolio page for visitors */
.app-pf-hero { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; padding: 44px; border-radius: 34px; background: linear-gradient(120deg, #232161, #784899, #17A9B5, #232161); color: #fff; }
.app-pf-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; }
.app-pf-text p { margin: 0; color: #E6E3F5; font-size: 18px; }
.app-pf-text .st-ticks li { color: #F1EFFA; }
.app-pf-box { flex: 1 1 420px; max-width: none; }
@media (max-width: 700px) { .app-pf-hero { padding: 24px; border-radius: 24px; } }
