/* Speaking partner (js/pages/speakingPartner.js), Support (js/pages/support.js, admin/support.js), My plan
   (js/pages/plan.js), and the small counts in the menu. In the site's dark violet look (css/cd.css). */

/* ---------- menu counts ---------- */
.nav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 99px; background: #e11d48; color: #fff; font: 800 .66rem/1 var(--font); vertical-align: middle; box-shadow: 0 0 0 2px rgba(225, 29, 72, .25); }
.avatar { position: relative; }
.chip-dot { position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: #e11d48; box-shadow: 0 0 0 2px var(--bg); }
.sidebar a .nav-count { margin-left: auto; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.back-link:hover { color: var(--text); text-decoration: none; }
.sp-kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 .78rem var(--font); letter-spacing: .08em; text-transform: uppercase; color: #8a5a2b; }
.sp-kicker svg { width: 16px; height: 16px; }

/* ================= Speaking partner ================= */
.sp-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: clamp(22px, 4vw, 40px); margin-bottom: 18px; overflow: hidden; position: relative;
  background: radial-gradient(60% 90% at 100% 0%, rgba(160, 106, 58, .35), transparent 70%), radial-gradient(50% 80% at 0% 100%, rgba(176, 122, 71, .14), transparent 70%), var(--surface); }
.sp-hero h1 { margin: 10px 0 8px; font-size: clamp(2rem, 4vw, 2.8rem); }
.sp-hero p { color: var(--text-2); max-width: 560px; }
.sp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.sp-online { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.sp-online i { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: spPing 2s infinite; }
@keyframes spPing { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.sp-me { display: grid; justify-items: center; gap: 14px; text-align: center; }
.sp-orb { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .55), rgba(222, 196, 164, .35) 20%, rgba(160, 106, 58, .55) 45%, rgba(94, 59, 31, .8) 75%);
  box-shadow: inset -14px -18px 40px rgba(70, 42, 18, .7), 0 30px 60px -20px rgba(160, 106, 58, .7); animation: spFloat 6s ease-in-out infinite; }
.sp-orb span svg { width: 54px; height: 54px; color: #fff; filter: drop-shadow(0 4px 10px rgba(80, 50, 20, .17)); }
@keyframes spFloat { 50% { transform: translateY(-10px) rotate(-3deg); } }
.sp-myrating { display: grid; justify-items: center; gap: 2px; }
.sp-myrating b { font: 700 1.6rem/1 var(--font-display); }
.sp-myrating small { color: var(--muted); }
.sp-stars { display: inline-flex; gap: 1px; color: rgba(255, 255, 255, .18); font-size: 1rem; }
.sp-stars.lg { font-size: 1.5rem; }
.sp-stars i { font-style: normal; }
.sp-stars i.on { color: #fbbf24; text-shadow: 0 0 10px rgba(251, 191, 36, .5); }
.sp-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sp-rules li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.sp-rules svg { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; color: #7a4b24; background: rgba(160, 106, 58, .16); }

.sp-wait { display: grid; justify-items: center; text-align: center; gap: 8px; padding: clamp(32px, 6vw, 64px) 20px; }
.sp-radar { position: relative; width: 170px; height: 170px; display: grid; place-items: center; margin-bottom: 10px; }
.sp-radar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(196, 149, 99, .6); animation: spRadar 2.4s cubic-bezier(.2, .6, .3, 1) infinite; }
.sp-radar i:nth-child(2) { animation-delay: .8s; }
.sp-radar i:nth-child(3) { animation-delay: 1.6s; }
@keyframes spRadar { from { transform: scale(.35); opacity: 1; } to { transform: scale(1.15); opacity: 0; } }
.sp-radar span { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-primary); box-shadow: 0 16px 40px -10px rgba(138, 90, 43, .8); }
.sp-radar span svg { width: 30px; height: 30px; color: #fff; }

.sp-call { padding: clamp(18px, 3vw, 28px); margin-bottom: 16px; background: radial-gradient(70% 100% at 50% 0%, rgba(160, 106, 58, .22), transparent 70%), var(--surface); }
.sp-people { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.sp-person { display: grid; justify-items: center; gap: 8px; text-align: center; }
.sp-av { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #e8d5bd, #c9ad8c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 14px 30px -14px rgba(80, 50, 20, .38); }
.sp-av.other { background: var(--grad-primary); }
.sp-av svg { width: 36px; height: 36px; color: #fff; }
.sp-meter { width: 90px; height: 6px; border-radius: 99px; background: rgba(110, 72, 36, .08); overflow: hidden; }
.sp-meter u { display: block; height: 100%; background: linear-gradient(90deg, #34d399, #c49563, #c49563); transform-origin: 0 50%; transform: scaleX(0); transition: transform .08s linear; }
.sp-link { display: grid; justify-items: center; gap: 4px; }
.sp-link b { font: 700 1.8rem/1 var(--font-display); }
.sp-link small { color: var(--muted); }
.sp-status { padding: 4px 12px; border-radius: 99px; font-size: .8rem; font-weight: 700; background: rgba(251, 191, 36, .14); color: #fcd34d; }
.sp-status[data-s="connected"] { background: rgba(52, 211, 153, .14); color: #6ee7b7; }
.sp-status[data-s="failed"] { background: rgba(248, 113, 113, .14); color: #fca5a5; }
.sp-controls { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.sp-controls [data-mute].on { background: rgba(248, 113, 113, .16); border-color: rgba(248, 113, 113, .5); color: #fecaca; }
.btn-danger { color: #fff; background: linear-gradient(180deg, #ef4444, #b91c1c); border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 3px 0 #7f1d1d; }
.btn-danger:hover { color: #fff; filter: brightness(1.08); }
.sp-qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sp-q { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.sp-q.mine { border-color: rgba(196, 149, 99, .45); background: radial-gradient(80% 60% at 100% 0%, rgba(160, 106, 58, .16), transparent 70%), var(--surface); }
.sp-q h4 { margin: 0 0 12px; font-size: 1.05rem; }
.sp-part { padding: 12px 0; border-top: 1px solid var(--border); }
.sp-part b { display: block; margin-bottom: 6px; color: #8a5a2b; font-size: .86rem; }
.sp-part ol, .sp-part ul { margin: 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 4px; }
.sp-cue { margin: 0 0 6px; font-weight: 700; }
.sp-rate { display: grid; justify-items: center; text-align: center; gap: 12px; padding: clamp(28px, 5vw, 48px) 20px; }
.sp-pick { display: flex; gap: 6px; }
.sp-pick button { font-size: 2.6rem; line-height: 1; border: 0; background: none; color: rgba(255, 255, 255, .16); cursor: pointer; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), color .2s; }
.sp-pick button:hover { transform: scale(1.18) rotate(-6deg); }
.sp-pick button.on { color: #fbbf24; text-shadow: 0 0 18px rgba(251, 191, 36, .6); }
.sp-pick.locked button { pointer-events: none; }
.sp-insult { display: flex; gap: 10px; align-items: flex-start; max-width: 460px; padding: 12px 14px; border-radius: 14px; text-align: left; background: rgba(248, 113, 113, .08); border: 1px solid rgba(248, 113, 113, .25); color: var(--text-2); cursor: pointer; }
.sp-insult input { margin-top: 3px; accent-color: #ef4444; }
@media (max-width: 760px) {
  .sp-hero { grid-template-columns: minmax(0, 1fr); }
  .sp-me { order: -1; }
  .sp-orb { width: 110px; height: 110px; }
  .sp-qs { grid-template-columns: minmax(0, 1fr); }
  .sp-av { width: 64px; height: 64px; }
  .sp-link b { font-size: 1.4rem; }
}

/* ================= Support ================= */
.sup-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.sup-form { display: grid; gap: 12px; margin-top: 14px; }
.sup-form .field { margin: 0; }
.sup-drop { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed var(--border-strong); color: var(--muted); cursor: pointer; transition: border-color .2s, background .2s; }
.sup-drop:hover, .sup-drop.over, .sup-drop:focus-visible { border-color: var(--primary); background: var(--primary-50); color: var(--text); }
.sup-drop svg { flex: none; width: 22px; height: 22px; }
.sup-drop b { color: var(--text); }
.sup-previews { display: flex; flex-wrap: wrap; gap: 10px; }
.sup-previews:empty { display: none; }
.sup-previews figure { position: relative; margin: 0; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.sup-previews img { width: 100%; height: 100%; object-fit: cover; }
.sup-previews button { position: absolute; top: 4px; right: 4px; background: rgba(80, 50, 20, .27); color: #fff; }
.sup-thread { display: grid; gap: 12px; }
.sup-msg { max-width: 86%; padding: 12px 16px; border-radius: 18px 18px 18px 4px; background: var(--surface-2); border: 1px solid var(--border); }
.sup-msg.me { justify-self: end; border-radius: 18px 18px 4px 18px; background: linear-gradient(160deg, rgba(160, 106, 58, .28), rgba(138, 90, 43, .16)); border-color: rgba(196, 149, 99, .35); }
.sup-msg header { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.sup-msg header b { color: var(--text); }
.sup-msg p { margin: 0; white-space: normal; overflow-wrap: anywhere; }
.sup-pics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sup-pics img { width: 140px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); transition: transform .3s; }
.sup-pics a:hover img { transform: scale(1.04); }
.sup-item.unread .t { font-weight: 800; }
.sup-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #e11d48; vertical-align: middle; }
.sup-meta { display: grid; justify-items: end; gap: 4px; }
.sup-admin { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.sup-who { display: grid; gap: 12px; position: sticky; top: calc(var(--topbar-h, 72px) + 16px); }
.sup-who small { display: block; }
.sup-status-btns { display: grid; gap: 6px; }
@media (max-width: 900px) { .sup-grid, .sup-admin { grid-template-columns: minmax(0, 1fr); } .sup-msg { max-width: 100%; } .sup-who { position: static; } }

/* ================= My plan ================= */
.pl-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding: clamp(22px, 4vw, 36px); margin-bottom: 18px; position: relative; overflow: hidden;
  background: radial-gradient(60% 90% at 100% 0%, rgba(160, 106, 58, .32), transparent 70%), radial-gradient(40% 80% at 0% 100%, rgba(251, 146, 60, .12), transparent 70%), var(--surface); }
.pl-hero > div:first-child:not(.pl-count) { flex: 1 1 340px; }
.pl-hero h1 { margin: 8px 0 6px; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.pl-hero p { color: var(--text-2); max-width: 560px; }
.pl-goal { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.pl-goal .field { margin: 0; min-width: 140px; }
.pl-hero > .pl-goal { flex: 1 1 420px; }
.pl-count { --p: 0; flex: none; width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: conic-gradient(from -90deg, #c49563, #c49563 calc(var(--p) * .6%), #fb923c calc(var(--p) * 1%), rgba(110, 72, 36, .07) 0); box-shadow: 0 20px 50px -20px rgba(160, 106, 58, .8); }
.pl-count > div { width: 140px; height: 140px; border-radius: 50%; display: grid; place-content: center; background: radial-gradient(circle at 35% 30%, #ffffff, #f6efe5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.pl-count b { font: 800 3.2rem/1 var(--font-display); letter-spacing: -.04em; background: linear-gradient(180deg, #fff, #8a5a2b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pl-count small { color: var(--muted); font-size: .8rem; }
.pl-hero .grow { flex: 1 1 300px; }
.pl-week { display: flex; gap: 8px; margin-top: 14px; }
.pl-day { display: grid; justify-items: center; gap: 4px; }
.pl-day small { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pl-day i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(110, 72, 36, .06); border: 1px solid var(--border); }
.pl-day i svg { width: 16px; height: 16px; color: #fff; }
.pl-day.full i { background: var(--grad-primary); border-color: transparent; box-shadow: 0 8px 18px -8px rgba(138, 90, 43, .8); }
.pl-day.part i { background: rgba(160, 106, 58, .25); }
.pl-day.missed i { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .25); }
.pl-day.today i { outline: 2px solid #c49563; outline-offset: 2px; }
.pl-day.future i { opacity: .45; }
.pl-streak { margin-top: 12px; color: var(--text-2); }
.pl-streak b { font-size: 1.15rem; color: #fdba74; }
.pl-edit { position: absolute; top: 16px; right: 16px; }
.pl-edit summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; font-size: .84rem; font-weight: 600; color: var(--muted); background: rgba(110, 72, 36, .05); border: 1px solid var(--border); }
.pl-edit summary::-webkit-details-marker { display: none; }
.pl-edit summary svg { width: 15px; height: 15px; }
.pl-edit[open] { position: static; flex-basis: 100%; }
.pl-edit[open] .pl-goal { margin-top: 12px; }
.pl-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pl-progress { --p: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#34d399 calc(var(--p) * 1%), rgba(110, 72, 36, .08) 0); }
.pl-progress b { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-size: .86rem; }
.pl-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pl-tasks li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), border-color .2s, background .2s; }
.pl-tasks li:hover { transform: translateX(4px); border-color: rgba(196, 149, 99, .35); }
.pl-tasks li.done { background: rgba(52, 211, 153, .06); border-color: rgba(52, 211, 153, .22); }
.pl-tasks li.done .pl-task-t { text-decoration: line-through; color: var(--muted); }
.pl-check { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; border: 2px solid var(--border-strong); background: none; color: transparent; cursor: pointer; transition: all .3s cubic-bezier(.34, 1.56, .64, 1); }
.pl-check svg { width: 16px; height: 16px; }
.pl-check:hover:not(:disabled) { border-color: #34d399; }
.pl-check[aria-pressed="true"] { background: #10b981; border-color: #10b981; color: #fff; transform: scale(1.06); box-shadow: 0 6px 16px -6px #10b981; }
.pl-check:disabled { cursor: default; }
.pl-task-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(160, 106, 58, .18); color: #7a4b24; }
.pl-task-ic svg { width: 18px; height: 18px; }
.pl-task-ic.listening { background: rgba(244, 114, 182, .16); color: #f3e4d0; }
.pl-task-ic.writing { background: rgba(45, 212, 191, .14); color: #99f6e4; }
.pl-task-ic.speaking { background: rgba(251, 191, 36, .14); color: #fde68a; }
.pl-task-ic.mock { background: var(--grad-primary); color: #fff; }
.pl-task-t { display: block; font-weight: 700; color: var(--text); }
.pl-task-t:hover { color: var(--primary); }
.pl-tasks small { color: var(--muted); }
.pl-skills { display: grid; gap: 14px; }
.pl-skill { display: flex; gap: 12px; align-items: center; }
.pl-skill-ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(160, 106, 58, .16); color: #7a4b24; }
.pl-skill-ic svg { width: 17px; height: 17px; }
.pl-skill-top { display: flex; justify-content: space-between; font-size: .92rem; }
.pl-skill-top small { color: var(--muted); }
.pl-bar { position: relative; height: 8px; margin: 6px 0 4px; border-radius: 99px; background: rgba(110, 72, 36, .07); }
.pl-bar u { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #a06a3a, #b07a47); }
.pl-bar i { position: absolute; top: -4px; width: 3px; height: 16px; margin-left: -1.5px; border-radius: 2px; background: #fdba74; box-shadow: 0 0 8px #fb923c; }
.pl-overall { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.pl-overall b { font: 800 1.8rem/1 var(--font-display); }
.pl-weak { display: grid; gap: 16px; }
.pl-weak-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.pl-pct { --p: 50; padding: 2px 8px; border-radius: 8px; font-weight: 800; font-size: .82rem; color: #fff; background: hsl(calc(var(--p) * 1.2) 70% 40%); }
.pl-weak-tests { display: grid; gap: 6px; }
.pl-chip { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); transition: border-color .2s, transform .3s; }
.pl-chip:hover { text-decoration: none; border-color: rgba(196, 149, 99, .45); transform: translateX(3px); }
.pl-chip svg { flex: none; width: 15px; height: 15px; color: #8a5a2b; }
.pl-chip span { display: grid; font-size: .88rem; font-weight: 600; }
.pl-chip small { color: var(--muted); font-weight: 500; font-size: .76rem; }
@media (max-width: 900px) { .pl-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .pl-count { width: 130px; height: 130px; } .pl-count > div { width: 108px; height: 108px; } .pl-count b { font-size: 2.4rem; }
  .pl-hero { gap: 18px; } .pl-edit { top: 10px; right: 10px; }
  .pl-tasks li { flex-wrap: wrap; } .pl-tasks li .btn { margin-left: 42px; }
  .pl-goal .field { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .sp-orb, .sp-radar i, .sp-online i { animation: none; } }
.pl-skill .grow, .pl-tasks .grow { flex: 1; min-width: 0; }

/* ================= My plan, round 2: phases, pace, weekly goals, home strip ================= */
.pl-hero .pl-phases { flex-basis: 100%; }
.pl-minutes { font: 500 1rem var(--font); color: var(--muted); letter-spacing: 0; }
.pl-pace { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0 4px; padding: 10px 14px; border-radius: 14px; max-width: 620px; background: rgba(110, 72, 36, .04); border: 1px solid var(--border); }
.pl-pace svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.pl-pace b { display: block; }
.pl-pace span { color: var(--text-2); font-size: .9rem; }
.pl-pace.good { border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .07); } .pl-pace.good svg, .pl-pace.good b { color: #6ee7b7; }
.pl-pace.warn { border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .07); } .pl-pace.warn svg, .pl-pace.warn b { color: #fcd34d; }
.pl-pace.bad { border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .07); } .pl-pace.bad svg, .pl-pace.bad b { color: #fca5a5; }
.pl-weekline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.pl-weekline .pl-streak { margin-top: 14px; }

.pl-phases { margin-top: 6px; }
.pl-track { position: relative; display: flex; gap: 4px; padding-top: 4px; }
.pl-seg { position: relative; flex: 1 1 0; min-width: 0; height: 34px; border-radius: 10px; display: flex; align-items: center; padding: 0 10px; background: rgba(110, 72, 36, .05); border: 1px solid var(--border); overflow: hidden; }
.pl-seg span { font-size: .76rem; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-seg.past { background: rgba(160, 106, 58, .14); }
.pl-seg.past span { color: #8a5a2b; }
.pl-seg.now { background: linear-gradient(90deg, rgba(160, 106, 58, .55), rgba(138, 90, 43, .45)); border-color: rgba(232, 200, 160, .5); box-shadow: 0 10px 26px -12px rgba(138, 90, 43, .8); }
.pl-seg.now span { color: #fff; }
.pl-you { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 3px; background: #fdba74; box-shadow: 0 0 12px #fb923c; }
.pl-you::after { content: "Today"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font: 700 .66rem var(--font); color: #fdba74; text-transform: uppercase; letter-spacing: .06em; }
.pl-phase-now { margin: 12px 0 0; color: var(--text-2); font-size: .92rem; }
.pl-phase-now b { color: var(--text); }

.pl-next { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 14px 16px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, #9a6535, #6e4420); border: 1px solid rgba(138, 90, 43, .35); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.pl-next:hover { text-decoration: none; color: #fff; transform: translateY(-2px); }
.pl-next > span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #7a4b24; flex: none; }
.pl-next div { flex: 1; min-width: 0; }
.pl-next small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.pl-tag { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: .7rem; font-weight: 700; background: rgba(251, 191, 36, .14); color: #fcd34d; }
.pl-tag.lvl { background: rgba(96, 165, 250, .14); color: #93c5fd; }
.pl-tag.focus { background: rgba(160, 106, 58, .18); color: #6e4420; }
.pl-acts { display: flex; align-items: center; gap: 4px; flex: none; }
.pl-note { display: block; margin-top: 12px; }
.pl-note svg { width: 13px; height: 13px; vertical-align: -2px; }
.pl-task-ic.tip, .pl-skill-ic.tip { background: rgba(253, 186, 116, .14); color: #fed7aa; }
.pl-skill-ic.listening { background: rgba(244, 114, 182, .16); color: #f3e4d0; }
.pl-skill-ic.writing { background: rgba(45, 212, 191, .14); color: #99f6e4; }
.pl-skill-ic.speaking { background: rgba(251, 191, 36, .14); color: #fde68a; }
.pl-skill-ic.mock { background: var(--grad-primary); color: #fff; }
.pl-focus { margin-left: auto; margin-right: 10px; font-size: .72rem; font-weight: 700; color: #8a5a2b; }

.pl-goals { display: grid; gap: 12px; }
.pl-goalrow { display: grid; grid-template-columns: auto 90px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.pl-goalrow b { font-size: .92rem; }
.pl-dots { display: flex; flex-wrap: wrap; gap: 5px; }
.pl-dots i { width: 14px; height: 14px; border-radius: 5px; background: rgba(110, 72, 36, .07); border: 1px solid var(--border); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.pl-dots i.on { background: linear-gradient(160deg, #c49563, #8a5a2b); border-color: transparent; box-shadow: 0 4px 10px -4px rgba(138, 90, 43, .8); }
.pl-goalrow.met small { color: #6ee7b7; font-weight: 700; }
.pl-wk-total { font: 700 1.3rem/1 var(--font-display); }

.pl-intro { align-items: flex-start; }
.pl-intro-form { flex: 1 1 340px; padding: 20px; border-radius: 18px; background: rgba(110, 72, 36, .03); border: 1px solid var(--border); }
.pl-intro-form h3 { margin: 0 0 12px; }
.pl-intro-form .pl-goal .field { flex: 1 1 140px; }
.pl-howto { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.pl-howto li { display: flex; gap: 12px; align-items: flex-start; }
.pl-howto small { display: block; color: var(--muted); }
.pl-seg-dot { flex: none; width: 12px; height: 12px; margin-top: 5px; border-radius: 4px; background: var(--grad-primary); }
.pl-seg-dot.level { background: #60a5fa; } .pl-seg-dot.build { background: #c49563; } .pl-seg-dot.exam { background: #c49563; } .pl-seg-dot.final { background: #fb923c; }

/* home: today's plan at a glance */
.pl-strip { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 16px; color: var(--text);
  background: radial-gradient(80% 140% at 0% 0%, rgba(160, 106, 58, .2), transparent 60%), var(--surface); }
a.pl-strip:hover { text-decoration: none; color: var(--text); border-color: rgba(196, 149, 99, .4); }
.pl-strip b { display: block; }
.pl-strip small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-strip .grow { flex: 1; min-width: 0; }
.pl-strip-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-primary); color: #fff; flex: none; }

/* teacher: the student's plan */
.pl-admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pl-admin > div { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.pl-admin small { display: block; color: var(--muted); font-size: .76rem; }
.pl-admin b { font: 700 1.25rem/1.2 var(--font-display); }
.pl-7 { display: flex; gap: 4px; margin-top: 6px; }
.pl-7 i { flex: 1; height: 18px; border-radius: 5px; background: rgba(110, 72, 36, .07); }
.pl-7 i.full { background: #10b981; } .pl-7 i.part { background: rgba(160, 106, 58, .6); } .pl-7 i.missed { background: rgba(248, 113, 113, .35); }

@media (max-width: 760px) {
  .pl-seg span { font-size: .64rem; }
  .pl-seg { padding: 0 6px; height: 30px; }
  .pl-goalrow { grid-template-columns: auto minmax(0, 1fr) auto; }
  .pl-goalrow .pl-dots { grid-column: 1 / -1; }
  .pl-strip { flex-wrap: wrap; }
  .pl-focus { display: none; }
}

/* ================= My plan, round 3: warnings, plan end, extra tasks ================= */
.pl-end { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 5px 12px; border-radius: 10px; font-size: .88rem; color: #fecaca; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .3); }
.pl-end svg { width: 15px; height: 15px; }
.pl-plus { padding: 1px 7px; border-radius: 6px; font-weight: 800; font-size: .76rem; background: #dc2626; color: #fff; }
.pl-load { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; max-width: 640px; color: var(--text-2); font-size: .88rem; }
.pl-load svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: #8a5a2b; }
.pl-load small { color: var(--muted); }
.pl-alerts { display: grid; gap: 10px; margin-bottom: 16px; }
.pl-alert { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; border: 1px solid; animation: plAlertIn .6s cubic-bezier(.16, 1, .3, 1) both; }
.pl-alert > svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.pl-alert p { margin: 4px 0 0; color: var(--text-2); font-size: .92rem; }
.pl-alert.warn { background: rgba(251, 191, 36, .07); border-color: rgba(251, 191, 36, .35); } .pl-alert.warn > svg, .pl-alert.warn b { color: #fcd34d; }
.pl-alert.bad { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .4); box-shadow: 0 0 0 1px rgba(248, 113, 113, .1), 0 18px 40px -24px rgba(239, 68, 68, .7); } .pl-alert.bad > svg, .pl-alert.bad b { color: #fca5a5; }
.pl-alert.bad > svg { animation: plShake 2.4s ease-in-out infinite; }
@keyframes plAlertIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes plShake { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-12deg); } 94% { transform: rotate(10deg); } 97% { transform: rotate(-6deg); } }
.pl-overdue { display: grid; gap: 6px; margin-top: 10px; }
.pl-overdue a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--text); background: rgba(0, 0, 0, .18); border: 1px solid var(--border); }
.pl-overdue a:hover { text-decoration: none; border-color: rgba(248, 113, 113, .45); }
.pl-overdue .pl-task-ic { width: 30px; height: 30px; border-radius: 9px; }
.pl-overdue span:last-child { display: grid; font-weight: 600; font-size: .88rem; }
.pl-overdue small { color: var(--muted); font-weight: 500; font-size: .74rem; }
.pl-tag.extra { background: rgba(52, 211, 153, .14); color: #6ee7b7; }
.pl-more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border-strong); }
.pl-strip.warn-warn { border-color: rgba(251, 191, 36, .45); }
.pl-strip.warn-bad { border-color: rgba(248, 113, 113, .55); box-shadow: 0 18px 40px -28px rgba(239, 68, 68, .8); }
.pl-strip-warn { display: flex !important; align-items: center; gap: 6px; margin-top: 2px; color: #fcd34d !important; font-weight: 600; }
.warn-bad .pl-strip-warn { color: #fca5a5 !important; }
.pl-strip-warn svg { width: 14px; height: 14px; flex: none; }
@media (prefers-reduced-motion: reduce) { .pl-alert, .pl-alert.bad > svg { animation: none; } }


/* ================= Start: making the study plan (js/pages/start.js) ================= */
body.ob-mode .nav, body.ob-mode .pf-premium-btn, body.ob-mode .pf-pro, body.ob-mode .menu-btn, body.ob-mode #footer { display: none !important; }
.ob { position: relative; min-height: calc(100svh - var(--topbar-h, 72px)); display: grid; place-items: center; padding: clamp(18px, 4vw, 48px) 16px; overflow: hidden; isolation: isolate; }
.ob-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ob-glow i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.ob-glow i:nth-child(1) { width: 520px; height: 520px; left: -160px; top: -120px; background: radial-gradient(circle, rgba(160, 106, 58, .7), transparent 65%); }
.ob-glow i:nth-child(2) { width: 460px; height: 460px; right: -140px; bottom: -160px; background: radial-gradient(circle, rgba(176, 122, 71, .5), transparent 65%); }
.ob-glow i:nth-child(3) { width: 280px; height: 280px; right: 20%; top: 10%; background: radial-gradient(circle, rgba(251, 146, 60, .35), transparent 65%); }
.ob-wrap { width: 100%; max-width: 760px; padding: clamp(22px, 4vw, 40px); border-radius: 28px; background: linear-gradient(180deg, rgba(110, 72, 36, .05), rgba(110, 72, 36, .015)), rgba(255, 252, 247, .92); border: 1px solid rgba(196, 149, 99, .25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 50px 100px -50px rgba(80, 50, 20, .38), 0 0 80px -40px rgba(160, 106, 58, .7); backdrop-filter: blur(16px); }
.ob-progress { height: 6px; border-radius: 99px; background: rgba(110, 72, 36, .07); overflow: hidden; }
.ob-progress u { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #a06a3a, #b07a47, #fb923c); box-shadow: 0 0 14px rgba(176, 122, 71, .8); transition: width .7s cubic-bezier(.16, 1, .3, 1); }
.ob-steplabel { min-height: 20px; margin: 10px 0 4px; font: 700 .74rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: #8a5a2b; }
.ob-stage { min-height: 360px; perspective: 1200px; }
.ob-stage.in .ob-screen { animation: obIn .65s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes obIn { from { opacity: 0; transform: translate3d(calc(var(--dir, 1) * 60px), 0, -80px) rotateY(calc(var(--dir, 1) * -10deg)); filter: blur(6px); } }
.ob h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.1; }
.ob h2 { margin: 6px 0 6px; font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.ob-sub { margin: 0 0 20px; color: var(--text-2); }
.ob-hello { text-align: center; padding-top: 8px; }
.ob-hello p { max-width: 540px; margin: 0 auto; color: var(--text-2); font-size: 1.05rem; }
.ob-orb { width: 96px; height: 96px; margin: 6px auto 20px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .6), rgba(222, 196, 164, .4) 20%, rgba(160, 106, 58, .7) 50%, rgba(94, 59, 31, .9) 80%); box-shadow: inset -10px -14px 30px rgba(70, 42, 18, .7), 0 24px 50px -16px rgba(160, 106, 58, .9); animation: obFloat 5s ease-in-out infinite; }
.ob-orb svg { width: 42px; height: 42px; }
.ob-orb.big { width: 110px; height: 110px; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .6), rgba(110, 231, 183, .5) 22%, rgba(16, 185, 129, .8) 55%, rgba(6, 95, 70, .95) 85%); box-shadow: inset -10px -14px 30px rgba(2, 44, 34, .7), 0 24px 60px -16px rgba(16, 185, 129, .9); }
@keyframes obFloat { 50% { transform: translateY(-8px); } }
.ob-why { list-style: none; display: inline-grid; gap: 8px; margin: 22px auto 0; padding: 0; text-align: left; }
.ob-why li { display: flex; gap: 10px; align-items: center; color: var(--text-2); }
.ob-why svg { width: 20px; height: 20px; padding: 3px; border-radius: 7px; color: #7a4b24; background: rgba(160, 106, 58, .3); }
.ob-bands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ob-band, .ob-card, .ob-chip { position: relative; cursor: pointer; color: var(--text); border: 1px solid var(--border-strong); background: linear-gradient(180deg, rgba(110, 72, 36, .06), rgba(110, 72, 36, .02)); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), border-color .2s, background .2s, box-shadow .3s; }
.ob-band:hover, .ob-card:hover, .ob-chip:hover { transform: translateY(-3px); border-color: rgba(196, 149, 99, .6); }
.ob-band.on, .ob-card.on, .ob-chip.on { border-color: transparent; background: linear-gradient(150deg, #a06a3a, #8a5a2b); box-shadow: 0 16px 36px -14px rgba(138, 90, 43, .9), inset 0 1px 0 rgba(255, 255, 255, .3); transform: translateY(-3px) scale(1.02); }
.ob-band { display: grid; gap: 2px; padding: 14px 12px; border-radius: 16px; text-align: left; }
.ob-band b { font: 800 1.6rem/1 var(--font-display); letter-spacing: -.02em; }
.ob-band small { color: var(--muted); font-size: .76rem; }
.ob-band.on small { color: rgba(255, 255, 255, .85); }
.ob-reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ob-card { display: grid; justify-items: start; gap: 10px; padding: 18px; border-radius: 18px; text-align: left; }
.ob-card svg { width: 28px; height: 28px; color: #8a5a2b; }
.ob-card.on svg { color: #fff; }
.ob-card b { font-size: 1.02rem; }
.ob-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ob-chip { padding: 10px 16px; border-radius: 99px; font-weight: 700; }
.ob-date { display: grid; gap: 8px; max-width: 320px; }
.ob-date span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; }
.ob-date svg { width: 16px; height: 16px; }
.ob-count { display: flex; align-items: center; gap: 14px; margin-top: 22px; opacity: 0; transform: translateY(10px); transition: all .5s cubic-bezier(.16, 1, .3, 1); }
.ob-count.show { opacity: 1; transform: none; }
.ob-count b { font: 800 4rem/1 var(--font-display); letter-spacing: -.04em; background: linear-gradient(180deg, #fff, #c49563 60%, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ob-count span { color: var(--text-2); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.ob-count small { color: var(--muted); font-weight: 500; font-size: .82rem; }
.ob-times { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ob-time { justify-items: center; text-align: center; padding: 22px 8px 16px; }
.ob-time b { font: 800 1.2rem var(--font-display); }
.ob-time small { color: var(--muted); font-size: .76rem; }
.ob-time.on small { color: rgba(255, 255, 255, .85); }
.ob-rec { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 2px 8px; border-radius: 99px; font-size: .66rem; font-weight: 800; color: #fbf7f1; background: linear-gradient(90deg, #fde68a, #fb923c); box-shadow: 0 6px 14px -6px #fb923c; }
.ob-hint { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding: 12px 14px; border-radius: 14px; color: var(--text-2); font-size: .9rem; background: rgba(251, 191, 36, .06); border: 1px solid rgba(251, 191, 36, .25); }
.ob-hint svg { flex: none; width: 18px; height: 18px; color: #fcd34d; }
.ob-promise { position: relative; padding: 26px 26px 18px; border-radius: 20px; background: linear-gradient(160deg, rgba(110, 72, 36, .08), rgba(110, 72, 36, .02)); border: 1px solid rgba(232, 200, 160, .3); }
.ob-quote { position: absolute; top: -18px; left: 16px; font: 800 4rem/1 Georgia, serif; color: #c49563; opacity: .6; }
.ob-promise p { margin: 0; font-size: 1.12rem; line-height: 1.6; }
.ob-promise b { color: #6e4420; }
.ob-sign { margin-top: 14px; text-align: right; font: italic 600 1.3rem "Source Serif 4", Georgia, serif; color: #8a5a2b; }
.ob-hold { --k: 0; position: relative; display: block; width: 150px; height: 150px; margin: 26px auto 0; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: radial-gradient(circle at 35% 30%, #c49563, #8a5a2b 55%, #5e3a1c); box-shadow: 0 20px 50px -16px rgba(160, 106, 58, .9), inset 0 2px 0 rgba(255, 255, 255, .3); transform: scale(calc(1 - var(--k) * .06)); transition: transform .2s; touch-action: none; user-select: none; -webkit-user-select: none; }
.ob-hold svg { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); transform: rotate(-90deg); }
.ob-hold circle { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 6; }
.ob-hold .ob-hold-ring { stroke: #fbbf24; stroke-linecap: round; filter: drop-shadow(0 0 8px #fb923c); }
.ob-hold span { position: relative; display: grid; justify-items: center; gap: 6px; }
.ob-hold span svg { position: static; width: 34px; height: 34px; transform: none; }
.ob-hold b { font-size: .86rem; }
.ob-hold.holding { box-shadow: 0 20px 60px -10px rgba(251, 146, 60, calc(.4 + var(--k) * .6)), inset 0 2px 0 rgba(255, 255, 255, .3); }
.ob-hold.done { background: radial-gradient(circle at 35% 30%, #6ee7b7, #10b981 55%, #065f46); }
.ob-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.ob-done { text-align: center; }
.ob-tasks { list-style: none; margin: 18px auto 0; padding: 0; max-width: 520px; display: grid; gap: 10px; text-align: left; }
.ob-tasks li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); animation: obIn .6s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(.3s + var(--i) * .12s); }
.ob-tasks li > span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .86rem; background: var(--grad-primary); color: #fff; }
.ob-tasks b { display: block; font-size: .95rem; }
.ob-tasks small { color: var(--muted); }
.ob-done-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
@media (max-width: 640px) {
  .ob-wrap { padding: 20px 16px; border-radius: 22px; }
  .ob-bands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ob-times { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .ob-reasons { grid-template-columns: minmax(0, 1fr); }
  .ob-stage { min-height: 300px; }
  .ob-count b { font-size: 3.2rem; }
}
@media (prefers-reduced-motion: reduce) { .ob-stage.in .ob-screen, .ob-orb, .ob-tasks li { animation: none; } }

/* After the plan: on to Premium (js/pages/start.js → js/pages/premium.js?from=plan) */
.ob-next-pay { max-width: 520px; margin: 22px auto 0; }
.ob-next-pay p { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; color: var(--text-2); }
.ob-next-pay p svg { width: 18px; height: 18px; color: #fcd34d; }
.ob-pay-bar { height: 4px; border-radius: 99px; background: rgba(110, 72, 36, .08); overflow: hidden; }
.ob-pay-bar u { display: block; height: 100%; width: 100%; transform-origin: 0 50%; background: linear-gradient(90deg, #fde68a, #fb923c); animation: obPay 6s linear both; }
@keyframes obPay { from { transform: scaleX(0); } }
.pm-fromplan { display: flex; width: max-content; max-width: 100%; align-items: center; gap: 8px; margin: 14px auto 12px; padding: 6px 14px; border-radius: 99px; font-weight: 700; font-size: .86rem; color: #6ee7b7; background: rgba(16, 185, 129, .12); border: 1px solid rgba(52, 211, 153, .35); }
.pm-fromplan svg { width: 16px; height: 16px; }

/* Premium reminder every 5 minutes (js/components/premiumNudge.js) */
.pz-modal { max-width: 500px; overflow: hidden; background: radial-gradient(80% 60% at 50% 0%, rgba(245, 158, 11, .22), transparent 70%), radial-gradient(60% 50% at 100% 100%, rgba(160, 106, 58, .25), transparent 70%), var(--surface); border: 1px solid rgba(251, 191, 36, .35); }
.pz { text-align: center; }
.pz-crown { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; display: grid; place-items: center; color: #3b2300; background: linear-gradient(160deg, #fde68a, #f59e0b); box-shadow: 0 16px 34px -12px rgba(245, 158, 11, .9), inset 0 2px 0 rgba(255, 255, 255, .6); }
.pz-crown svg { width: 32px; height: 32px; }
.pz h2 { margin: 0 0 8px; font-size: 1.35rem; }
.pz p { margin: 0 auto; max-width: 400px; color: var(--text-2); font-size: .94rem; }
.pz ul { list-style: none; display: inline-grid; gap: 7px; margin: 16px auto; padding: 0; text-align: left; }
.pz li { display: flex; gap: 9px; align-items: center; color: var(--text); font-size: .92rem; }
.pz li svg { width: 18px; height: 18px; padding: 3px; border-radius: 6px; color: #3b2300; background: #fbbf24; }
.pz-price b { font: 800 2.2rem/1 var(--font-display); background: linear-gradient(100deg, #fde68a, #fbbf24, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pz-price span { color: var(--muted); }
.pz-modal .modal-foot { justify-content: center; align-items: center; }
.pz-note { margin: 0; padding: 0 20px 16px; text-align: center; font-size: .78rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .pz-modal { animation: pnIn .7s cubic-bezier(.16, 1, .3, 1) both; }
  .pz-crown { animation: pzGlow 2.4s ease-in-out infinite; }
  @keyframes pnIn { from { opacity: 0; transform: perspective(900px) translateY(30px) rotateX(-14deg) scale(.95); } }
  @keyframes pzGlow { 50% { box-shadow: 0 16px 34px -12px rgba(245, 158, 11, .9), 0 0 0 10px rgba(251, 191, 36, .12); transform: rotate(-4deg) scale(1.04); } }
}

/* Staff & access: what a head manager may do (js/pages/admin/staff.js) */
.perm-box { margin: 0; padding: 14px 16px 16px; border-radius: 16px; border: 1px solid var(--border-strong); background: rgba(110, 72, 36, .02); }
.perm-box legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; padding: 0 4px; font-size: .9rem; }
.perm-quick { margin-left: auto; display: flex; gap: 4px; }
.perm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.perm-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; }
.perm-item:has(input:checked) { border-color: rgba(196, 149, 99, .45); background: rgba(160, 106, 58, .1); }
.perm-item b { display: block; font-size: .88rem; }
.perm-item small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.3; }
.perm-item .switch { flex: none; margin-top: 2px; }
@media (max-width: 640px) { .perm-grid { grid-template-columns: minmax(0, 1fr); } }
/* chosen answers are brown, so their text turns white */
.ob-band.on, .ob-card.on, .ob-chip.on, .ob-band.on small, .ob-card.on small, .ob-chip.on small, .ob-card.on p { color: #fff; }
