/* Student account: favourite hearts, favourites list, settings and the business account page. */

/* ---------- Heart toggle (detail pages) ---------- */
.fav-form { display: inline-flex; margin: 0; }
.fav-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border: 1px solid var(--ph-line2, rgba(196, 140, 255, .28)); border-radius: 6px; background: transparent; color: var(--ph-text, #D8D0F2); font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: border-color .18s, color .18s, background-color .18s; }
.fav-btn .icon { width: 18px; height: 18px; flex: 0 0 18px; transition: transform .2s ease-out; }
.fav-btn:hover { border-color: var(--ph-pink, #FF4FA3); color: var(--ph-white, #FFFFFF); }
.fav-btn:focus-visible { outline: 2px solid var(--ph-magenta, #E11CF2); outline-offset: 2px; }
.fav-btn.is-on { border-color: var(--ph-pink, #FF4FA3); color: var(--ph-pink, #FF4FA3); background: rgba(255, 79, 163, .08); }
.fav-btn.is-on .icon { fill: currentColor; }
.fav-btn:active .icon { transform: scale(.88); }
.fav-btn:disabled { opacity: .6; cursor: progress; }
.fav-slot { margin: 12px 0 0; }
.fav-slot-inline { display: inline-flex; vertical-align: middle; }
@media (prefers-reduced-motion: reduce) { .fav-btn, .fav-btn .icon { transition: none; } }

/* ---------- Shared bits ---------- */
.ac-note { margin: 8px 0 0; color: var(--ph-muted, #9C8FC6); font-size: .88rem; line-height: 1.6; max-width: 68ch; }
.ac-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ph-pink, #FF4FA3); font-weight: 600; font-size: .9rem; text-decoration: none; }
.ac-link .icon { width: 16px; height: 16px; transition: transform .2s ease-out; }
.ac-link:hover .icon { transform: translateX(3px); }
.ac-count { color: var(--ph-muted, #9C8FC6); font-size: .85rem; font-weight: 600; }
.ac-empty-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.lc-block-head h2 { display: flex; align-items: center; gap: 8px; }
.lc-block-head h2 .icon { width: 18px; height: 18px; color: var(--ph-muted, #9C8FC6); }

/* ---------- Favourites ---------- */
.ac-jump { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-jump a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--ph-line, rgba(196, 140, 255, .16)); border-radius: 6px; color: var(--ph-text, #D8D0F2); font-size: .85rem; text-decoration: none; }
.ac-jump a:hover { border-color: var(--ph-line2, rgba(196, 140, 255, .28)); color: var(--ph-white, #FFFFFF); }
.ac-jump b { color: var(--ph-muted, #9C8FC6); font-weight: 600; }
.ac-favs { list-style: none; margin: 0; padding: 0; }
.ac-favs li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ph-line, rgba(196, 140, 255, .16)); }
.ac-favs li:first-child { border-top: 0; padding-top: 0; }
.ac-favs form { margin: 0; flex: 0 0 auto; }
.ac-fav-main { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; min-height: 44px; color: inherit; text-decoration: none; }
.ac-fav-main:hover strong { color: var(--ph-pink, #FF4FA3); }
.ac-fav-img { flex: 0 0 56px; width: 56px; height: 42px; border-radius: 4px; object-fit: cover; object-position: center; background: var(--ph-surface2, #1F0F45); }
.ac-fav-ico { display: grid; place-items: center; color: var(--ph-muted, #9C8FC6); border: 1px solid var(--ph-line, rgba(196, 140, 255, .16)); }
.ac-fav-ico .icon { width: 20px; height: 20px; }
.ac-fav-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ac-fav-text strong { color: var(--ink, #F3EEFF); font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; transition: color .18s; }
.ac-fav-text small { color: var(--ph-muted, #9C8FC6); font-size: .8rem; }
.ac-icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ph-muted, #9C8FC6); cursor: pointer; transition: color .18s, border-color .18s; }
.ac-icon-btn:hover, .ac-icon-btn:focus-visible { color: var(--ph-red, #FF4D6D); border-color: var(--ph-line2, rgba(196, 140, 255, .28)); }
.ac-icon-btn .icon { width: 18px; height: 18px; }

/* ---------- Settings ---------- */
.ac-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1100px) { .ac-grid { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; } }
.ac-toc { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.ac-toc a { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 40px; padding: 0 12px; border: 1px solid var(--ph-line, rgba(196, 140, 255, .16)); border-radius: 6px; color: var(--ph-text, #D8D0F2); font-size: .88rem; text-decoration: none; transition: border-color .18s, color .18s; }
.ac-toc a .icon { width: 16px; height: 16px; color: var(--ph-muted, #9C8FC6); }
.ac-toc a:hover { border-color: var(--ph-line2, rgba(196, 140, 255, .28)); color: var(--ph-white, #FFFFFF); }
@media (min-width: 1100px) {
  .ac-toc { position: sticky; top: 84px; flex-direction: column; overflow: visible; padding: 0; border-left: 1px solid var(--ph-line, rgba(196, 140, 255, .16)); gap: 0; }
  .ac-toc a { border: 0; border-left: 2px solid transparent; border-radius: 0; margin-left: -1px; padding: 0 14px; }
  .ac-toc a:hover { border-left-color: var(--ph-pink, #FF4FA3); }
}
.ac-sections { min-width: 0; }
.ac-sections .lc-block { scroll-margin-top: 84px; }
.ac-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
@media (min-width: 640px) { .ac-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.ac-facts div { padding: 8px 0; border-top: 1px solid var(--ph-line, rgba(196, 140, 255, .16)); }
@media (min-width: 640px) { .ac-facts div { border-top: 0; padding: 0; } }
.ac-facts div:first-child { border-top: 0; }
.ac-facts dt { color: var(--ph-muted, #9C8FC6); font-size: .8rem; margin: 0 0 2px; }
.ac-facts dd { margin: 0; color: var(--ink, #F3EEFF); font-weight: 600; overflow-wrap: anywhere; }
.ac-form { max-width: 640px; }
.ac-form .input, .ac-form .select, .ac-form .textarea { font-size: 1rem; }
.ac-form-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
@media (min-width: 640px) { .ac-form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ac-form .hint { margin: -4px 0 14px; }
.ac-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--ph-line, rgba(196, 140, 255, .16)); }
.ac-row:first-of-type { border-top: 0; padding-top: 0; }
.ac-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.ac-row strong { color: var(--ink, #F3EEFF); font-weight: 600; }
.ac-row small { color: var(--ph-muted, #9C8FC6); font-size: .85rem; line-height: 1.5; }
.ac-row form { margin: 0; }
.ac-row:has(> [data-push-toggle][hidden]) { display: none; }
.ac-push { width: auto; margin: 0; }
.ac-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--ph-text, #D8D0F2); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.ac-switch-track { position: relative; width: 42px; height: 24px; border-radius: 12px; background: var(--ph-surface3, #2A1660); border: 1px solid var(--ph-line2, rgba(196, 140, 255, .28)); transition: background-color .18s, border-color .18s; }
.ac-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ph-muted, #9C8FC6); transition: transform .18s ease-out, background-color .18s; }
.ac-switch.is-on .ac-switch-track { background: rgba(46, 211, 138, .2); border-color: var(--ph-green, #2ED38A); }
.ac-switch.is-on .ac-switch-track::after { transform: translateX(18px); background: var(--ph-green, #2ED38A); }
.ac-switch:focus-visible { outline: 2px solid var(--ph-magenta, #E11CF2); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .ac-switch-track, .ac-switch-track::after { transition: none; } }
.ac-choice { display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ph-line2, rgba(196, 140, 255, .28)); border-radius: 6px; overflow: hidden; max-width: 100%; }
.ac-choice a { display: grid; place-items: center; min-width: 120px; min-height: 44px; padding: 0 16px; color: var(--ph-text, #D8D0F2); font-weight: 600; text-decoration: none; transition: background-color .18s, color .18s; }
.ac-choice a + a { border-left: 1px solid var(--ph-line2, rgba(196, 140, 255, .28)); }
.ac-choice a:hover { background: var(--ph-surface2, #1F0F45); }
.ac-choice a.is-on { background: rgba(197, 20, 217, .14); color: var(--ph-white, #FFFFFF); box-shadow: inset 0 -2px 0 var(--ph-pink, #FF4FA3); }
.ac-reading { max-width: 420px; }
.ac-reading h3 { margin: 0 0 8px; font-size: .85rem; font-weight: 600; color: var(--ph-muted, #9C8FC6); }
.ac-devices { list-style: none; margin: 12px 0 0; padding: 0; }
.ac-devices li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ph-line, rgba(196, 140, 255, .16)); }
.ac-dev-ico { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 6px; border: 1px solid var(--ph-line, rgba(196, 140, 255, .16)); color: var(--ph-muted, #9C8FC6); }
.ac-dev-ico .icon { width: 18px; height: 18px; }
.ac-dev-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.ac-dev-text strong { color: var(--ink, #F3EEFF); font-weight: 600; }
.ac-dev-text small { flex-basis: 100%; color: var(--ph-muted, #9C8FC6); font-size: .82rem; overflow-wrap: anywhere; }
.ac-this { color: var(--ph-green, #2ED38A); font-size: .8rem; font-weight: 600; }
.ac-biz { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.ac-biz h2 { margin: 0; font-size: 1.05rem; color: var(--ink, #F3EEFF); }
.ac-biz .ac-note { margin-top: 4px; }

/* ---------- Business account ---------- */
.ac-lead { margin: -4px 0 20px; max-width: 70ch; color: var(--ph-text, #D8D0F2); font-size: 1rem; line-height: 1.7; }
.ac-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
@media (min-width: 900px) { .ac-options { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ac-option { display: flex; flex-direction: column; }
.ac-option > .ac-link { margin-top: auto; padding-top: 6px; }
.ac-option-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.ac-option-head h2 { margin: 0; font-size: 1.15rem; color: var(--ink, #F3EEFF); }
.ac-option-head small { color: var(--ph-muted, #9C8FC6); font-size: .85rem; }
.ac-option-ico { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 6px; border: 1px solid var(--ph-line2, rgba(196, 140, 255, .28)); color: var(--ph-pink, #FF4FA3); }
.ac-option-ico .icon { width: 22px; height: 22px; }
.ac-ticks { list-style: none; margin: 0; padding: 0; }
.ac-ticks li { display: flex; gap: 10px; padding: 6px 0; line-height: 1.55; color: var(--ph-text, #D8D0F2); }
.ac-ticks .icon { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 4px; color: var(--ph-green, #2ED38A); }
.ac-steps { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 4px 0 16px; padding: 0; border-top: 1px solid var(--ph-line, rgba(196, 140, 255, .16)); border-bottom: 1px solid var(--ph-line, rgba(196, 140, 255, .16)); }
@media (min-width: 760px) { .ac-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ac-steps li { display: flex; gap: 12px; padding: 14px 4px; }
.ac-steps li + li { border-top: 1px solid var(--ph-line, rgba(196, 140, 255, .16)); }
@media (min-width: 760px) { .ac-steps li + li { border-top: 0; border-left: 1px solid var(--ph-line, rgba(196, 140, 255, .16)); padding-left: 16px; } }
.ac-steps b { flex: 0 0 auto; font-size: 1.5rem; line-height: 1; color: var(--ph-pink, #FF4FA3); font-weight: 700; }
.ac-steps span { display: flex; flex-direction: column; gap: 2px; color: var(--ph-muted, #9C8FC6); font-size: .88rem; line-height: 1.5; }
.ac-steps strong { color: var(--ink, #F3EEFF); font-size: .95rem; }
.ac-apply { scroll-margin-top: 84px; }
.ac-types { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0 0 16px; padding: 0; border: 0; }
@media (min-width: 760px) { .ac-types { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ac-types legend { margin-bottom: 8px; padding: 0; font-weight: 700; font-size: .9rem; color: var(--ink, #F3EEFF); }
.ac-type { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--ph-line2, rgba(196, 140, 255, .28)); border-radius: 6px; cursor: pointer; color: var(--ph-text, #D8D0F2); font-size: .92rem; line-height: 1.4; transition: border-color .18s, background-color .18s; }
.ac-type input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: #C514D9; }
.ac-type:hover { border-color: var(--ph-pink, #FF4FA3); }
.ac-type:has(input:checked) { border-color: var(--ph-pink, #FF4FA3); background: rgba(197, 20, 217, .1); color: var(--ph-white, #FFFFFF); }
.ac-type:has(input:focus-visible) { outline: 2px solid var(--ph-magenta, #E11CF2); outline-offset: 2px; }
.ac-sub { margin: 24px 0 6px; font-size: .95rem; color: var(--ink, #F3EEFF); }
.ac-requests { list-style: none; margin: 0; padding: 0; }
.ac-requests li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ph-line, rgba(196, 140, 255, .16)); }
.ac-req-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ac-req-text strong { color: var(--ink, #F3EEFF); font-weight: 600; overflow-wrap: anywhere; }
.ac-req-text small { color: var(--ph-muted, #9C8FC6); font-size: .82rem; }
.ac-status { flex: 0 0 auto; padding: 3px 8px; border-radius: 4px; border: 1px solid currentColor; font-size: .8rem; font-weight: 600; color: var(--ph-yellow, #FFC94A); }
.ac-status-contacted { color: var(--ph-pink, #FF4FA3); }
.ac-status-approved { color: var(--ph-green, #2ED38A); }
.ac-status-rejected { color: var(--ph-muted, #9C8FC6); }
