/* ===========================================
 * PrepPanel How-To Guides - Complete Stylesheet
 * Covers: guide layout, UI recreations, annotations
 * =========================================== */

/* Extension fonts for UI recreations (website already loads Lexend + Inter) */
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@700&family=Poppins:wght@400;500;600;700&display=swap');

/* ===========================================
 * 1. GUIDE PAGE LAYOUT
 * =========================================== */

/* Breadcrumb */
.guide-breadcrumb {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
}

.guide-breadcrumb a {
    color: var(--color-teal-dark);
    font-weight: 500;
}

.guide-breadcrumb a:hover {
    text-decoration: underline;
}

.guide-breadcrumb .sep {
    margin: 0 0.5rem;
    color: var(--color-gray);
}

/* Two-column layout: main content + sticky TOC */
.guide-layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Main content area */
.guide-main {
    min-width: 0; /* prevent grid blowout */
}

/* Table of contents sidebar */
.guide-toc {
    position: sticky;
    top: 90px;
    align-self: start;
    font-size: 0.88rem;
    border-left: 2px solid var(--color-bg-light);
    padding-left: 1rem;
}

.guide-toc h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-teal-dark);
    margin-bottom: 0.75rem;
}

.guide-toc a {
    display: block;
    padding: 0.3rem 0;
    color: var(--color-gray);
    line-height: 1.4;
    font-weight: 400;
}

.guide-toc a:hover {
    color: var(--color-teal-dark);
}

/* Guide hero (compact version of website hero) */
.guide-hero {
    background: linear-gradient(45deg, #4FBBAC 0%, #4FBBAC 60%);
    background-image:
        url('data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512%22%20height%3D%22512%22%20preserveAspectRatio%3D%22none%22%3E%20%3Cstyle%3E%20line%20%7B%20stroke-linecap%3A%20square%3B%20stroke-width%3A%201.01px%3B%20stroke%3A%20rgba(255,255,255,0.188)%3B%20vector-effect%3A%20non-scaling-stroke%3B%20%7D%20%3C%2Fstyle%3E%20%3Cline%20x1%3D%22256%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%22256%22%20%2F%3E%20%3Cline%20x1%3D%22256%22%20y1%3D%22512%22%20x2%3D%22512%22%20y2%3D%22256%22%20%2F%3E%3C%2Fsvg%3E'),
        linear-gradient(45deg, #4FBBAC 0%, #4FBBAC 60%);
    background-size: 169px, cover;
    padding: 3rem 0;
    text-align: center;
    color: var(--color-white);
}

.guide-hero h1 {
    color: var(--color-white);
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
}

.guide-hero p {
    font-size: 1.2rem;
    opacity: 0.92;
    margin-bottom: 0;
}

/* ===========================================
 * 2. STEP CONTAINERS
 * =========================================== */

.guide-step {
    margin-bottom: 3.5rem;
    scroll-margin-top: 90px;
}

.guide-step__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.guide-step__number {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--color-teal-dark);
    color: var(--color-white);
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-step__title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-teal-dark);
    margin: 0;
    line-height: 1.3;
}

.guide-step__body {
    padding-left: 0;
}

.guide-step__body p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ===========================================
 * 3. TIP / WARNING / PREREQ BOXES
 * =========================================== */

.guide-tip {
    background: var(--color-bg-light);
    border-left: 4px solid var(--color-teal);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1.5rem 0;
}

.guide-tip strong {
    color: var(--color-teal-dark);
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.guide-tip p {
    margin: 0;
    font-size: 1rem;
}

.guide-warning {
    background: #FFF8E1;
    border-left-color: var(--color-yellow);
}

.guide-warning strong {
    color: #8B6914;
}

.guide-prereqs {
    background: var(--color-white);
    border: 2px solid var(--color-teal);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.guide-prereqs h3 {
    font-size: 1.2rem;
    color: var(--color-teal-dark);
    margin-bottom: 0.75rem;
}

.guide-prereqs ul {
    margin: 0;
    padding-left: 1.5rem;
}

.guide-prereqs li {
    margin-bottom: 0.4rem;
    font-size: 1rem;
    line-height: 1.6;
}

.guide-prereqs li::marker {
    color: var(--color-teal);
}

/* ===========================================
 * 4. FAQ ACCORDION
 * =========================================== */

.guide-faq {
    margin-top: 3rem;
}

.guide-faq h2 {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
}

.guide-faq details {
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    margin-bottom: 0.6rem;
    overflow: hidden;
}

.guide-faq summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    background: var(--color-gray-light);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guide-faq summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-teal-dark);
    transition: transform 0.2s ease;
}

.guide-faq details[open] summary::after {
    content: '−';
}

.guide-faq summary::-webkit-details-marker {
    display: none;
}

.guide-faq .faq-answer {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    line-height: 1.7;
}

.guide-faq .faq-answer p {
    margin: 0;
}

/* ===========================================
 * 5. NEXT STEPS CARDS
 * =========================================== */

.guide-next-steps {
    margin-top: 3rem;
}

.guide-next-steps h2 {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
}

.guide-next-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.guide-next-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.guide-next-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.guide-next-card h3 {
    font-size: 1.25rem;
    color: var(--color-teal-dark);
    margin-bottom: 0.5rem;
}

.guide-next-card p {
    font-size: 0.95rem;
    color: var(--color-gray);
    margin: 0;
}

.guide-next-card.coming-soon {
    opacity: 0.55;
    pointer-events: none;
}

.guide-next-card.coming-soon::after {
    content: 'Coming Soon';
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-teal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===========================================
 * 6. EXTENSION UI RECREATIONS
 *
 * Faithful recreations of the extension UI
 * using the extension's actual design tokens.
 * =========================================== */

/* -- Base Container -- */
.pp-panel {
    position: relative;
    font-family: 'Poppins', sans-serif;
    color: #4a443f;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    max-width: 380px;
    margin: 2rem auto;
    border: 1px solid #ddd;
    font-size: 15px;
    line-height: 1.5;
}

.pp-panel *, .pp-panel *::before, .pp-panel *::after {
    box-sizing: border-box;
}

/* Reset website styles inside panel recreations */
.pp-panel h2, .pp-panel h3, .pp-panel h4, .pp-panel p {
    font-family: 'Poppins', sans-serif;
    color: #4a443f;
    text-align: left;
    margin: 0;
    padding: 0;
}

/* Dashboard variant - wider */
.pp-panel--dashboard {
    max-width: 460px;
}

/* -- Header Area (gray bar above tabs) -- */
.pp-header {
    background-color: #f4f1ed;
    padding: 8px 15px 0;
}

/* -- Tab Bar -- */
.pp-tabs {
    display: flex;
    gap: 4px;
    padding: 8px 15px 4px;
    background-color: #f4f1ed;
}

.pp-tab {
    border: 1px solid #c9c1b9;
    border-bottom: none;
    padding: 4px 10px;
    line-height: 1.1;
    font-family: 'Kalam', cursive;
    font-size: 1.05em;
    border-radius: 6px 6px 0 0;
    background-color: #dcd7d1;
    color: #9c8f83;
    cursor: default;
}

.pp-tab--active {
    background-color: #fdfaf6;
    border-top: 3px solid #f39c12;
    padding-top: 2px;
    color: #4a443f;
    border-color: #c9c1b9;
}

/* Sub-tabs */
.pp-subtabs {
    display: flex;
    gap: 4px;
    padding: 0 15px 4px;
    margin-top: 4px;
    background-color: #f4f1ed;
}

.pp-subtab {
    border: 1px solid #c9c1b9;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    padding: 4px 12px;
    line-height: 1.1;
    font-family: 'Kalam', cursive;
    font-size: 0.95em;
    background-color: #dcd7d1;
    color: #9c8f83;
    cursor: default;
}

.pp-subtab--active {
    background-color: #fdfaf6;
    border-top: 3px solid #f39c12;
    padding-top: 2px;
    color: #4a443f;
    border-color: #c9c1b9;
}

/* -- Lined Paper Content Area -- */
.pp-body {
    background-color: #fdfaf6;
    background-image: linear-gradient(#eaddd3 1px, transparent 1px);
    background-size: 100% 1.8em;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* -- Picker / Queue Display -- */
.pp-picker {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
    gap: 8px;
}

.pp-up-next {
    font-size: 2.2em;
    line-height: 1.3;
    font-weight: 700;
    color: #4a443f;
}

.pp-on-deck {
    font-size: 1.6em;
    line-height: 1.3;
    font-weight: 600;
    color: #3498db;
}

.pp-getting-ready {
    font-size: 1.2em;
    line-height: 1.3;
    color: #9c8f83;
}

/* -- Buttons (non-interactive) -- */
.pp-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pp-btn {
    border: none;
    padding: 8px 10px;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    cursor: default;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    text-align: center;
}

.pp-btn--complete {
    background-color: #298c76;
    color: white;
    flex: 1 1 45%;
}

.pp-btn--reset {
    background-color: #dcdcdc;
    color: #4a443f;
    flex: 1 1 45%;
}

.pp-btn--dark {
    background-color: #575757;
    color: white;
    width: 100%;
}

.pp-btn--primary {
    background-color: #298c76;
    color: white;
    display: block;
    width: 100%;
}

.pp-btn--secondary {
    background-color: #f4f1ed;
    color: #4a443f;
    border: 1px solid #c9c1b9;
    display: block;
    width: 100%;
}

.pp-btn--link {
    background: none;
    border: none;
    color: #0d6efd;
    font-size: 0.88em;
    text-decoration: underline;
    box-shadow: none;
    cursor: default;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 4px;
}

.pp-btn--hero {
    background-color: #298c76;
    color: white;
    display: block;
    width: 100%;
    font-size: 0.95em;
    padding: 10px;
    border-radius: 8px;
}

/* -- Edit Card -- */
.pp-edit-card {
    background-color: #ffffff;
    border: 1px solid #eaddd3;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.pp-edit-card + .pp-edit-card {
    margin-top: 10px;
}

.pp-edit-card h4 {
    font-family: 'Kalam', cursive;
    font-size: 1.15em;
    color: #4a443f;
    margin: 0 0 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid #eaddd3;
}

.pp-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4a443f;
    font-size: 0.85em;
}

.pp-textarea {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85em;
    resize: none;
    background: white;
    color: #4a443f;
}

.pp-file-input {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85em;
    background: white;
    color: #4a443f;
}

/* -- Roster Names -- */
.pp-roster-name {
    padding: 6px 0;
    font-weight: 600;
    color: #4a443f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
}

.pp-roster-name--picked {
    text-decoration: line-through;
    color: #9c8f83;
}

.pp-roster-name--absent {
    text-decoration: line-through;
    color: #9c8f83;
    opacity: 0.7;
}

.pp-btn-absent {
    font-size: 0.75em;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: white;
    color: #4a443f;
    box-shadow: none;
    cursor: default;
}

.pp-btn-remove {
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 4px;
    border: none;
    background: #e74c3c;
    color: white;
    box-shadow: none;
    cursor: default;
}

/* Roster header (with label + toggle) */
.pp-roster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 6px;
    border-bottom: 1px solid #eaddd3;
    margin-bottom: 4px;
}

.pp-roster-header h4 {
    font-family: 'Kalam', cursive;
    font-size: 1.1em;
    color: #4a443f;
    margin: 0;
    border: none;
    padding: 0;
}

/* -- Welcome / Setup Screen -- */
.pp-welcome {
    text-align: center;
    padding: 20px 16px;
}

.pp-welcome h3 {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 4px;
    text-align: center;
}

.pp-welcome .pp-subtitle {
    font-size: 0.95em;
    color: #9c8f83;
    margin-bottom: 16px;
    text-align: center;
}

.pp-welcome .pp-description {
    font-size: 0.85em;
    color: #9c8f83;
    line-height: 1.4;
    margin-bottom: 10px;
    text-align: center;
}

.pp-divider {
    text-align: center;
    font-weight: 600;
    color: #9c8f83;
    margin: 14px 0;
    font-size: 0.9em;
}

.pp-form-label {
    display: block;
    font-weight: 600;
    color: #4a443f;
    font-size: 0.9em;
    margin-bottom: 6px;
    text-align: left;
}

.pp-input {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 8px 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
    color: #4a443f;
    background: white;
}

.pp-input--small {
    width: 60px;
    text-align: center;
}

.pp-section-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
    text-align: left;
}

/* -- Dashboard Components -- */
.pp-dash-header {
    background-color: #f4f1ed;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #eaddd3;
}

.pp-dash-header h3 {
    font-family: 'Kalam', cursive;
    font-size: 1.15em;
    margin: 0;
}

.pp-dash-tabs {
    display: flex;
    gap: 0;
    background-color: #f4f1ed;
    padding: 0 12px;
    border-bottom: 1px solid #eaddd3;
    overflow-x: auto;
}

.pp-dash-tab {
    padding: 8px 12px;
    font-size: 0.82em;
    font-weight: 600;
    color: #9c8f83;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    cursor: default;
}

.pp-dash-tab--active {
    color: #4a443f;
    border-bottom-color: #3498db;
}

/* Dashboard participation card */
.pp-participation-card {
    background-color: #ffffff;
    border: 1px solid #eaddd3;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pp-participant-name {
    text-align: center;
    border-bottom: 1px solid #eaddd3;
    padding-bottom: 8px;
}

.pp-participant-name .pp-label {
    font-size: 0.85em;
    color: #9c8f83;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2px;
}

.pp-participant-name h3 {
    font-size: 1.7em;
    font-weight: 700;
    color: #4a443f;
    text-align: center;
}

.pp-status-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pp-status-btn {
    border: none;
    padding: 8px 12px;
    font-size: 0.88em;
    font-weight: 700;
    border-radius: 6px;
    color: #fff;
    cursor: default;
    flex: 1 1 100px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.pp-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.pp-btn-skip {
    background-color: #ffffff;
    color: #4a443f;
    border: 1px solid #eaddd3;
    padding: 6px 10px;
    font-size: 0.82em;
    font-weight: 600;
    border-radius: 5px;
    cursor: default;
    flex: 1;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    box-shadow: none;
}

.pp-btn-undo {
    background-color: transparent;
    color: #3498db;
    border: 1px dashed #3498db;
    padding: 6px 10px;
    font-size: 0.82em;
    font-weight: 600;
    border-radius: 5px;
    cursor: default;
    flex: 1;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    box-shadow: none;
}

.pp-btn-reset-dash {
    background-color: transparent;
    color: #f39c12;
    border: 1px dashed #f39c12;
    padding: 6px 10px;
    font-size: 0.82em;
    font-weight: 600;
    border-radius: 5px;
    cursor: default;
    flex: 1;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    box-shadow: none;
}

/* Dashboard body */
.pp-dash-body {
    background-color: #fdfaf6;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* -- Settings Card -- */
.pp-settings-card {
    background-color: #ffffff;
    border: 1px solid #eaddd3;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.pp-settings-card + .pp-settings-card {
    margin-top: 10px;
}

.pp-settings-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    font-weight: 700;
    color: #4a443f;
    margin: 0 0 8px;
}

.pp-settings-card p {
    font-size: 0.82em;
    color: #9c8f83;
    line-height: 1.4;
    margin: 0 0 8px;
}

.pp-settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.pp-settings-row .pp-label {
    font-size: 0.85em;
    margin: 0;
}

.pp-select {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 4px 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82em;
    color: #4a443f;
    background: white;
}

.pp-btn--destructive {
    background-color: #e74c3c;
    color: white;
    display: block;
    width: 100%;
    font-size: 0.82em;
    padding: 7px;
}

.pp-btn--outline-danger {
    background: transparent;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    display: block;
    width: 100%;
    font-size: 0.82em;
    padding: 7px;
}

/* -- Remote Clicker Dialog (Dashboard) -- */
.pp-clicker-dialog {
    background: white;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
}

.pp-clicker-dialog h4 {
    font-size: 1.1em;
    font-weight: 700;
    margin: 0 0 4px;
    text-align: center;
}

.pp-clicker-dialog .pp-clicker-subtitle {
    font-size: 0.85em;
    color: #9c8f83;
    margin-bottom: 12px;
}

.pp-clicker-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82em;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.pp-clicker-status--waiting {
    background: #f4f1ed;
    color: #9c8f83;
}

.pp-clicker-status--connected {
    background: #e8f8f5;
    color: #298c76;
}

.pp-clicker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.pp-clicker-dot--gray { background: #bbb; }
.pp-clicker-dot--green { background: #298c76; }

.pp-clicker-code {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6em;
    font-weight: 700;
    color: #4a443f;
    letter-spacing: 0.02em;
    margin: 8px 0;
    padding: 10px;
    background: #f7f4f1;
    border-radius: 8px;
    border: 1px dashed #eaddd3;
}

.pp-clicker-url {
    font-size: 0.88em;
    color: #3498db;
    font-weight: 600;
    margin-bottom: 16px;
}

.pp-clicker-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* -- Remote Clicker Phone Screen -- */
.pp-phone {
    position: relative;
    font-family: 'Poppins', sans-serif;
    color: #4a443f;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    max-width: 320px;
    margin: 2rem auto;
    border: 3px solid #333;
    font-size: 14px;
    line-height: 1.4;
    background: #f8f9fa;
}

.pp-phone *, .pp-phone *::before, .pp-phone *::after {
    box-sizing: border-box;
}

.pp-phone h3, .pp-phone h4, .pp-phone p {
    font-family: 'Poppins', sans-serif;
    color: #4a443f;
    margin: 0;
    padding: 0;
    text-align: left;
}

.pp-phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.pp-phone-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78em;
    font-weight: 600;
    color: #298c76;
}

.pp-phone-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pp-phone-upnext {
    background: white;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.pp-phone-upnext .pp-phone-label {
    font-size: 0.78em;
    color: #9c8f83;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.pp-phone-upnext .pp-phone-name {
    font-size: 1.5em;
    font-weight: 700;
    color: #4a443f;
    margin: 4px 0;
    text-align: center;
}

.pp-phone-upnext .pp-phone-count {
    font-size: 0.78em;
    color: #9c8f83;
    text-align: center;
}

.pp-phone-quality-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pp-phone-quality-btn {
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
    font-weight: 700;
    color: white;
    text-align: center;
    cursor: default;
}

.pp-phone-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pp-phone-action-btn {
    flex: 1 1 45%;
    padding: 10px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82em;
    font-weight: 600;
    text-align: center;
    cursor: default;
    border: 1.5px solid;
    background: white;
}

.pp-phone-action-btn--skip {
    color: #e17055;
    border-color: #e17055;
    background: #fef0ed;
}

.pp-phone-action-btn--complete {
    color: #00b894;
    border-color: #00b894;
    background: #e8f8f5;
}

.pp-phone-action-btn--undo {
    color: #636e72;
    border-color: #b2bec3;
    background: #f5f6fa;
}

.pp-phone-action-btn--reset {
    color: #dc2626;
    border-color: #dc2626;
    background: #fef2f2;
    font-size: 0.78em;
}

/* ===========================================
 * 7. ANNOTATION SYSTEM
 * =========================================== */

/* Annotated wrapper */
.pp-panel--annotated {
    overflow: visible;
}

/* Numbered callout circle */
.callout {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #298C76;
    color: white;
    font-family: 'Lexend', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Arrow variants */
.callout--arrow-down::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #298C76;
}

.callout--arrow-up::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 7px solid #298C76;
}

.callout--arrow-right::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 7px solid #298C76;
}

.callout--arrow-left::after {
    content: '';
    position: absolute;
    left: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 7px solid #298C76;
}

/* Highlight border on targeted element */
.pp-highlight {
    outline: 3px solid #4FBBAC;
    outline-offset: 3px;
    border-radius: 6px;
    position: relative;
}

.pp-highlight--subtle {
    outline: 2px dashed #4FBBAC;
    outline-offset: 2px;
}

/* Annotation description list (below mockup) */
.annotation-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem auto;
    max-width: 380px;
}

.annotation-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    line-height: 1.55;
    font-size: 0.95rem;
}

.callout-inline {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    min-width: 26px;
    background: #298C76;
    color: white;
    font-family: 'Lexend', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

/* ===========================================
 * 8. PACING & ROADMAPS UI RECREATIONS
 * =========================================== */

/* -- Summary cards (On Track / Behind / Catch Up / Extension) -- */
.pp-pacing-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}

.pp-pacing-summary__card {
    padding: 14px;
    border-radius: 10px;
    background: rgba(236, 240, 241, 0.6);
    display: grid;
    gap: 4px;
}

.pp-pacing-summary__card dl {
    margin: 0;
    display: grid;
    gap: 4px;
}

.pp-pacing-summary__card dt {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9c8f83;
    font-weight: 600;
}

.pp-pacing-summary__card dd {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #4a443f;
}

.pp-pacing-summary__card--success { background: rgba(46, 204, 113, 0.12); }
.pp-pacing-summary__card--success dd { color: #27ae60; }
.pp-pacing-summary__card--warning { background: rgba(241, 196, 15, 0.16); }
.pp-pacing-summary__card--warning dd { color: #f39c12; }
.pp-pacing-summary__card--danger  { background: rgba(231, 76, 60, 0.16); }
.pp-pacing-summary__card--danger dd  { color: #e74c3c; }
.pp-pacing-summary__card--info    { background: rgba(41, 128, 185, 0.16); }
.pp-pacing-summary__card--info dd    { color: #2980b9; }

.pp-pacing-summary__meta {
    font-size: 13px;
    color: #9c8f83;
    margin-top: 4px;
}

/* -- Sidebar tree: units and roadmaps -- */
.pp-pacing-tree {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pp-pacing-tree__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.pp-pacing-tree__eyebrow {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #9c8f83;
    margin: 0 0 2px;
}

.pp-pacing-tree__header h5 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.88em;
    font-weight: 700;
    color: #4a443f;
    margin: 0;
}

.pp-pacing-unit {
    border: 1px solid #eaddd3;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    border-left: 6px solid var(--unit-color, #6c5ce7);
}

.pp-pacing-unit.is-active {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 1px rgba(108, 92, 231, 0.15);
    border-left-color: var(--unit-color, #6c5ce7);
}

.pp-pacing-unit__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pp-pacing-unit__badge {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--unit-color, #6c5ce7);
    flex-shrink: 0;
}

.pp-pacing-unit__label {
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #9c8f83;
    margin: 0;
}

.pp-pacing-unit__title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85em;
    font-weight: 700;
    color: #4a443f;
    margin: 0;
}

.pp-pacing-unit__total {
    font-size: 11px;
    color: #9c8f83;
    margin-left: auto;
}

.pp-pacing-roadmap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid #eaddd3;
    border-radius: 10px;
    padding: 8px;
    background: #fff;
    margin-top: 4px;
}

.pp-pacing-roadmap.is-active {
    background: rgba(108, 92, 231, 0.08);
    border-color: #6c5ce7;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.1);
}

.pp-pacing-roadmap__name {
    font-size: 0.82em;
    font-weight: 600;
    color: #4a443f;
    margin: 0;
}

.pp-pacing-roadmap__meta {
    font-size: 11px;
    color: #9c8f83;
    display: flex;
    gap: 8px;
}

/* -- Activity columns (kanban by tier) -- */
.pp-pacing-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.pp-pacing-column {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    background: var(--tier-color-muted, #f9f7f5);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100px;
}

.pp-pacing-column__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78em;
    color: #9c8f83;
}

.pp-pacing-column__label {
    font-weight: 700;
    color: var(--tier-color, #9c8f83);
}

.pp-pacing-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--tier-color, #6c5ce7);
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.pp-pacing-card__title {
    font-size: 0.82em;
    font-weight: 600;
    color: #4a443f;
    margin: 0 0 2px;
}

.pp-pacing-card__meta {
    font-size: 0.72em;
    color: #9c8f83;
    display: flex;
    gap: 8px;
}

.pp-pacing-card__stats {
    font-size: 0.72em;
    color: #9c8f83;
    margin-top: 4px;
    display: flex;
    gap: 8px;
}

/* -- Progress matrix (student x activity grid) -- */
.pp-pacing-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78em;
    background: #fff;
}

.pp-pacing-matrix th,
.pp-pacing-matrix td {
    border: 1px solid #eaddd3;
    padding: 6px 8px;
    text-align: left;
    font-size: 0.95em;
}

.pp-pacing-matrix thead th {
    background: rgba(236, 240, 241, 0.7);
    font-weight: 600;
    text-align: center;
}

.pp-pacing-matrix thead th:first-child {
    text-align: left;
}

.pp-pacing-matrix .pp-tier-header {
    text-align: center;
    font-weight: 600;
    font-size: 0.92em;
}

.pp-pacing-matrix .pp-tier-header--learn {
    background: rgba(108, 92, 231, 0.12);
    color: #5a4bd4;
}

.pp-pacing-matrix .pp-tier-header--grow {
    background: rgba(26, 188, 156, 0.12);
    color: #15846b;
}

.pp-pacing-matrix .pp-tier-header--challenge {
    background: rgba(241, 196, 15, 0.16);
    color: #9a7d0a;
}

.pp-pacing-matrix tbody th {
    font-weight: 600;
    background: rgba(236, 240, 241, 0.5);
}

.pp-pacing-matrix td {
    text-align: center;
}

/* Status dots inside the matrix */
.pp-status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    vertical-align: middle;
}

.pp-status-dot--not-started  { background: #bdc3c7; }
.pp-status-dot--in-progress  { background: #f39c12; }
.pp-status-dot--ready-check  { background: #2980b9; }
.pp-status-dot--complete     { background: #27ae60; }
.pp-status-dot--catch-up     { background: #e74c3c; }

/* -- Public pacing board recreation -- */
.pp-pacing-board {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #eaddd3;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.pp-pacing-board__header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: flex-start;
    justify-content: space-between;
}

.pp-pacing-board__eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9c8f83;
    margin: 0;
}

.pp-pacing-board__header h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    font-weight: 700;
    color: #4a443f;
    margin: 0;
    line-height: 1.1;
}

.pp-pacing-board__dates {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72em;
    font-weight: 600;
    background: rgba(231, 236, 255, 0.6);
    color: #4a443f;
}

.pp-pacing-board__settings {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.pp-pacing-board__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    font-size: 0.72em;
    color: #9c8f83;
}

.pp-pacing-board__legend {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pp-pacing-board__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background: rgba(244, 240, 232, 0.8);
    border-radius: 999px;
    font-size: 0.72em;
    font-weight: 600;
    color: #4a443f;
}

.pp-pacing-board__legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
}

/* -- Tier badge pills -- */
.pp-tier-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.72em;
    font-weight: 700;
    color: white;
    letter-spacing: 0.02em;
}

.pp-tier-badge--learn     { background: #6c5ce7; }
.pp-tier-badge--grow      { background: #1abc9c; }
.pp-tier-badge--challenge { background: #f1c40f; color: #4a443f; }

/* -- Collapsible section (settings panels) -- */
.pp-pacing-collapsible {
    border: 1px solid #eaddd3;
    border-radius: 10px;
    background: #fff;
}

.pp-pacing-collapsible summary {
    list-style: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    padding: 12px 14px;
}

.pp-pacing-collapsible summary::-webkit-details-marker { display: none; }

.pp-pacing-collapsible summary h5 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85em;
    font-weight: 700;
    color: #4a443f;
    margin: 0;
}

.pp-pacing-collapsible summary p {
    font-size: 0.75em;
    color: #9c8f83;
    margin: 2px 0 0;
}

.pp-pacing-collapsible__chevron {
    width: 10px;
    height: 10px;
    border: solid #9c8f83;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-top: 4px;
}

.pp-pacing-collapsible[open] .pp-pacing-collapsible__chevron {
    transform: rotate(-135deg);
}

.pp-pacing-collapsible__content {
    padding: 0 14px 14px;
    border-top: 1px solid #eaddd3;
    display: grid;
    gap: 10px;
}

/* -- Status color card (editable statuses) -- */
.pp-pacing-status-card {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 8px;
    align-items: start;
}

.pp-pacing-status-preview {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.pp-pacing-status-fields {
    display: grid;
    gap: 4px;
}

.pp-pacing-status-fields label {
    font-size: 0.72em;
    font-weight: 600;
    color: #9c8f83;
}

.pp-pacing-status-fields input {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 3px 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82em;
    color: #4a443f;
    background: white;
}

/* ===========================================
 * 9. RESPONSIVE
 * =========================================== */

@media (max-width: 768px) {
    .guide-layout {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }

    .guide-toc {
        position: static;
        border-left: none;
        padding-left: 0;
        background: var(--color-gray-light);
        padding: 1rem 1.25rem;
        border-radius: var(--radius-sm);
        margin-bottom: 1.5rem;
    }

    .guide-hero h1 {
        font-size: 2rem;
    }

    .guide-step__title {
        font-size: 1.35rem;
    }

    .pp-panel {
        max-width: 100%;
        margin: 1.5rem 0;
    }

    .pp-panel--dashboard {
        max-width: 100%;
    }

    .annotation-list {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .guide-layout {
        padding: 1.5rem 1rem;
    }

    .guide-step__number {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 1.1rem;
    }

    .pp-up-next {
        font-size: 1.8em;
    }

    .pp-on-deck {
        font-size: 1.3em;
    }
}
