*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --navy:#0F1F2E;--navy2:#1a3047;--navy3:#243d55;
  --teal:#38BD94;--teal2:#2a9a77;--teal-bg:#e8f8f2;--teal-border:rgba(56,189,148,0.25);
  --amber:#EF9F27;--amber-bg:#fdf3e0;
  --red:#E24B4A;--red-bg:#fdf0f0;
  --blue:#378ADD;--blue-bg:#eaf3fd;
  --green:#3B9E60;--green-bg:#eaf6ef;
  --border:rgba(15,31,46,0.11);--border2:rgba(15,31,46,0.2);
  --card:#ffffff;--page:#f4f5f7;--text:#0F1F2E;--muted:#6b7a8d;--slate:#9aabbc;
  --radius:14px;--radius-sm:9px;
}
html{font-size:16px}
body{font-family:'DM Sans',sans-serif;background:var(--page);color:var(--text);min-height:100vh}

/* HEADER */
.hdr{background:var(--navy);height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 1.25rem;position:sticky;top:0;z-index:50}
.hdr-brand{display:flex;align-items:center;gap:10px;text-decoration:none;transition:opacity .18s ease;cursor:pointer}
.hdr-brand:hover{opacity:.82}
.hdr-brand:focus-visible{outline:2px solid var(--teal);outline-offset:3px;border-radius:4px}
.hdr-logo{height:36px;width:auto;display:block;border-radius:5px;flex-shrink:0}
.hdr-pill{font-size:11px;font-weight:500;color:var(--teal);background:rgba(56,189,148,.13);border:1px solid var(--teal-border);padding:3px 10px;border-radius:20px;white-space:nowrap}
@media(max-width:480px){.hdr-pill{display:none}}
.hdr-session{font-size:12px;color:var(--slate);display:flex;align-items:center;gap:6px}
.dot{width:7px;height:7px;border-radius:50%;background:var(--teal)}

/* LAYOUT */
.pg{max-width:820px;margin:0 auto;padding:2.5rem 1.25rem 5rem}

/* WELCOME */
.welcome{text-align:center;padding:3rem 1rem}
.welcome-eyebrow{font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--teal2);margin-bottom:1rem}
.welcome h1{font-family:'DM Serif Display',serif;font-size:clamp(28px,5vw,42px);color:var(--navy);line-height:1.15;margin-bottom:.85rem}
.welcome h1 em{color:var(--teal);font-style:italic}
.welcome-sub{font-size:15.5px;color:var(--muted);max-width:520px;margin:0 auto 2rem;line-height:1.65}
.how-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:1rem;max-width:700px;margin:0 auto 2.5rem;text-align:left}
.how-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem 1.25rem 1rem}
.how-num{font-size:11px;font-weight:700;color:var(--teal);letter-spacing:.08em;text-transform:uppercase;margin-bottom:.5rem}
.how-title{font-size:14px;font-weight:600;color:var(--navy);margin-bottom:.3rem}
.how-desc{font-size:12.5px;color:var(--muted);line-height:1.55}

/* SETUP */
.setup-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:1.75rem;margin-bottom:1.15rem}
.setup-title{font-size:16px;font-weight:600;color:var(--navy);margin-bottom:1.25rem;display:flex;align-items:center;gap:.5rem}
.setup-title > span:first-child{width:22px;height:22px;background:var(--navy);color:#fff;border-radius:50%;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.industry-toggle{display:grid;grid-template-columns:1fr 1fr 1fr;border:1px solid var(--border2);border-radius:var(--radius-sm);overflow:hidden;margin-bottom:1.25rem}
.ind-btn{padding:10px 0;font-family:'DM Sans',sans-serif;font-size:14px;font-weight:500;border:none;cursor:pointer;transition:all .2s;background:#fff;color:var(--muted)}
.ind-btn.active{background:var(--navy);color:#fff}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
@media(max-width:560px){.row2{grid-template-columns:1fr}}
label.lbl{display:block;font-size:11.5px;font-weight:600;color:var(--navy);letter-spacing:.02em;margin-bottom:.4rem}
select,input[type=text]{width:100%;padding:9px 12px;border:1px solid var(--border2);border-radius:var(--radius-sm);font-family:'DM Sans',sans-serif;font-size:13.5px;color:var(--text);background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a9bb0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") right 10px center no-repeat;appearance:none;transition:border-color .2s;cursor:pointer}
select:focus,input:focus{outline:none;border-color:var(--teal)}
.chips{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.2rem}
.chip{padding:5px 13px;border-radius:20px;border:1px solid var(--border2);font-size:12px;font-weight:500;cursor:pointer;transition:all .2s;color:var(--muted);background:#fff;user-select:none}
.chip:hover{border-color:var(--teal);color:var(--teal2)}
.chip.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.mode-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.65rem}
.mode-card{border:1.5px solid var(--border2);border-radius:var(--radius-sm);padding:.9rem .8rem;cursor:pointer;transition:all .2s;text-align:center;background:#fff}
.mode-card:hover{border-color:var(--teal)}
.mode-card.on{border-color:var(--teal);background:var(--teal-bg)}
.mode-icon{font-size:20px;margin-bottom:.35rem}
.mode-name{font-size:13px;font-weight:600;color:var(--navy)}
.mode-desc{font-size:11px;color:var(--muted);margin-top:.2rem;line-height:1.4}
.difficulty-toggle{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--border2);border-radius:var(--radius-sm);overflow:hidden}
.diff-btn{padding:9px 0;font-family:'DM Sans',sans-serif;font-size:13px;font-weight:500;border:none;cursor:pointer;transition:all .2s;background:#fff;color:var(--muted)}
.diff-btn.active{background:var(--amber);color:#fff}
.sess-btn{padding:8px 0;font-family:'DM Sans',sans-serif;font-size:13px;font-weight:500;border:1px solid var(--border2);border-radius:var(--radius-sm);cursor:pointer;transition:all .2s;background:#fff;color:var(--muted)}
.sess-btn:hover{border-color:var(--navy);color:var(--navy)}
.sess-btn.active{background:var(--navy);color:#fff;border-color:var(--navy)}

/* BUTTONS */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 24px;border-radius:10px;font-family:'DM Sans',sans-serif;font-size:14px;font-weight:600;cursor:pointer;border:none;transition:all .2s}
.btn-primary{background:var(--navy);color:#fff}
.btn-primary:hover{background:var(--navy2);transform:translateY(-1px)}
.btn-teal{background:var(--teal);color:#fff}
.btn-teal:hover{background:var(--teal2);transform:translateY(-1px)}
.btn-ghost{background:transparent;color:var(--muted);border:1px solid var(--border2)}
.btn-ghost:hover{background:var(--page);color:var(--text)}
.btn-sm{padding:7px 16px;font-size:13px;border-radius:8px}
.btn:disabled{opacity:.4;cursor:not-allowed;transform:none!important}
.btn-row{display:flex;gap:.65rem;flex-wrap:wrap;margin-top:1.5rem}

/* PRACTICE SCREEN */
.q-box{background:var(--navy);border-radius:var(--radius);padding:1.5rem 1.75rem;margin-bottom:1.1rem;position:relative;overflow:hidden}
.q-box::before{content:'"';position:absolute;top:-8px;left:12px;font-family:'DM Serif Display',serif;font-size:110px;color:rgba(56,189,148,0.1);line-height:1;pointer-events:none}
.q-badge{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--teal);background:rgba(56,189,148,.12);border:1px solid rgba(56,189,148,.2);padding:3px 10px;border-radius:20px;margin-bottom:.8rem}
.q-text{font-family:'DM Serif Display',serif;font-size:clamp(17px,2.8vw,22px);color:#fff;line-height:1.4}
.q-hint{margin-top:.7rem;font-size:12px;color:var(--slate)}

.answer-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;margin-bottom:1rem}
.meta-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}
.timer-wrap{display:flex;align-items:center;gap:.5rem}
.timer{font-size:22px;font-weight:600;color:var(--navy);font-variant-numeric:tabular-nums;min-width:52px}
.timer.warn{color:var(--amber)}
.timer.over{color:var(--red)}
.timer-label{font-size:11px;color:var(--muted);font-weight:500}
.wc-wrap{font-size:12px;color:var(--muted)}
.wc-num{font-weight:700;color:var(--navy)}
.wc-num.warn{color:var(--amber)}
.wc-num.over{color:var(--red)}
textarea{width:100%;min-height:180px;padding:12px 14px;border:1.5px solid var(--border2);border-radius:var(--radius-sm);font-family:'DM Sans',sans-serif;font-size:14px;color:var(--text);line-height:1.65;resize:vertical;transition:border-color .2s}
textarea:focus{outline:none;border-color:var(--teal)}
textarea::placeholder{color:var(--slate)}
.star-guide{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;margin-top:.9rem}
.star-seg{padding:.5rem .6rem;border-radius:7px;font-size:11px;text-align:center}
.star-seg .letter{font-weight:700;font-size:14px;display:block;margin-bottom:1px}
.star-seg .word{font-weight:400;color:inherit;opacity:.8}
.seg-s{background:#e6f1fb;color:#185FA5}
.seg-t{background:#faeeda;color:#854F0B}
.seg-a{background:#e8f8f2;color:#0F6E56}
.seg-r{background:#fcebeb;color:#A32D2D}
.progress-wrap{height:4px;background:var(--border);border-radius:4px;margin-bottom:1.25rem;overflow:hidden}
.progress-fill{height:100%;background:var(--teal);border-radius:4px;transition:width .4s ease}

/* FEEDBACK SCREEN */
.score-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.65rem;margin-bottom:1.25rem}
.score-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-sm);padding:.85rem;text-align:center}
.score-val{font-size:26px;font-weight:600;color:var(--navy);line-height:1}
.score-label{font-size:10.5px;color:var(--muted);margin-top:.25rem;font-weight:500}
.score-bar{height:3px;border-radius:3px;margin-top:.4rem;background:var(--border)}
.score-bar-fill{height:100%;border-radius:3px;transition:width .8s ease}
.overall-band{border-radius:var(--radius);padding:1.1rem 1.5rem;margin-bottom:1.1rem;display:flex;align-items:center;gap:1rem}
.overall-score{font-size:40px;font-weight:700;font-family:'DM Serif Display',serif;line-height:1}
.overall-label{font-size:14px;font-weight:600;margin-bottom:.2rem}
.overall-feedback{font-size:13.5px;line-height:1.55;opacity:.85}

.feedback-section{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:1.35rem 1.5rem;margin-bottom:1rem}
.fs-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.85rem}
.fs-icon{width:26px;height:26px;border-radius:7px;display:flex;align-items:center;justify-content:center;font-size:13px;flex-shrink:0}
.fs-title{font-size:13.5px;font-weight:700;color:var(--navy)}

.star-annotation{display:flex;flex-direction:column;gap:.5rem}
.ann-row{display:flex;gap:.6rem;align-items:flex-start}
.ann-tag{min-width:36px;padding:2px 6px;border-radius:5px;font-size:10px;font-weight:700;text-align:center;flex-shrink:0;margin-top:1px}
.ann-text{font-size:13px;color:var(--text);line-height:1.55}

.tip-list{display:flex;flex-direction:column;gap:.55rem}
.tip-item{display:flex;gap:.65rem;align-items:flex-start;font-size:13px;color:var(--text);line-height:1.5}
.tip-num{width:20px;height:20px;border-radius:50%;background:var(--navy);color:#fff;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}

.rewrite-box{background:var(--teal-bg);border:1px solid var(--teal-border);border-radius:var(--radius-sm);padding:1rem 1.1rem;font-size:13.5px;color:var(--navy2);line-height:1.65;border-left:3px solid var(--teal)}

.session-stats{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:1.1rem 1.5rem;display:flex;gap:2rem;flex-wrap:wrap}
.stat-item{text-align:center}
.stat-val{font-size:22px;font-weight:700;color:var(--navy);font-family:'DM Serif Display',serif}
.stat-lbl{font-size:11px;color:var(--muted);font-weight:500;margin-top:.1rem}

/* LOADING */
.loading-wrap{text-align:center;padding:2.5rem}
.spinner{width:38px;height:38px;border:3px solid var(--teal-bg);border-top-color:var(--teal);border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 1rem}
@keyframes spin{to{transform:rotate(360deg)}}
.loading-msg{font-size:14px;color:var(--muted);line-height:1.5}
.loading-tip{font-size:12px;color:var(--slate);margin-top:.4rem;font-style:italic}

/* ERROR */
.error-box{background:var(--red-bg);border:1px solid rgba(226,75,74,.2);border-radius:var(--radius-sm);padding:1rem 1.1rem;font-size:13px;color:var(--red);margin-top:.75rem}

/* HIDDEN */
.hidden{display:none!important}

/* SECTION DIVIDER */
hr.divider{border:none;border-top:1px solid var(--border);margin:1.5rem 0}

/* BADGE */
.badge{display:inline-block;font-size:10px;font-weight:700;padding:2px 9px;border-radius:20px;vertical-align:middle}
.badge-teal{background:var(--teal-bg);color:var(--teal2)}
.badge-amber{background:var(--amber-bg);color:#854F0B}
.badge-navy{background:rgba(15,31,46,.08);color:var(--navy)}

/* Q COUNTER */
.q-counter{font-size:12px;color:var(--slate);text-align:right;margin-bottom:.5rem}

/* SKIP */
.skip-link{font-size:12px;color:var(--slate);cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.skip-link:hover{color:var(--muted)}

/* ANXIETY CHIPS — grouped */
.anxiety-group{margin-bottom:1rem}
.anxiety-group-label{font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--slate);margin-bottom:.4rem}
.anxiety-chips{display:flex;flex-wrap:wrap;gap:.4rem}
.a-chip{display:flex;align-items:center;gap:5px;padding:6px 13px;border-radius:20px;border:1px solid var(--border2);font-size:12.5px;font-weight:500;cursor:pointer;transition:all .18s;color:var(--muted);background:#fff;user-select:none}
.a-chip:hover{border-color:var(--navy);color:var(--navy)}
.a-chip.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.a-chip .a-icon{font-size:13px;line-height:1}
.anxiety-freetext{width:100%;margin-top:.9rem;min-height:68px;padding:10px 12px;border:1px solid var(--border2);border-radius:var(--radius-sm);font-family:'DM Sans',sans-serif;font-size:13.5px;color:var(--text);resize:none;transition:border-color .2s;line-height:1.55}
.anxiety-freetext::placeholder{color:var(--slate)}
.anxiety-freetext:focus{outline:none;border-color:var(--teal)}
.anxiety-none-note{font-size:12px;color:var(--slate);font-style:italic;margin-top:.65rem}

/* PRE-SESSION BRIEF SCREEN */
.brief-hero{text-align:center;margin-bottom:1.75rem;padding-top:.5rem}
.brief-eyebrow{font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--teal2);margin-bottom:.5rem}
.brief-headline{font-family:'DM Serif Display',serif;font-size:clamp(20px,3.5vw,30px);color:var(--navy);line-height:1.25;margin-bottom:.5rem}
.brief-headline em{color:var(--teal);font-style:italic}
.brief-subline{font-size:14px;color:var(--muted);max-width:500px;margin:0 auto;line-height:1.6}

.brief-band{border-radius:var(--radius);padding:1.25rem 1.5rem;margin-bottom:1.1rem}
.brief-band-label{font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;margin-bottom:.5rem}
.brief-band-text{font-size:14px;line-height:1.65}

.brief-section{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:1.35rem 1.5rem;margin-bottom:1rem}
.brief-section-hdr{display:flex;align-items:center;gap:.6rem;margin-bottom:1rem}
.brief-section-icon{width:28px;height:28px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0}
.brief-section-title{font-size:13.5px;font-weight:700;color:var(--navy)}

.exercise-card{background:var(--page);border:1px solid var(--border);border-radius:var(--radius-sm);padding:1rem 1.1rem;margin-bottom:.6rem}
.exercise-card:last-child{margin-bottom:0}
.exercise-name{font-size:13px;font-weight:700;color:var(--navy);margin-bottom:.2rem;display:flex;align-items:center;gap:.4rem}
.exercise-when{font-size:10.5px;font-weight:600;color:var(--teal2);background:var(--teal-bg);padding:2px 8px;border-radius:20px;display:inline-block;margin-bottom:.4rem}
.exercise-how{font-size:12.5px;color:var(--text);line-height:1.6}

.strategy-item{display:flex;gap:.75rem;align-items:flex-start;margin-bottom:.6rem}
.strategy-item:last-child{margin-bottom:0}
.strategy-dot{width:22px;height:22px;border-radius:50%;background:var(--amber);color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}
.strategy-content{}
.strategy-name{font-size:13px;font-weight:600;color:var(--navy);margin-bottom:.15rem}
.strategy-desc{font-size:12.5px;color:var(--muted);line-height:1.55}

.ritual-box{background:var(--navy);border-radius:var(--radius-sm);padding:1rem 1.25rem;color:#fff}
.ritual-label{font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--teal);margin-bottom:.45rem}
.ritual-text{font-size:13.5px;line-height:1.65;color:rgba(255,255,255,.9)}

.affirmation-box{border-left:3px solid var(--teal);padding:.75rem 1.1rem;background:var(--teal-bg);border-radius:0 var(--radius-sm) var(--radius-sm) 0;font-family:'DM Serif Display',serif;font-size:15px;color:var(--navy2);line-height:1.5;font-style:italic;margin-top:1rem}

/* BRIEF LOADING */
#screenBriefLoading .loading-msg{font-size:15px;font-weight:500;color:var(--navy)}
.brief-loading-steps{display:flex;flex-direction:column;gap:.4rem;margin-top:.85rem;text-align:left;max-width:320px;margin-left:auto;margin-right:auto}
.brief-step{font-size:12.5px;color:var(--slate);display:flex;align-items:center;gap:.5rem}
.brief-step.active{color:var(--teal2);font-weight:500}
.brief-step-dot{width:6px;height:6px;border-radius:50%;background:var(--border2);flex-shrink:0}
.brief-step.active .brief-step-dot{background:var(--teal)}
@keyframes briefFadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

/* JD UPLOAD CARD */
.jd-drop{border:2px dashed var(--border2);border-radius:var(--radius);padding:1.5rem;text-align:center;cursor:pointer;transition:all .2s;background:#fff;position:relative}
.jd-drop:hover,.jd-drop.drag{border-color:var(--teal);background:var(--teal-bg)}
.jd-drop input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.jd-drop-icon{font-size:28px;margin-bottom:.4rem}
.jd-drop-label{font-size:14px;font-weight:600;color:var(--navy);margin-bottom:.2rem}
.jd-drop-sub{font-size:12px;color:var(--muted)}
.jd-preview{background:var(--teal-bg);border:1px solid var(--teal-border);border-radius:var(--radius-sm);padding:.75rem 1rem;margin-top:.75rem;display:none}
.jd-preview-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.jd-preview-name{font-size:13px;font-weight:600;color:var(--teal2);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jd-clear{font-size:11px;color:var(--red);cursor:pointer;font-weight:600;flex-shrink:0;background:none;border:none;padding:0}
.jd-clear:hover{text-decoration:underline}
.jd-paste-toggle{font-size:12px;color:var(--teal2);cursor:pointer;text-decoration:underline;text-underline-offset:2px;display:block;margin-top:.6rem}
.jd-paste-area{display:none;margin-top:.65rem}
.jd-paste-area textarea{width:100%;min-height:100px;padding:10px 12px;border:1px solid var(--border2);border-radius:var(--radius-sm);font-family:'DM Sans',sans-serif;font-size:13px;color:var(--text);resize:vertical;transition:border-color .2s;line-height:1.55}
.jd-paste-area textarea:focus{outline:none;border-color:var(--teal)}
.jd-parsing{display:none;align-items:center;gap:.6rem;margin-top:.65rem;font-size:12.5px;color:var(--teal2);font-weight:500}
.jd-parsing-dot{width:8px;height:8px;border-radius:50%;background:var(--teal);animation:spin .9s linear infinite}
.jd-intel{display:none;margin-top:.75rem}
.jd-intel-row{display:flex;gap:.45rem;align-items:flex-start;margin-bottom:.35rem}
.jd-intel-dot{width:6px;height:6px;border-radius:50%;background:var(--teal);flex-shrink:0;margin-top:5px}
.jd-intel-text{font-size:12.5px;color:var(--navy2);line-height:1.5}

/* WELCOME HERO LOGO */
.welcome-logo-link{display:inline-block;margin:0 auto 1.5rem;border-radius:14px;transition:transform .25s ease,box-shadow .25s ease;line-height:0}
.welcome-logo-link:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(15,31,46,.12)}
.welcome-logo-link:focus-visible{outline:2px solid var(--teal);outline-offset:4px}
.welcome-logo{width:140px;height:140px;display:block;border-radius:14px;background:var(--navy)}
@media(max-width:480px){.welcome-logo{width:112px;height:112px}}

/* FOOTER */
.pp-footer{max-width:820px;margin:3rem auto 0;padding:1.5rem 1.25rem 2rem;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.85rem;border-top:1px solid var(--border)}
.pp-footer-link{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:var(--navy);font-weight:600;font-size:13px;transition:opacity .18s}
.pp-footer-link:hover{opacity:.7}
.pp-footer-link:focus-visible{outline:2px solid var(--teal);outline-offset:3px;border-radius:4px}
.pp-footer-logo{height:22px;width:22px;border-radius:4px;display:block}
.pp-footer-meta{font-size:11.5px;color:var(--muted);display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.pp-footer-meta a{color:var(--muted);text-decoration:none;border-bottom:1px solid transparent;transition:border-color .18s,color .18s}
.pp-footer-meta a:hover{color:var(--teal2);border-bottom-color:var(--teal-border)}
.pp-footer-sep{color:var(--slate)}

/* LOGIN SCREEN */
#screenLogin{padding-top:1.5rem;padding-bottom:3rem}
.login-card{max-width:440px;margin:0 auto;text-align:center;padding:1rem}
.login-logo-link{display:inline-block;margin:0 auto 1.25rem;border-radius:14px;transition:transform .25s ease,box-shadow .25s ease;line-height:0}
.login-logo-link:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(15,31,46,.12)}
.login-logo-link:focus-visible{outline:2px solid var(--teal);outline-offset:4px}
.login-logo{width:108px;height:108px;display:block;border-radius:14px;background:var(--navy)}
.login-eyebrow{font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--teal2);margin-bottom:.85rem}
.login-title{font-family:'DM Serif Display',serif;font-size:clamp(24px,4vw,32px);color:var(--navy);line-height:1.2;margin-bottom:.75rem}
.login-sub{font-size:14px;color:var(--muted);line-height:1.55;max-width:380px;margin:0 auto 1.75rem}
.login-form{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;text-align:left}
.login-form input[type=text],.login-form input[type=email]{width:100%;padding:11px 13px;border:1.5px solid var(--border2);border-radius:var(--radius-sm);font-family:'DM Sans',sans-serif;font-size:14px;color:var(--text);background:#fff;transition:border-color .2s}
.login-form input:focus{outline:none;border-color:var(--teal)}
.login-form .lbl{margin-bottom:.4rem}
.login-help{font-size:12.5px;color:var(--muted);margin-top:1.25rem;line-height:1.6;padding:.85rem 1rem;background:var(--page);border:1px solid var(--border);border-radius:var(--radius-sm)}
.login-help a{color:var(--teal2);text-decoration:none;font-weight:600}
.login-help a:hover{text-decoration:underline}

/* EMAIL MODAL */
.modal-overlay{position:fixed;inset:0;background:rgba(15,31,46,.55);backdrop-filter:blur(2px);z-index:200;display:flex;align-items:center;justify-content:center;padding:1.25rem;animation:modalFadeIn .18s ease}
@keyframes modalFadeIn{from{opacity:0}to{opacity:1}}
.modal-card{background:var(--card);border-radius:var(--radius);padding:1.75rem 1.75rem 1.5rem;max-width:460px;width:100%;position:relative;box-shadow:0 20px 50px rgba(15,31,46,.25);animation:modalSlideIn .22s ease}
@keyframes modalSlideIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.modal-close{position:absolute;top:.85rem;right:.85rem;background:transparent;border:none;font-size:18px;color:var(--muted);cursor:pointer;width:32px;height:32px;border-radius:6px;transition:background .15s,color .15s;display:flex;align-items:center;justify-content:center}
.modal-close:hover{background:var(--page);color:var(--text)}
.modal-eyebrow{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--teal2);margin-bottom:.4rem}
.modal-title{font-family:'DM Serif Display',serif;font-size:22px;color:var(--navy);line-height:1.25;margin-bottom:.5rem}
.modal-sub{font-size:13px;color:var(--muted);line-height:1.55;margin-bottom:1.25rem}
.modal-card input[type=email],.modal-card input[type=text]{width:100%;padding:10px 13px;border:1.5px solid var(--border2);border-radius:var(--radius-sm);font-family:'DM Sans',sans-serif;font-size:14px;color:var(--text);background:#fff;transition:border-color .2s}
.modal-card input:focus{outline:none;border-color:var(--teal)}
.modal-card .lbl{margin-bottom:.4rem}
.modal-hint{font-size:11.5px;color:var(--slate);margin-top:.3rem;line-height:1.4}
.modal-actions{display:flex;gap:.6rem;margin-top:1.25rem;align-items:center;flex-wrap:wrap}
.modal-actions .btn-teal{flex:1;min-width:140px}

/* SUCCESS BOX (sibling to .error-box for green confirmations) */
.success-box{background:var(--teal-bg);border:1px solid var(--teal-border);border-radius:var(--radius-sm);padding:.85rem 1rem;font-size:13px;color:var(--teal2);line-height:1.5}

/* FOOTER USER STATE */
#pp-footer-user{display:inline-flex;align-items:center;gap:.5rem;flex-wrap:wrap}
#pp-footer-email{color:var(--navy);font-weight:500}
#pp-footer-user a{color:var(--muted);text-decoration:none;border-bottom:1px solid transparent;transition:border-color .18s,color .18s}
#pp-footer-user a:hover{color:var(--red);border-bottom-color:rgba(226,75,74,.4)}
