/* =========================================================================
   PlacementFlow — pf-* reskin for the remaining legacy student screens.
   Loaded AFTER style.css and today-redesign.css (which defines the --pf-*
   tokens + shell reskin). CSS-only, scoped per screen, !important to beat the
   large legacy style.css — same approach as styles/timetable-redesign.css.

   Covers: Notices, Conditions & skills, Roadmaps, Tips & advice (app.html
   in-page sections) + Teaching (body.teaching-page) + Settings
   (body.student-settings-page).
   ========================================================================= */

/* =========================================================================
   NOTICES — body.app-dashboard #section-notices.student-notices
   ========================================================================= */
body.app-dashboard #section-notices.student-notices .notice-page-title{color:var(--pf-brand-ink) !important;font-weight:600 !important;letter-spacing:-0.02em}
/* .notice-filter-chip pill overrides removed 2026-07-30 — the Day Sheet
   segmented control in styles/notices-board.css owns these classes */
body.app-dashboard #section-notices.student-notices .notice-card{background:var(--pf-surface) !important;border:1px solid var(--pf-line) !important;box-shadow:var(--pf-sh) !important;border-radius:var(--pf-r) !important}
body.app-dashboard #section-notices.student-notices .notice-item--highlight .notice-card{box-shadow:0 0 0 2px rgba(31,111,214,.35), var(--pf-sh) !important}
body.app-dashboard #section-notices.student-notices .notice-icon{background:var(--pf-brand-tint) !important;color:var(--pf-brand) !important;border-radius:var(--pf-r-sm) !important}
body.app-dashboard #section-notices.student-notices .notice-title{color:var(--pf-ink) !important}
body.app-dashboard #section-notices.student-notices .notice-body{color:var(--pf-ink-2) !important}
body.app-dashboard #section-notices.student-notices .notice-meta,
body.app-dashboard #section-notices.student-notices .notice-bin-item-meta{color:var(--pf-ink-3) !important}
body.app-dashboard #section-notices.student-notices .notice-tag--pinned{background:var(--pf-amber-tint) !important;color:#8a5200 !important}
body.app-dashboard #section-notices.student-notices .notice-tag--important{background:rgba(224,73,59,.12) !important;color:var(--pf-red) !important}
body.app-dashboard #section-notices.student-notices .notice-footer{border-top:1px solid var(--pf-line) !important}
body.app-dashboard #section-notices.student-notices .notice-action-btn--reply,
body.app-dashboard #section-notices.student-notices .notice-reply-edit-btn{background:var(--pf-brand-tint) !important;border:1px solid var(--pf-brand-tint) !important;color:var(--pf-brand) !important}
body.app-dashboard #section-notices.student-notices .notice-action-btn--bin,
body.app-dashboard #section-notices.student-notices .notice-reply-edit-btn.is-cancel{background:var(--pf-bg) !important;border:1px solid var(--pf-line) !important;color:var(--pf-ink-2) !important}
body.app-dashboard #section-notices.student-notices .notice-reply-action.is-danger{background:rgba(224,73,59,.10) !important;border:1px solid rgba(224,73,59,.25) !important;color:var(--pf-red) !important}
body.app-dashboard #section-notices.student-notices .notice-replies-toggle,
body.app-dashboard #section-notices.student-notices .notice-more-btn,
body.app-dashboard #section-notices.student-notices .notice-reply-action{color:var(--pf-brand) !important}
body.app-dashboard #section-notices.student-notices .notice-menu-btn{color:var(--pf-ink-3) !important}
body.app-dashboard #section-notices.student-notices .notice-menu-btn:hover{background:var(--pf-brand-tint) !important;color:var(--pf-brand) !important}
body.app-dashboard #section-notices.student-notices .notice-bin-panel{background:var(--pf-surface) !important;border:1px solid var(--pf-line) !important;box-shadow:var(--pf-sh) !important;border-radius:var(--pf-r) !important}
body.app-dashboard #section-notices.student-notices .notice-bin-empty{color:var(--pf-ink-2) !important}
body.app-dashboard #section-notices.student-notices .notice-bin-empty h3{color:var(--pf-ink) !important}
body.app-dashboard #section-notices.student-notices .notice-bin-illustration{color:var(--pf-ink-3) !important}
body.app-dashboard #section-notices.student-notices .notice-inbox-empty{background:var(--pf-bg) !important;border:1px dashed var(--pf-line) !important;color:var(--pf-ink-2) !important;border-radius:var(--pf-r-sm) !important}
body.app-dashboard #section-notices.student-notices .notice-bin-item,
body.app-dashboard #section-notices.student-notices .notice-thread{background:var(--pf-bg) !important;border:1px solid var(--pf-line) !important;border-radius:var(--pf-r-sm) !important}

/* Conditions & skills: retired — the Casebook (styles/conditions-casebook.css)
   owns #section-conditions now with fresh cs-* classes. */

/* Roadmaps: retired — the Route (styles/roadmaps-route.css) owns
   #section-roadmaps now with fresh rt-* classes. */

/* =========================================================================
   TIPS & ADVICE — body.app-dashboard #section-tips
   ========================================================================= */
body.app-dashboard #section-tips .tips-pill-icon,
body.app-dashboard #section-tips .tips-topic-icon{background:var(--pf-brand-tint) !important;color:var(--pf-brand) !important;border-radius:var(--pf-r-sm) !important}
body.app-dashboard #section-tips .tips-pill-icon--clinician,
body.app-dashboard #section-tips .tips-topic-icon--clinician{background:var(--pf-teal-tint) !important;color:var(--pf-teal) !important}
body.app-dashboard #section-tips .tips-pill-icon--signoff,
body.app-dashboard #section-tips .tips-topic-icon--signoff,
body.app-dashboard #section-tips .tips-topic-icon--skills{background:var(--pf-amber-tint) !important;color:#8a5200 !important}
body.app-dashboard #section-tips .tips-topic-icon--exam{background:rgba(224,73,59,.12) !important;color:var(--pf-red) !important}
body.app-dashboard #section-tips .tips-pill-chip,
body.app-dashboard #section-tips .tips-suggestion-pill{background:var(--pf-brand-tint) !important;color:var(--pf-brand) !important;border-radius:var(--pf-r-pill) !important}
body.app-dashboard #section-tips .tips-pill{border:1px solid var(--pf-line) !important;box-shadow:var(--pf-sh) !important;border-radius:var(--pf-r) !important;background:var(--pf-surface) !important}
body.app-dashboard #section-tips .tips-featured-card,
body.app-dashboard #section-tips .tips-topics,
body.app-dashboard #section-tips .tips-suggestion{border:1px solid var(--pf-line) !important;border-radius:var(--pf-r) !important;box-shadow:var(--pf-sh) !important}
body.app-dashboard #section-tips .tips-featured-media{background:var(--pf-brand-tint) !important;border-radius:var(--pf-r) !important}
body.app-dashboard #section-tips .tips-topic-item{background:var(--pf-bg) !important;border:1px solid var(--pf-line) !important;color:var(--pf-ink) !important;border-radius:var(--pf-r) !important}
body.app-dashboard #section-tips .tips-topic-item:hover{background:var(--pf-brand-tint) !important;border-color:var(--pf-brand) !important}
body.app-dashboard #section-tips .tips-topic-item.is-active{background:var(--pf-brand-tint) !important;border-color:var(--pf-brand) !important;color:var(--pf-brand) !important}
body.app-dashboard #section-tips .tips-search{border:1px solid var(--pf-line) !important;border-radius:var(--pf-r-pill) !important}
body.app-dashboard #section-tips .tips-search input{color:var(--pf-ink) !important}
body.app-dashboard #section-tips .tips-bookmark-btn{border:1px solid var(--pf-line) !important;background:var(--pf-bg) !important;color:var(--pf-ink-3) !important;border-radius:var(--pf-r-sm) !important}
body.app-dashboard #section-tips .tips-bookmark-btn.is-saved{color:#8a5200 !important;background:var(--pf-amber-tint) !important;border-color:var(--pf-amber) !important}
body.app-dashboard #section-tips .tips-actions-row .btn.secondary,
body.app-dashboard #section-tips .tips-saved-page-header .btn.secondary{background:var(--pf-surface) !important;color:var(--pf-brand) !important;border:1px solid var(--pf-line) !important;box-shadow:none !important;border-radius:var(--pf-r-sm) !important}
body.app-dashboard #section-tips .tips-featured-action .btn.primary,
body.app-dashboard #section-tips .btn.primary{background:var(--pf-brand) !important;box-shadow:var(--pf-sh) !important;border:0 !important;border-radius:var(--pf-r-sm) !important}
body.app-dashboard #section-tips .tips-featured-action .btn.primary:hover,
body.app-dashboard #section-tips .btn.primary:hover{background:var(--pf-brand-2) !important}
body.app-dashboard #section-tips .tips-empty{border:1px dashed var(--pf-line) !important;background:var(--pf-bg) !important;color:var(--pf-ink-3) !important;border-radius:var(--pf-r) !important}
body.app-dashboard #section-tips .tips-section-header h3,
body.app-dashboard #section-tips .tips-featured-content h4,
body.app-dashboard #section-tips .tips-suggestion h4,
body.app-dashboard #section-tips .tips-pill-title{color:var(--pf-ink) !important}
body.app-dashboard #section-tips .tips-featured-content p,
body.app-dashboard #section-tips .tips-suggestion p,
body.app-dashboard #section-tips .tips-pill-preview,
body.app-dashboard #section-tips .card-subtitle,
body.app-dashboard #section-tips .tips-saved-page-subtitle{color:var(--pf-ink-2) !important}
body.app-dashboard #section-tips .tips-pill-meta,
body.app-dashboard #section-tips .tips-topic-chevron,
body.app-dashboard #section-tips .tips-search-icon{color:var(--pf-ink-3) !important}

/* =========================================================================
   TIPS & ADVICE FEED — Reddit-style placement feed
   ========================================================================= */
/* Student page frame v1 supersedes the outer frame on adopting pages; this
   declaration is kept, scoped out, for views that have not adopted it yet and
   should be deleted once they have. See styles/student-page-frame.css. */
body.app-dashboard:not(.pf-frame-v1):has(#section-tips.tips-feed-page.is-active) .app-inner{max-width:1440px !important;padding:0 1.4rem 2.5rem !important}
body.app-dashboard #section-tips.tips-feed-page{background:transparent !important;border:0 !important;box-shadow:none !important;padding:1.2rem 0 1.6rem !important}
body.app-dashboard #section-tips.tips-feed-page,
body.app-dashboard #section-tips.tips-feed-page *{box-sizing:border-box}
body.app-dashboard #section-tips.tips-feed-page svg{width:20px;height:20px;display:block;stroke:currentColor}

body.app-dashboard #section-tips .tips-feed-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:1.25rem;margin-bottom:1rem;padding:1.55rem 2rem;border:1px solid var(--pf-line) !important;border-radius:8px;background:#fff;box-shadow:var(--pf-sh)}
body.app-dashboard #section-tips .tips-feed-hero h2{margin:0;color:#061942;font-size:42px;font-weight:600;line-height:1;letter-spacing:0}
body.app-dashboard #section-tips .tips-feed-hero p{margin:.65rem 0 0;color:var(--pf-ink-2) !important;font-size:18px;font-weight:400}
body.app-dashboard #section-tips .tips-feed-context{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.6rem}
body.app-dashboard #section-tips .tips-feed-context span{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 .85rem;border:1px solid #cfe0fb;border-radius:999px;background:#f7fbff;color:#122957;font-size:13px;font-weight:600;white-space:nowrap}

body.app-dashboard #section-tips .tips-feed-layout{display:grid;grid-template-columns:minmax(0,1fr) 324px;gap:18px;align-items:start}
body.app-dashboard #section-tips .tips-feed-main{min-width:0}
body.app-dashboard #section-tips .tips-feed-toolbar{position:sticky;top:88px;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:.85rem;margin-bottom:.85rem;padding:.75rem;border:1px solid var(--pf-line) !important;border-radius:8px;background:rgba(255,255,255,.96) !important;box-shadow:var(--pf-sh);backdrop-filter:blur(10px)}
body.app-dashboard #section-tips .tips-feed-tabs{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}
body.app-dashboard #section-tips .tips-feed-tabs .tips-topic-item{width:auto !important;min-height:34px !important;display:inline-flex !important;align-items:center;justify-content:center;gap:.35rem;margin:0 !important;padding:0 .8rem !important;border:0 !important;border-radius:7px !important;background:transparent !important;color:var(--pf-ink-2) !important;box-shadow:none !important;font-size:13px !important;font-weight:600 !important;line-height:1}
body.app-dashboard #section-tips .tips-feed-tabs .tips-topic-item:hover{background:#f3f7fd !important;color:var(--pf-brand) !important}
body.app-dashboard #section-tips .tips-feed-tabs .tips-topic-item.is-active{background:var(--pf-brand) !important;color:#fff !important;box-shadow:0 8px 18px rgba(7,95,240,.16) !important}
body.app-dashboard #section-tips .tips-feed-toolbar .tips-search{width:300px !important;min-width:220px !important;max-width:320px !important;min-height:36px !important;margin:0 !important;padding:0 .85rem !important;border:1px solid var(--pf-line) !important;border-radius:7px !important;background:#fff !important;color:var(--pf-ink-3) !important;box-shadow:none !important}
body.app-dashboard #section-tips .tips-feed-toolbar .tips-search input{font-size:13px !important;font-weight:500}

body.app-dashboard #section-tips .tips-composer{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(220px,.75fr);gap:.75rem;align-items:start;margin-bottom:.85rem;padding:.85rem;border:1px solid var(--pf-line);border-radius:8px;background:#fff;box-shadow:var(--pf-sh)}
body.app-dashboard #section-tips .tips-compose-top{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:.75rem}
body.app-dashboard #section-tips .tips-compose-mode{display:inline-flex;align-items:center;gap:.25rem;padding:.2rem;border:1px solid var(--pf-line);border-radius:8px;background:#f8fbff}
body.app-dashboard #section-tips .tips-compose-mode-btn{min-height:32px;padding:0 .8rem;border:0;border-radius:6px;background:transparent;color:var(--pf-ink-2);font-size:13px;font-weight:600}
body.app-dashboard #section-tips .tips-compose-mode-btn.is-active{background:var(--pf-brand);color:#fff;box-shadow:0 8px 18px rgba(7,95,240,.14)}
body.app-dashboard #section-tips .tips-anonymous-toggle{display:inline-flex;align-items:center;gap:.5rem;color:var(--pf-ink-2);font-size:13px;font-weight:600}
body.app-dashboard #section-tips .tips-anonymous-toggle input{width:16px;height:16px;accent-color:var(--pf-brand)}
body.app-dashboard #section-tips .tips-compose-field{display:flex;flex-direction:column;gap:.35rem;margin:0;color:var(--pf-ink-2);font-size:12px;font-weight:600}
body.app-dashboard #section-tips .tips-compose-field--title{grid-column:1/2}
body.app-dashboard #section-tips .tips-compose-field--details{grid-column:1/2}
body.app-dashboard #section-tips .tips-compose-field--tags{grid-column:2/3;grid-row:2/4}
body.app-dashboard #section-tips .tips-composer input,
body.app-dashboard #section-tips .tips-composer textarea{width:100%;border:1px solid var(--pf-line);border-radius:7px;padding:.75rem .85rem;background:#f8fbff;color:var(--pf-ink);font: inherit;font-size:14px;font-weight:600;line-height:1.4;outline:0}
body.app-dashboard #section-tips .tips-composer input{min-height:42px}
body.app-dashboard #section-tips .tips-composer textarea{min-height:96px;resize:vertical}
body.app-dashboard #section-tips .tips-composer input:focus,
body.app-dashboard #section-tips .tips-composer textarea:focus{border-color:var(--pf-brand);box-shadow:0 0 0 3px var(--pf-brand-tint)}
body.app-dashboard #section-tips .tips-composer .btn{min-height:42px;border-radius:7px !important;font-size:14px !important;font-weight:600 !important}
body.app-dashboard #section-tips .tips-compose-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:.75rem}
body.app-dashboard #section-tips .tips-compose-status{margin:0;color:var(--pf-ink-3);font-size:12px;font-weight:500}
body.app-dashboard #section-tips .tips-compose-status.is-error,
body.app-dashboard #section-tips #tips-notes-status.is-error,
body.app-dashboard #section-tips-thread #tips-thread-status.is-error{color:var(--pf-red)}
body.app-dashboard #section-tips .tips-compose-status.is-success,
body.app-dashboard #section-tips #tips-notes-status.is-success{color:var(--pf-teal)}

body.app-dashboard #section-tips .tips-feed-list{display:flex !important;flex-direction:column !important;gap:10px !important}
body.app-dashboard #section-tips .tips-pill-list{display:contents !important;list-style:none !important;margin:0 !important;padding:0 !important}
body.app-dashboard #section-tips .tips-pill{position:relative !important;display:grid !important;grid-template-columns:68px minmax(0,1fr) !important;gap:0 !important;align-items:stretch !important;width:100% !important;min-height:0 !important;padding:0 !important;border:1px solid var(--pf-line) !important;border-radius:8px !important;background:#fff !important;box-shadow:var(--pf-sh) !important;overflow:hidden !important}
body.app-dashboard #section-tips .tips-pill.is-hidden,
body.app-dashboard #section-tips .tips-pill.is-search-hidden,
body.app-dashboard #section-tips .tips-pill.is-filter-hidden,
body.app-dashboard #section-tips .tips-pill-list.is-hidden{display:none !important}

body.app-dashboard #section-tips .tips-post-rail{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:.85rem .6rem;background:#f8fbff;border-right:1px solid var(--pf-line)}
body.app-dashboard #section-tips .tips-useful-btn,
body.app-dashboard #section-tips .tips-post-rail .tips-bookmark-btn{position:static !important;width:34px !important;height:34px !important;display:grid !important;place-items:center !important;border:1px solid transparent !important;border-radius:7px !important;background:transparent !important;color:var(--pf-ink-3) !important;padding:0 !important;box-shadow:none !important}
body.app-dashboard #section-tips .tips-useful-btn:hover,
body.app-dashboard #section-tips .tips-post-rail .tips-bookmark-btn:hover{background:#eef5ff !important;color:var(--pf-brand) !important}
body.app-dashboard #section-tips .tips-useful-btn.is-active{background:var(--pf-brand-tint) !important;color:var(--pf-brand) !important}
body.app-dashboard #section-tips .tips-post-rail .tips-bookmark-btn.is-saved{background:var(--pf-amber-tint) !important;border-color:#ffd1a6 !important;color:var(--pf-amber) !important}
body.app-dashboard #section-tips .tips-useful-count{display:flex;flex-direction:column;align-items:center;text-align:center;color:var(--pf-ink)}
body.app-dashboard #section-tips .tips-useful-count strong{font-size:13px;font-weight:700;line-height:1}
body.app-dashboard #section-tips .tips-useful-count small{margin-top:.18rem;color:var(--pf-ink-3);font-size:10px;font-weight:600;line-height:1;text-transform:uppercase;letter-spacing:.04em}

body.app-dashboard #section-tips .tips-post-body{min-width:0;padding:.95rem 1.05rem .8rem}
body.app-dashboard #section-tips .tips-post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;color:var(--pf-ink-3);font-size:12px;font-weight:500}
body.app-dashboard #section-tips .tips-flair{display:inline-flex;align-items:center;min-height:23px;padding:0 .55rem;border-radius:6px;font-size:11px;font-weight:600}
body.app-dashboard #section-tips .tips-flair--tip,
body.app-dashboard #section-tips .tips-flair--verified{background:var(--pf-teal-tint);color:var(--pf-teal)}
body.app-dashboard #section-tips .tips-flair--question{background:var(--pf-amber-tint);color:#b45309}
body.app-dashboard #section-tips .tips-flair--update{background:var(--pf-brand-tint);color:var(--pf-brand)}
body.app-dashboard #section-tips .tips-match-label{display:inline-flex;align-items:center;min-height:21px;padding:0 .5rem;border-radius:999px;background:#eef2f7;color:var(--pf-ink-2);font-size:10px;font-weight:500;line-height:1;white-space:nowrap}
body.app-dashboard #section-tips .tips-match-label--exact{background:var(--pf-brand-tint);color:var(--pf-brand)}
body.app-dashboard #section-tips .tips-match-label--specialty{background:var(--pf-teal-tint);color:var(--pf-teal)}
body.app-dashboard #section-tips .tips-match-label--year{background:#f1f5f9;color:#475569}
body.app-dashboard #section-tips .tips-match-label--general{background:#f8fafc;color:#64748b}
body.app-dashboard #section-tips .tips-pill-title{display:block;width:100%;margin:.6rem 0 .35rem !important;padding:0;border:0;background:transparent;color:var(--pf-brand-ink) !important;font-size:20px !important;font-weight:600 !important;line-height:1.2 !important;letter-spacing:0;text-align:left}
body.app-dashboard #section-tips .tips-pill-title:hover{color:var(--pf-brand) !important}
body.app-dashboard #section-tips .tips-pill-preview{display:block;margin:0 !important;max-width:860px;color:var(--pf-ink-2) !important;font-size:14px !important;font-weight:500 !important;line-height:1.45 !important}
body.app-dashboard #section-tips .tips-verified-answer-note{display:inline-flex;align-items:center;width:max-content;max-width:100%;min-height:26px;margin:.65rem 0 0 !important;padding:0 .65rem;border-radius:999px;background:var(--pf-teal-tint);color:var(--pf-teal);font-size:12px !important;font-weight:600 !important;line-height:1}
body.app-dashboard #section-tips .tips-verified-answer-note.is-hidden{display:none !important}
body.app-dashboard #section-tips .tips-activity-row{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem .55rem;margin:.58rem 0 0;color:var(--pf-ink-3);font-size:11px;font-weight:600;line-height:1.2}
body.app-dashboard #section-tips .tips-activity-row span{display:inline-flex;align-items:center;gap:.32rem;white-space:nowrap}
body.app-dashboard #section-tips .tips-activity-row span + span::before{content:"";width:4px;height:4px;border-radius:50%;background:#cbd5e1}
body.app-dashboard #section-tips .tips-pill-chips{display:flex !important;flex-wrap:wrap;gap:.45rem;margin-top:.75rem !important}
body.app-dashboard #section-tips .tips-pill-chip{display:inline-flex;align-items:center;min-height:24px;padding:0 .6rem;border-radius:999px;background:#edf2f8 !important;color:var(--pf-ink-2) !important;font-size:11px !important;font-weight:500 !important;white-space:nowrap}
body.app-dashboard #section-tips .tips-post-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem;margin-top:.8rem;padding-top:.75rem;border-top:1px solid #edf1f7}
body.app-dashboard #section-tips .tips-post-action{position:static !important;width:auto !important;height:32px !important;min-height:32px !important;display:inline-flex !important;align-items:center;justify-content:center;gap:.4rem;padding:0 .65rem !important;border:0 !important;border-radius:7px !important;background:transparent !important;color:var(--pf-ink-3) !important;box-shadow:none !important;font-size:12px !important;font-weight:600 !important;line-height:1}
body.app-dashboard #section-tips .tips-post-action:hover{background:#f3f7fd !important;color:var(--pf-brand) !important}
body.app-dashboard #section-tips .tips-post-action.is-saved{background:var(--pf-amber-tint) !important;color:#b45309 !important}

body.app-dashboard #section-tips .tips-feed-rail{position:sticky;top:88px;display:flex;flex-direction:column;gap:.85rem}
body.app-dashboard #section-tips .tips-rail-card{padding:1.05rem;border:1px solid var(--pf-line);border-radius:8px;background:#fff;box-shadow:var(--pf-sh)}
body.app-dashboard #section-tips .tips-rail-card h3{margin:0 0 .8rem;color:var(--pf-brand-ink);font-size:17px;font-weight:600}
body.app-dashboard #section-tips .tips-private-notes textarea{width:100%;min-height:118px;resize:vertical;border:1px solid var(--pf-line);border-radius:7px;background:#f8fbff;color:var(--pf-ink);font: inherit;font-size:13px;font-weight:600;line-height:1.4;padding:.75rem;outline:0}
body.app-dashboard #section-tips .tips-private-notes textarea:focus{border-color:var(--pf-brand);box-shadow:0 0 0 3px var(--pf-brand-tint)}
body.app-dashboard #section-tips .tips-notes-actions{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-top:.65rem}
body.app-dashboard #section-tips #tips-notes-status{color:var(--pf-ink-3);font-size:12px;font-weight:500}
body.app-dashboard #section-tips .tips-rail-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
body.app-dashboard #section-tips .tips-rail-heading h3{margin:0}
body.app-dashboard #section-tips #tips-saved-count{color:var(--pf-amber)}
body.app-dashboard #section-tips .tips-view-saved{border:0;background:transparent;color:var(--pf-brand);font-size:12px;font-weight:600;padding:0}
body.app-dashboard #section-tips .tips-feed-facts{margin:0}
body.app-dashboard #section-tips .tips-feed-facts div{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.65rem 0;border-top:1px solid #edf1f7}
body.app-dashboard #section-tips .tips-feed-facts div:first-child{border-top:0;padding-top:0}
body.app-dashboard #section-tips .tips-feed-facts dt{color:var(--pf-ink-2);font-size:13px;font-weight:600}
body.app-dashboard #section-tips .tips-feed-facts dd{margin:0;color:var(--pf-brand-ink);font-size:13px;font-weight:600;text-align:right}
body.app-dashboard #section-tips .tips-saved-feed-list{display:flex;flex-direction:column;gap:.55rem}
body.app-dashboard #section-tips .tips-saved-feed-item{display:grid;grid-template-columns:28px minmax(0,1fr);gap:.55rem;align-items:start;width:100%;padding:.6rem;border:1px solid #edf1f7;border-radius:7px;background:#fbfdff;color:inherit;text-align:left}
body.app-dashboard #section-tips .tips-saved-feed-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:6px;background:var(--pf-amber-tint);color:var(--pf-amber)}
body.app-dashboard #section-tips .tips-saved-feed-icon svg{width:16px;height:16px}
body.app-dashboard #section-tips .tips-saved-feed-copy{min-width:0}
body.app-dashboard #section-tips .tips-saved-feed-copy strong{display:block;color:var(--pf-brand-ink);font-size:12px;font-weight:700;line-height:1.25}
body.app-dashboard #section-tips .tips-saved-feed-copy span{display:block;margin-top:.2rem;color:var(--pf-ink-3);font-size:11px;font-weight:600}
body.app-dashboard #section-tips .tips-saved-empty{padding:.75rem;border:1px dashed var(--pf-line);border-radius:7px;background:#f8fbff;color:var(--pf-ink-3);font-size:12px;font-weight:600;line-height:1.35}
body.app-dashboard #section-tips .tips-rules-list{display:flex;flex-direction:column;gap:.65rem;margin:0;padding:0;list-style:none}
body.app-dashboard #section-tips .tips-rules-list li{position:relative;padding-left:1.65rem;color:var(--pf-ink-2);font-size:12px;font-weight:600;line-height:1.35}
body.app-dashboard #section-tips .tips-rules-list li::before{content:"";position:absolute;left:0;top:.08rem;width:18px;height:18px;border-radius:50%;background:var(--pf-teal-tint)}
body.app-dashboard #section-tips .tips-rules-list li::after{content:"";position:absolute;left:6px;top:.42rem;width:5px;height:8px;border:solid var(--pf-teal);border-width:0 2px 2px 0;transform:rotate(45deg)}

@media (max-width:1180px){
  body.app-dashboard #section-tips .tips-feed-layout{grid-template-columns:1fr}
  body.app-dashboard #section-tips .tips-feed-rail{position:static}
}

@media (max-width:760px){
  body.app-dashboard #section-tips .tips-feed-hero{grid-template-columns:1fr;padding:1.1rem}
  body.app-dashboard #section-tips .tips-feed-hero h2{font-size:32px}
  body.app-dashboard #section-tips .tips-feed-context{justify-content:flex-start}
  body.app-dashboard #section-tips .tips-feed-toolbar{position:static;align-items:stretch;flex-direction:column}
  body.app-dashboard #section-tips .tips-feed-toolbar .tips-search{width:100% !important;max-width:none !important}
  body.app-dashboard #section-tips .tips-composer{grid-template-columns:1fr}
  body.app-dashboard #section-tips .tips-compose-top{align-items:stretch;flex-direction:column}
  body.app-dashboard #section-tips .tips-compose-mode,
  body.app-dashboard #section-tips .tips-compose-mode-btn{width:100%}
  body.app-dashboard #section-tips .tips-compose-field--title,
  body.app-dashboard #section-tips .tips-compose-field--details,
  body.app-dashboard #section-tips .tips-compose-field--tags{grid-column:1/-1;grid-row:auto}
  body.app-dashboard #section-tips .tips-compose-actions{align-items:stretch;flex-direction:column}
  body.app-dashboard #section-tips .tips-pill{grid-template-columns:52px minmax(0,1fr) !important}
  body.app-dashboard #section-tips .tips-post-rail{padding:.75rem .4rem}
  body.app-dashboard #section-tips .tips-pill-title{font-size:17px !important}
}

/* Cleaner, calmer tips feed pass */
body.app-dashboard:not(.pf-frame-v1):has(#section-tips.tips-feed-page.is-active) .app-inner{max-width:1320px !important;padding:0 1.25rem 2rem !important}
body.app-dashboard #section-tips.tips-feed-page{padding:.85rem 0 1.5rem !important}
body.app-dashboard #section-tips .tips-feed-hero{min-height:auto;margin-bottom:.75rem;padding:1rem 1.2rem !important;align-items:center;border-radius:8px !important;box-shadow:0 1px 2px rgba(12,31,63,.05),0 8px 22px rgba(12,31,63,.06) !important}
body.app-dashboard #section-tips .tips-feed-hero h2{font-size:30px !important;line-height:1.05 !important;font-weight:600 !important}
body.app-dashboard #section-tips .tips-feed-hero p{margin:.35rem 0 0 !important;font-size:14px !important;font-weight:400 !important}
body.app-dashboard #section-tips .tips-feed-context{gap:.4rem}
body.app-dashboard #section-tips .tips-feed-context span{min-height:26px;padding:0 .62rem;font-size:11px;font-weight:600;background:#fff !important}
body.app-dashboard #section-tips .tips-feed-layout{grid-template-columns:minmax(0,1fr) 280px !important;gap:14px !important}
body.app-dashboard #section-tips .tips-feed-toolbar{position:static !important;margin-bottom:.65rem !important;padding:.5rem !important;border-radius:8px !important;box-shadow:0 1px 2px rgba(12,31,63,.05),0 8px 22px rgba(12,31,63,.05) !important}
body.app-dashboard #section-tips .tips-feed-tabs{gap:.15rem}
body.app-dashboard #section-tips .tips-feed-tabs .tips-topic-item{min-height:32px !important;padding:0 .65rem !important;font-size:12px !important;border-radius:6px !important}
body.app-dashboard #section-tips .tips-feed-tabs .tips-topic-item.is-active{box-shadow:none !important}
body.app-dashboard #section-tips .tips-feed-toolbar .tips-search{width:260px !important;min-width:180px !important;min-height:34px !important;border-radius:7px !important}

body.app-dashboard #section-tips .tips-composer{grid-template-columns:minmax(0,1fr) 220px !important;grid-template-areas:"top top" "title tags" "details details" "actions actions";gap:.6rem !important;margin-bottom:.75rem !important;padding:.75rem !important;border-radius:8px !important;box-shadow:0 1px 2px rgba(12,31,63,.05),0 8px 22px rgba(12,31,63,.05) !important;overflow:hidden}
body.app-dashboard #section-tips .tips-compose-top{grid-area:top;min-width:0;align-items:center !important}
body.app-dashboard #section-tips .tips-compose-mode{padding:.15rem !important;border-radius:7px !important}
body.app-dashboard #section-tips .tips-compose-mode-btn{min-height:30px !important;padding:0 .68rem !important;border-radius:5px !important;font-size:12px !important}
body.app-dashboard #section-tips .tips-anonymous-toggle{flex:0 0 auto;max-width:180px;min-width:0;gap:.42rem !important;white-space:nowrap;font-size:12px !important;font-weight:600 !important}
body.app-dashboard #section-tips .tips-anonymous-toggle input[type="checkbox"]{appearance:auto !important;-webkit-appearance:checkbox !important;width:16px !important;height:16px !important;min-width:16px !important;min-height:16px !important;margin:0 !important;padding:0 !important;border-radius:3px !important;box-shadow:none !important}
body.app-dashboard #section-tips .tips-anonymous-toggle span{display:block;overflow:hidden;text-overflow:ellipsis}
body.app-dashboard #section-tips .tips-compose-field{gap:.28rem !important;font-size:11px !important;font-weight:600 !important}
body.app-dashboard #section-tips .tips-compose-field--title{grid-area:title}
body.app-dashboard #section-tips .tips-compose-field--tags{grid-area:tags;grid-column:auto !important;grid-row:auto !important}
body.app-dashboard #section-tips .tips-compose-field--details{grid-area:details;grid-column:auto !important}
body.app-dashboard #section-tips .tips-composer input,
body.app-dashboard #section-tips .tips-composer textarea{border-radius:7px !important;background:#fbfdff !important;font-size:13px !important;font-weight:600 !important}
body.app-dashboard #section-tips .tips-composer input{min-height:38px !important;padding:.58rem .7rem !important}
body.app-dashboard #section-tips .tips-composer textarea{min-height:68px !important;max-height:120px;padding:.62rem .7rem !important}
body.app-dashboard #section-tips .tips-compose-actions{grid-area:actions;margin-top:.05rem !important}
body.app-dashboard #section-tips .tips-composer .btn{min-height:36px !important;padding:0 .9rem !important;font-size:13px !important;box-shadow:none !important}
body.app-dashboard #section-tips .tips-compose-status{font-size:11px !important}

body.app-dashboard #section-tips .tips-feed-list{gap:8px !important}
body.app-dashboard #section-tips .tips-pill{grid-template-columns:54px minmax(0,1fr) !important;border-radius:8px !important;box-shadow:0 1px 2px rgba(12,31,63,.05),0 7px 18px rgba(12,31,63,.045) !important}
body.app-dashboard #section-tips .tips-post-rail{gap:.35rem;padding:.65rem .4rem !important;background:#fbfdff !important}
body.app-dashboard #section-tips .tips-useful-btn,
body.app-dashboard #section-tips .tips-post-rail .tips-bookmark-btn{width:28px !important;height:28px !important;border-radius:6px !important}
body.app-dashboard #section-tips .tips-useful-btn svg,
body.app-dashboard #section-tips .tips-post-rail .tips-bookmark-btn svg{width:16px !important;height:16px !important}
body.app-dashboard #section-tips .tips-useful-count strong{font-size:12px !important}
body.app-dashboard #section-tips .tips-useful-count small{font-size:9px !important}
body.app-dashboard #section-tips .tips-post-body{padding:.8rem .95rem .7rem !important}
body.app-dashboard #section-tips .tips-post-meta{gap:.42rem !important;font-size:11px !important}
body.app-dashboard #section-tips .tips-flair{min-height:21px;padding:0 .48rem;font-size:10px !important}
body.app-dashboard #section-tips .tips-pill-title{margin:.48rem 0 .25rem !important;font-size:18px !important;line-height:1.18 !important}
body.app-dashboard #section-tips .tips-pill-preview{font-size:13px !important;line-height:1.38 !important}
body.app-dashboard #section-tips .tips-verified-answer-note{min-height:24px;margin-top:.55rem !important;font-size:11px !important}
body.app-dashboard #section-tips .tips-activity-row{margin-top:.48rem !important;font-size:10px !important}
body.app-dashboard #section-tips .tips-pill-chips{gap:.35rem;margin-top:.58rem !important}
body.app-dashboard #section-tips .tips-pill-chip{min-height:22px;padding:0 .52rem;font-size:10px !important}
body.app-dashboard #section-tips .tips-post-actions{margin-top:.62rem;padding-top:.55rem}
body.app-dashboard #section-tips .tips-post-action{height:28px !important;min-height:28px !important;padding:0 .52rem !important;font-size:11px !important}

body.app-dashboard #section-tips .tips-feed-rail{top:76px !important;gap:.65rem !important}
body.app-dashboard #section-tips .tips-rail-card{padding:.85rem !important;border-radius:8px !important;box-shadow:0 1px 2px rgba(12,31,63,.05),0 7px 18px rgba(12,31,63,.045) !important}
body.app-dashboard #section-tips .tips-rail-card h3{margin-bottom:.62rem !important;font-size:15px !important}
body.app-dashboard #section-tips .tips-feed-facts div{padding:.5rem 0 !important}
body.app-dashboard #section-tips .tips-feed-facts dt,
body.app-dashboard #section-tips .tips-feed-facts dd{font-size:11px !important}
body.app-dashboard #section-tips .tips-saved-feed-item{grid-template-columns:24px minmax(0,1fr);gap:.5rem;padding:.52rem !important}
body.app-dashboard #section-tips .tips-saved-feed-icon{width:24px;height:24px}
body.app-dashboard #section-tips .tips-saved-feed-copy strong{font-size:11px !important}
body.app-dashboard #section-tips .tips-saved-feed-copy span{font-size:10px !important}
body.app-dashboard #section-tips .tips-private-notes textarea{min-height:92px !important;font-size:12px !important}
body.app-dashboard #section-tips .tips-rules-list{gap:.48rem}
body.app-dashboard #section-tips .tips-rules-list li{font-size:11px !important}

@media (max-width:1180px){
  body.app-dashboard #section-tips .tips-feed-layout{grid-template-columns:1fr !important}
  body.app-dashboard #section-tips .tips-feed-rail{position:static !important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  body.app-dashboard #section-tips .tips-rail-card:first-child{display:none}
}

@media (max-width:760px){
  body.app-dashboard:not(.pf-frame-v1):has(#section-tips.tips-feed-page.is-active) .app-inner{padding:0 .75rem 1.5rem !important}
  body.app-dashboard #section-tips .tips-feed-hero{grid-template-columns:1fr !important;padding:.9rem !important}
  body.app-dashboard #section-tips .tips-feed-hero h2{font-size:25px !important}
  body.app-dashboard #section-tips .tips-feed-toolbar{align-items:stretch;flex-direction:column}
  body.app-dashboard #section-tips .tips-feed-toolbar .tips-search{width:100% !important;max-width:none !important}
  body.app-dashboard #section-tips .tips-composer{grid-template-columns:1fr !important;grid-template-areas:"top" "title" "details" "tags" "actions"}
  body.app-dashboard #section-tips .tips-compose-top{align-items:stretch !important;flex-direction:column}
  body.app-dashboard #section-tips .tips-anonymous-toggle{max-width:none}
  body.app-dashboard #section-tips .tips-compose-actions{align-items:stretch;flex-direction:column}
  body.app-dashboard #section-tips .tips-pill{grid-template-columns:46px minmax(0,1fr) !important}
  body.app-dashboard #section-tips .tips-pill-title{font-size:16px !important}
  body.app-dashboard #section-tips .tips-feed-rail{display:flex}
}

/* Tips compose page */
body.app-dashboard:not(.pf-frame-v1):has(#section-tips-compose.tips-compose-page.is-active) .app-inner{max-width:940px !important;padding:0 1.25rem 2rem !important}
body.app-dashboard #section-tips .tips-feed-toolbar{display:grid !important;grid-template-columns:minmax(0,1fr) minmax(190px,260px) 132px auto !important;align-items:center !important}
body.app-dashboard #section-tips .tips-sort{display:flex;align-items:center;gap:.42rem;min-height:34px;margin:0;padding:0 .55rem;border:1px solid var(--pf-line);border-radius:7px;background:#fff;color:var(--pf-ink-2);font-size:11px;font-weight:600}
body.app-dashboard #section-tips .tips-sort span{flex:0 0 auto;color:var(--pf-ink-3);font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.04em}
body.app-dashboard #section-tips .tips-sort select{min-width:0;width:100%;border:0;background:transparent;color:var(--pf-brand-ink);font: inherit;font-size:12px;font-weight:600;outline:0}
body.app-dashboard #section-tips .tips-feed-actions{display:flex;align-items:center;justify-content:flex-end;gap:.45rem;min-width:0}
body.app-dashboard #section-tips .tips-feed-actions .btn{min-height:34px !important;padding:0 .85rem !important;border-radius:7px !important;font-size:12px !important;font-weight:600 !important;white-space:nowrap;box-shadow:none !important}
body.app-dashboard #section-tips .tips-unanswered-section{display:flex;align-items:center;justify-content:space-between;gap:.85rem;margin:0 0 .65rem;padding:.75rem .85rem;border:1px solid #bfdbfe;border-radius:8px;background:#f8fbff;box-shadow:0 1px 2px rgba(12,31,63,.04)}
body.app-dashboard #section-tips .tips-unanswered-section.is-hidden{display:none !important}
body.app-dashboard #section-tips .tips-unanswered-section h3{margin:0;color:var(--pf-brand-ink);font-size:14px;font-weight:600}
body.app-dashboard #section-tips .tips-unanswered-section p{margin:.18rem 0 0;color:var(--pf-ink-2);font-size:12px;font-weight:400;line-height:1.35}
body.app-dashboard #section-tips .tips-unanswered-section .btn{min-height:32px !important;padding:0 .8rem !important;border-radius:7px !important;font-size:12px !important;font-weight:600 !important;white-space:nowrap;box-shadow:none !important}
body.app-dashboard #section-tips .tips-pill.is-unanswered-question{border-color:#bfdbfe !important}
body.app-dashboard #section-tips .tips-feed-empty-state{display:flex;align-items:center;justify-content:space-between;gap:.85rem;margin:0 0 .65rem;padding:.85rem .95rem;border:1px dashed #bfdbfe;border-radius:8px;background:#f8fbff;box-shadow:0 1px 2px rgba(12,31,63,.04)}
body.app-dashboard #section-tips .tips-feed-empty-state.is-hidden{display:none !important}
body.app-dashboard #section-tips .tips-feed-empty-state span{display:block;margin:0 0 .18rem;color:var(--pf-brand);font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.04em}
body.app-dashboard #section-tips .tips-feed-empty-state h3{margin:0;color:var(--pf-brand-ink);font-size:15px;font-weight:600;line-height:1.25}
body.app-dashboard #section-tips .tips-feed-empty-state p{margin:.22rem 0 0;color:var(--pf-ink-2);font-size:12px;font-weight:400;line-height:1.35}
body.app-dashboard #section-tips .tips-feed-empty-state .btn{flex:0 0 auto;min-height:34px !important;padding:0 .85rem !important;border-radius:7px !important;font-size:12px !important;font-weight:600 !important;white-space:nowrap;box-shadow:none !important}
body.app-dashboard #section-tips .tips-pill--official-seed{border-color:#cfe0fb !important}
body.app-dashboard #section-tips .tips-pill--official-seed .tips-post-rail{background:#f8fbff !important}

body.app-dashboard #section-tips-compose.tips-compose-page{background:transparent !important;border:0 !important;box-shadow:none !important;padding:.85rem 0 1.5rem !important}
body.app-dashboard #section-tips-compose.tips-compose-page,
body.app-dashboard #section-tips-compose.tips-compose-page *{box-sizing:border-box}
body.app-dashboard #section-tips-compose .tips-compose-page-header{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:1rem;margin-bottom:.85rem;padding:1rem 1.15rem;border:1px solid var(--pf-line);border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(12,31,63,.05),0 8px 22px rgba(12,31,63,.05)}
body.app-dashboard #section-tips-compose .tips-compose-back{grid-row:1/3;min-height:34px;padding:0 .75rem;border:1px solid var(--pf-line);border-radius:7px;background:#fff;color:var(--pf-brand);font-size:12px;font-weight:600}
body.app-dashboard #section-tips-compose .tips-compose-back:hover{background:#f3f7fd}
body.app-dashboard #section-tips-compose .tips-compose-page-header h2{margin:0;color:var(--pf-brand-ink);font-size:30px;font-weight:600;line-height:1.08;letter-spacing:0}
body.app-dashboard #section-tips-compose .tips-compose-page-header p{margin:.38rem 0 0;color:var(--pf-ink-2);font-size:14px;font-weight:400;line-height:1.4}
body.app-dashboard #section-tips-compose .tips-compose-context{grid-column:2;display:flex;flex-wrap:wrap;gap:.4rem}
body.app-dashboard #section-tips-compose .tips-compose-context span{display:inline-flex;align-items:center;min-height:26px;padding:0 .62rem;border:1px solid #cfe0fb;border-radius:999px;background:#fff;color:var(--pf-brand-ink);font-size:11px;font-weight:600;white-space:nowrap}

body.app-dashboard #section-tips-compose .tips-composer{display:grid;grid-template-columns:minmax(0,1fr) 240px;grid-template-areas:"top top" "title title" "details tags" "safety safety" "actions actions";gap:.75rem;padding:1rem;border:1px solid var(--pf-line);border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(12,31,63,.05),0 8px 22px rgba(12,31,63,.05)}
body.app-dashboard #section-tips-compose .tips-compose-top{grid-area:top;display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding-bottom:.75rem;border-bottom:1px solid #edf1f7}
body.app-dashboard #section-tips-compose .tips-compose-mode{display:inline-flex;align-items:center;gap:.18rem;padding:.15rem;border:1px solid var(--pf-line);border-radius:7px;background:#f8fbff}
body.app-dashboard #section-tips-compose .tips-compose-mode-btn{min-height:32px;padding:0 .75rem;border:0;border-radius:5px;background:transparent;color:var(--pf-ink-2);font-size:12px;font-weight:600}
body.app-dashboard #section-tips-compose .tips-compose-mode-btn.is-active{background:var(--pf-brand);color:#fff}
body.app-dashboard #section-tips-compose .tips-anonymous-toggle{display:inline-flex;align-items:center;gap:.45rem;color:var(--pf-ink-2);font-size:12px;font-weight:600;white-space:nowrap}
body.app-dashboard #section-tips-compose .tips-anonymous-toggle input[type="checkbox"]{appearance:auto !important;-webkit-appearance:checkbox !important;width:16px !important;height:16px !important;min-width:16px !important;min-height:16px !important;margin:0 !important;accent-color:var(--pf-brand)}
body.app-dashboard #section-tips-compose .tips-compose-field{display:flex;flex-direction:column;gap:.35rem;margin:0;color:var(--pf-ink-2);font-size:12px;font-weight:600}
body.app-dashboard #section-tips-compose .tips-compose-field label{margin:0;color:inherit;font: inherit}
body.app-dashboard #section-tips-compose .tips-compose-field--title{grid-area:title}
body.app-dashboard #section-tips-compose .tips-compose-field--details{grid-area:details}
body.app-dashboard #section-tips-compose .tips-compose-field--tags{grid-area:tags}
body.app-dashboard #section-tips-compose .tips-composer input,
body.app-dashboard #section-tips-compose .tips-composer textarea{width:100%;border:1px solid var(--pf-line);border-radius:7px;padding:.75rem .85rem;background:#fbfdff;color:var(--pf-ink);font: inherit;font-size:14px;font-weight:600;line-height:1.45;outline:0}
body.app-dashboard #section-tips-compose .tips-composer input{min-height:42px}
body.app-dashboard #section-tips-compose .tips-composer textarea{min-height:170px;resize:vertical}
body.app-dashboard #section-tips-compose .tips-composer input:focus,
body.app-dashboard #section-tips-compose .tips-composer textarea:focus{border-color:var(--pf-brand);box-shadow:0 0 0 3px var(--pf-brand-tint)}
body.app-dashboard #section-tips-compose .tips-compose-tag-suggestions{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.12rem}
body.app-dashboard #section-tips-compose .tips-compose-tag-chip{min-height:26px;padding:0 .58rem;border:1px solid var(--pf-line);border-radius:999px;background:#fff;color:var(--pf-ink-2);font-size:11px;font-weight:500;line-height:1;white-space:nowrap}
body.app-dashboard #section-tips-compose .tips-compose-tag-chip:hover{border-color:#bfdbfe;background:#f3f7fd;color:var(--pf-brand)}
body.app-dashboard #section-tips-compose .tips-compose-tag-chip.is-selected{border-color:var(--pf-brand);background:var(--pf-brand-tint);color:var(--pf-brand)}
body.app-dashboard #section-tips-compose .tips-compose-safety{grid-area:safety;display:grid;grid-template-columns:auto minmax(0,1fr);gap:.35rem .7rem;align-items:start;padding:.75rem;border:1px solid #fed7aa;border-radius:8px;background:#fff7ed;color:#9a3412}
body.app-dashboard #section-tips-compose .tips-compose-safety strong{font-size:12px;font-weight:700;line-height:1.25}
body.app-dashboard #section-tips-compose .tips-compose-safety span{font-size:12px;font-weight:600;line-height:1.35}
body.app-dashboard #section-tips-compose .tips-compose-actions{grid-area:actions;display:flex;align-items:center;justify-content:space-between;gap:.75rem}
body.app-dashboard #section-tips-compose .tips-compose-status{margin:0;color:var(--pf-ink-3);font-size:12px;font-weight:500}
body.app-dashboard #section-tips-compose .tips-compose-status.is-error{color:var(--pf-red)}
body.app-dashboard #section-tips-compose .tips-compose-status.is-success{color:var(--pf-teal)}
body.app-dashboard #section-tips-compose .tips-composer .btn{min-height:40px !important;padding:0 1rem !important;border-radius:7px !important;font-size:13px !important;font-weight:600 !important;box-shadow:none !important}

@media (max-width:1040px){
  body.app-dashboard #section-tips .tips-feed-toolbar{grid-template-columns:minmax(0,1fr) 132px auto !important}
  body.app-dashboard #section-tips .tips-feed-tabs{grid-column:1/-1}
  body.app-dashboard #section-tips .tips-feed-toolbar .tips-search{grid-column:1;grid-row:2;width:100% !important;max-width:none !important}
  body.app-dashboard #section-tips .tips-sort{grid-column:2;grid-row:2}
  body.app-dashboard #section-tips .tips-feed-actions{grid-column:3;grid-row:2}
}

@media (max-width:760px){
  body.app-dashboard:not(.pf-frame-v1):has(#section-tips-compose.tips-compose-page.is-active) .app-inner{padding:0 .75rem 1.5rem !important}
  body.app-dashboard #section-tips .tips-feed-toolbar{display:flex !important}
  body.app-dashboard #section-tips .tips-sort{width:100%}
  body.app-dashboard #section-tips .tips-feed-actions{width:100%;justify-content:stretch}
  body.app-dashboard #section-tips .tips-feed-actions .btn{flex:1;min-width:0}
  body.app-dashboard #section-tips .tips-unanswered-section{align-items:stretch;flex-direction:column}
  body.app-dashboard #section-tips .tips-unanswered-section .btn{width:100%}
  body.app-dashboard #section-tips .tips-feed-empty-state{align-items:stretch;flex-direction:column}
  body.app-dashboard #section-tips .tips-feed-empty-state .btn{width:100%}
  body.app-dashboard #section-tips-compose .tips-compose-page-header{grid-template-columns:1fr;padding:.9rem}
  body.app-dashboard #section-tips-compose .tips-compose-back{grid-row:auto;justify-self:start}
  body.app-dashboard #section-tips-compose .tips-compose-context{grid-column:1}
  body.app-dashboard #section-tips-compose .tips-compose-page-header h2{font-size:25px}
  body.app-dashboard #section-tips-compose .tips-composer{grid-template-columns:1fr;grid-template-areas:"top" "title" "details" "tags" "safety" "actions";padding:.85rem}
  body.app-dashboard #section-tips-compose .tips-compose-top{align-items:stretch;flex-direction:column}
  body.app-dashboard #section-tips-compose .tips-compose-mode,
  body.app-dashboard #section-tips-compose .tips-compose-mode-btn{width:100%}
  body.app-dashboard #section-tips-compose .tips-anonymous-toggle{white-space:normal}
  body.app-dashboard #section-tips-compose .tips-composer textarea{min-height:140px}
  body.app-dashboard #section-tips-compose .tips-compose-safety{grid-template-columns:1fr}
  body.app-dashboard #section-tips-compose .tips-compose-actions{align-items:stretch;flex-direction:column}
}

body.app-dashboard:not(.pf-frame-v1):has(#section-tips-thread.tips-thread-page.is-active) .app-inner{max-width:1120px !important;padding:0 1.25rem 2rem !important}
body.app-dashboard #section-tips-thread.tips-thread-page{background:transparent !important;border:0 !important;box-shadow:none !important;padding:.85rem 0 1.5rem !important}
body.app-dashboard #section-tips-thread.tips-thread-page,
body.app-dashboard #section-tips-thread.tips-thread-page *{box-sizing:border-box}
body.app-dashboard #section-tips-thread .tips-thread-page-header{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:1rem;margin-bottom:.85rem;padding:1rem 1.15rem;border:1px solid var(--pf-line);border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(12,31,63,.05),0 8px 22px rgba(12,31,63,.05)}
body.app-dashboard #section-tips-thread .tips-thread-close{min-height:34px;padding:0 .75rem;border:1px solid var(--pf-line);border-radius:7px;background:#fff;color:var(--pf-brand);font-size:12px;font-weight:600}
body.app-dashboard #section-tips-thread .tips-thread-close:hover{background:#f3f7fd}
body.app-dashboard #section-tips-thread .tips-thread-kicker{margin:0 0 .35rem;color:var(--pf-ink-3);font-size:12px;font-weight:500}
body.app-dashboard #section-tips-thread .tips-thread-page-header h2{margin:0;color:var(--pf-brand-ink);font-size:30px;font-weight:600;line-height:1.12;letter-spacing:0}
body.app-dashboard #section-tips-thread .tips-thread-page-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:.85rem;align-items:start}
body.app-dashboard #section-tips-thread .tips-thread-main{display:flex;flex-direction:column;gap:.85rem;min-width:0}
body.app-dashboard #section-tips-thread .tips-thread-body,
body.app-dashboard #section-tips-thread .tips-thread-comments-section,
body.app-dashboard #section-tips-thread .tips-thread-reply,
body.app-dashboard #section-tips-thread .tips-thread-side section{border:1px solid var(--pf-line);border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(12,31,63,.05),0 8px 22px rgba(12,31,63,.05)}
body.app-dashboard #section-tips-thread .tips-thread-body{padding:1rem 1.1rem}
body.app-dashboard #section-tips-thread .tips-thread-post p{margin:.75rem 0 0;color:var(--pf-ink-2);font-size:14px;font-weight:400;line-height:1.5}
body.app-dashboard #section-tips-thread .tips-thread-pinned-verified{margin-top:.95rem;padding:.9rem;border:1px solid #99f6e4;border-radius:8px;background:#f0fdfa}
body.app-dashboard #section-tips-thread .tips-thread-pinned-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.55rem}
body.app-dashboard #section-tips-thread .tips-thread-pinned-heading span{display:inline-flex;align-items:center;min-height:24px;padding:0 .6rem;border-radius:999px;background:var(--pf-teal-tint);color:var(--pf-teal);font-size:11px;font-weight:600}
body.app-dashboard #section-tips-thread .tips-thread-pinned-heading time{color:var(--pf-ink-3);font-size:12px;font-weight:500;text-align:right}
body.app-dashboard #section-tips-thread .tips-thread-pinned-verified p{margin:0;color:var(--pf-brand-ink);font-size:14px;font-weight:400;line-height:1.48}
body.app-dashboard #section-tips-thread .tips-thread-pinned-verified strong{display:block;margin-top:.55rem;color:var(--pf-teal);font-size:12px;font-weight:700}
body.app-dashboard #section-tips-thread .tips-post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;color:var(--pf-ink-3);font-size:12px;font-weight:500}
body.app-dashboard #section-tips-thread .tips-flair{display:inline-flex;align-items:center;min-height:23px;padding:0 .55rem;border-radius:6px;font-size:11px;font-weight:600}
body.app-dashboard #section-tips-thread .tips-flair--tip,
body.app-dashboard #section-tips-thread .tips-flair--verified{background:var(--pf-teal-tint);color:var(--pf-teal)}
body.app-dashboard #section-tips-thread .tips-flair--question{background:var(--pf-amber-tint);color:#b45309}
body.app-dashboard #section-tips-thread .tips-flair--update{background:var(--pf-brand-tint);color:var(--pf-brand)}
body.app-dashboard #section-tips-thread .tips-match-label{display:inline-flex;align-items:center;min-height:21px;padding:0 .5rem;border-radius:999px;background:#eef2f7;color:var(--pf-ink-2);font-size:10px;font-weight:500;line-height:1;white-space:nowrap}
body.app-dashboard #section-tips-thread .tips-match-label--exact{background:var(--pf-brand-tint);color:var(--pf-brand)}
body.app-dashboard #section-tips-thread .tips-match-label--specialty{background:var(--pf-teal-tint);color:var(--pf-teal)}
body.app-dashboard #section-tips-thread .tips-match-label--year{background:#f1f5f9;color:#475569}
body.app-dashboard #section-tips-thread .tips-match-label--general{background:#f8fafc;color:#64748b}
body.app-dashboard #section-tips-thread .tips-pill-chips{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.75rem}
body.app-dashboard #section-tips-thread .tips-pill-chip{display:inline-flex;align-items:center;min-height:24px;padding:0 .6rem;border-radius:999px;background:#edf2f8;color:var(--pf-ink-2);font-size:11px;font-weight:500;white-space:nowrap}
body.app-dashboard #section-tips-thread .tips-post-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem;margin-top:.85rem;padding-top:.75rem;border-top:1px solid #edf1f7}
body.app-dashboard #section-tips-thread .tips-post-action{position:static;width:auto;min-height:30px;display:inline-flex;align-items:center;justify-content:center;padding:0 .65rem;border:0;border-radius:7px;background:transparent;color:var(--pf-ink-3);font-size:12px;font-weight:600;line-height:1}
body.app-dashboard #section-tips-thread .tips-post-action:hover{background:#f3f7fd;color:var(--pf-brand)}
body.app-dashboard #section-tips-thread .tips-post-action.is-saved{background:var(--pf-amber-tint);color:#b45309}
body.app-dashboard #section-tips-thread .tips-thread-comments-section{overflow:hidden}
body.app-dashboard #section-tips-thread .tips-thread-comments-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.85rem 1rem;border-bottom:1px solid #edf1f7}
body.app-dashboard #section-tips-thread .tips-thread-comments-heading h3{margin:0;color:var(--pf-brand-ink);font-size:16px;font-weight:600}
body.app-dashboard #section-tips-thread .tips-thread-comments-heading span{color:var(--pf-ink-3);font-size:12px;font-weight:600;text-align:right}
body.app-dashboard #section-tips-thread .tips-thread-comments{display:flex;flex-direction:column;gap:.75rem;padding:1rem;background:#f8fbff}
body.app-dashboard #section-tips-thread .tips-thread-comment{padding:.85rem;border:1px solid var(--pf-line);border-radius:8px;background:#fff}
body.app-dashboard #section-tips-thread .tips-thread-comment-meta{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem}
body.app-dashboard #section-tips-thread .tips-thread-comment strong{display:inline-block;color:var(--pf-brand-ink);font-size:13px;font-weight:700}
body.app-dashboard #section-tips-thread .tips-thread-comment time{color:var(--pf-ink-3);font-size:12px;font-weight:500}
body.app-dashboard #section-tips-thread .tips-thread-verified{display:inline-flex;align-items:center;min-height:22px;padding:0 .55rem;border-radius:999px;background:var(--pf-teal-tint);color:var(--pf-teal);font-size:11px;font-weight:600}
body.app-dashboard #section-tips-thread .tips-thread-comment p{margin:.45rem 0 0;color:var(--pf-ink-2);font-size:14px;font-weight:400;line-height:1.45}
body.app-dashboard #section-tips-thread .tips-thread-empty{margin:0;padding:.85rem;border:1px dashed var(--pf-line);border-radius:8px;background:#fff;color:var(--pf-ink-3);font-size:13px;font-weight:600}
body.app-dashboard #section-tips-thread .tips-thread-reply{padding:1rem}
body.app-dashboard #section-tips-thread .tips-thread-reply textarea{width:100%;min-height:118px;resize:vertical;border:1px solid var(--pf-line);border-radius:8px;background:#f8fbff;color:var(--pf-ink);font: inherit;font-size:14px;font-weight:600;line-height:1.45;padding:.8rem;outline:0}
body.app-dashboard #section-tips-thread .tips-thread-reply textarea:focus{border-color:var(--pf-brand);box-shadow:0 0 0 3px var(--pf-brand-tint)}
body.app-dashboard #section-tips-thread .tips-thread-reply-actions{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-top:.7rem}
body.app-dashboard #section-tips-thread .tips-thread-reply-actions span{color:var(--pf-ink-3);font-size:12px;font-weight:600}
body.app-dashboard #section-tips-thread .tips-thread-side{position:sticky;top:76px;display:flex;flex-direction:column;gap:.85rem}
body.app-dashboard #section-tips-thread .tips-thread-side section{padding:.9rem}
body.app-dashboard #section-tips-thread .tips-thread-side h3{margin:0 0 .45rem;color:var(--pf-brand-ink);font-size:15px;font-weight:600}
body.app-dashboard #section-tips-thread .tips-thread-side p{margin:0;color:var(--pf-ink-2);font-size:12px;font-weight:400;line-height:1.4}

@media (max-width:940px){
  body.app-dashboard #section-tips-thread .tips-thread-page-layout{grid-template-columns:1fr}
  body.app-dashboard #section-tips-thread .tips-thread-side{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:760px){
  body.app-dashboard:not(.pf-frame-v1):has(#section-tips-thread.tips-thread-page.is-active) .app-inner{padding:0 .75rem 1.5rem !important}
  body.app-dashboard #section-tips-thread .tips-thread-page-header{grid-template-columns:1fr;padding:.9rem}
  body.app-dashboard #section-tips-thread .tips-thread-page-header h2{font-size:24px}
  body.app-dashboard #section-tips-thread .tips-thread-comments-heading{align-items:flex-start;flex-direction:column}
  body.app-dashboard #section-tips-thread .tips-thread-comments-heading span{text-align:left}
  body.app-dashboard #section-tips-thread .tips-thread-pinned-heading{align-items:flex-start;flex-direction:column}
  body.app-dashboard #section-tips-thread .tips-thread-pinned-heading time{text-align:left}
  body.app-dashboard #section-tips-thread .tips-thread-reply-actions{align-items:stretch;flex-direction:column}
  body.app-dashboard #section-tips-thread .tips-thread-side{display:flex}
}

body.app-dashboard.tips-save-choice-open{overflow:hidden}
body.app-dashboard .tips-save-choice,
body.app-dashboard .tips-report-choice{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:1rem}
body.app-dashboard .tips-save-choice.is-hidden,
body.app-dashboard .tips-report-choice.is-hidden{display:none !important}
body.app-dashboard .tips-save-choice-backdrop,
body.app-dashboard .tips-report-choice-backdrop{position:absolute;inset:0;background:rgba(6,25,66,.36);backdrop-filter:blur(3px)}
body.app-dashboard .tips-save-choice-panel,
body.app-dashboard .tips-report-choice-panel{position:relative;width:min(430px,calc(100vw - 2rem));padding:1rem;border:1px solid var(--pf-line);border-radius:8px;background:#fff;box-shadow:0 18px 44px rgba(12,31,63,.18)}
body.app-dashboard .tips-save-choice-close{position:absolute;top:.7rem;right:.75rem;min-height:28px;padding:0 .55rem;border:1px solid var(--pf-line);border-radius:7px;background:#fff;color:var(--pf-ink-3);font-size:11px;font-weight:600}
body.app-dashboard .tips-save-choice-close:hover{background:#f3f7fd;color:var(--pf-brand)}
body.app-dashboard .tips-save-choice-kicker{margin:0 4.2rem .35rem 0;color:var(--pf-brand);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em}
body.app-dashboard .tips-save-choice h2{margin:0;color:var(--pf-brand-ink);font-size:22px;font-weight:600;line-height:1.12;letter-spacing:0}
body.app-dashboard .tips-save-choice-copy{margin:.45rem 0 0;color:var(--pf-ink-2);font-size:13px;font-weight:600;line-height:1.42}
body.app-dashboard .tips-save-choice-preview{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.6rem;align-items:center;margin:.85rem 0;padding:.75rem;border:1px solid #edf1f7;border-radius:7px;background:#fbfdff}
body.app-dashboard .tips-save-choice-preview strong{min-width:0;color:var(--pf-brand-ink);font-size:13px;font-weight:700;line-height:1.3}
body.app-dashboard .tips-save-choice-preview span{display:inline-flex;align-items:center;min-height:22px;padding:0 .55rem;border-radius:999px;background:var(--pf-brand-tint);color:var(--pf-brand);font-size:10px;font-weight:600;white-space:nowrap}
body.app-dashboard .tips-save-choice-actions{display:flex;align-items:center;justify-content:flex-end;gap:.5rem}
body.app-dashboard .tips-save-choice .btn{min-height:36px !important;padding:0 .85rem !important;border-radius:7px !important;font-size:12px !important;font-weight:600 !important;box-shadow:none !important}
body.app-dashboard .tips-save-choice .btn.secondary{border:1px solid var(--pf-line) !important;background:#fff !important;color:var(--pf-brand) !important}
body.app-dashboard .tips-save-choice .btn.primary{border:0 !important;background:var(--pf-brand) !important;color:#fff !important}
body.app-dashboard .tips-report-choice .btn.primary{border:0 !important;background:var(--pf-brand) !important;color:#fff !important}
body.app-dashboard .tips-save-choice .btn.primary:hover,
body.app-dashboard .tips-report-choice .btn.primary:hover{background:var(--pf-brand-2) !important}
body.app-dashboard .tips-report-field{display:flex;flex-direction:column;gap:.35rem;margin:.75rem 0 0;color:var(--pf-ink-2);font-size:12px;font-weight:600}
/* The block option sits inside the report dialog, so it inherits the field
   spacing but lays out as a checkbox and its label on one line. */
body.app-dashboard .tips-report-block{flex-direction:row;align-items:flex-start;gap:.5rem;font-weight:600}
body.app-dashboard .tips-report-block input{width:16px;height:16px;margin-top:1px;flex:none}
body.app-dashboard .tips-report-block.is-hidden{display:none}
body.app-dashboard .tips-report-field select,
body.app-dashboard .tips-report-field textarea{width:100%;border:1px solid var(--pf-line);border-radius:7px;background:#fbfdff;color:var(--pf-ink);font: inherit;font-size:13px;font-weight:600;line-height:1.4;padding:.68rem .75rem;outline:0}
body.app-dashboard .tips-report-field textarea{resize:vertical;min-height:86px}
body.app-dashboard .tips-report-field select:focus,
body.app-dashboard .tips-report-field textarea:focus{border-color:var(--pf-brand);box-shadow:0 0 0 3px var(--pf-brand-tint)}
body.app-dashboard .tips-report-status{margin-right:auto;color:var(--pf-ink-3);font-size:12px;font-weight:500}
body.app-dashboard .tips-report-status.is-error{color:var(--pf-red)}
body.app-dashboard .tips-report-status.is-success{color:var(--pf-teal)}

@media (max-width:560px){
  body.app-dashboard .tips-save-choice,
  body.app-dashboard .tips-report-choice{align-items:end;padding:.75rem}
  body.app-dashboard .tips-save-choice-panel,
  body.app-dashboard .tips-report-choice-panel{width:100%;padding:.9rem}
  body.app-dashboard .tips-save-choice-preview{grid-template-columns:1fr}
  body.app-dashboard .tips-save-choice-actions{align-items:stretch;flex-direction:column}
  body.app-dashboard .tips-save-choice .btn,
  body.app-dashboard .tips-report-choice .btn{width:100%}
  body.app-dashboard .tips-report-status{margin-right:0}
}

/* =========================================================================
   PLACEMENT OVERVIEW — placement history and glance polish
   ========================================================================= */
body.app-dashboard #section-placement .placement-history-head,
body.app-dashboard #section-placement .placement-history-row{grid-template-columns:minmax(240px,1.55fr) minmax(130px,.9fr) minmax(120px,.8fr) 116px 90px !important}
body.app-dashboard #section-placement .placement-history-head{padding-right:3.25rem !important}
body.app-dashboard #section-placement .placement-history-head span:last-child{display:none !important}
body.app-dashboard #section-placement .placement-history-row{position:relative !important;padding-right:3.25rem !important}
body.app-dashboard #section-placement .placement-history-cell--placement{gap:.64rem !important}
body.app-dashboard #section-placement .placement-history-cell--placement strong{display:block !important;overflow:hidden !important;text-overflow:ellipsis !important;white-space:nowrap !important;-webkit-line-clamp:unset !important;line-clamp:unset !important;font-size:.8rem !important}
body.app-dashboard #section-placement .placement-history-row-action{position:absolute !important;top:50% !important;right:1.05rem !important;transform:translateY(-50%) !important;justify-self:auto !important;margin-left:0 !important;border:1px solid transparent !important;border-radius:999px !important;color:#1d4f91 !important;font-size:1.2rem !important}
body.app-dashboard #section-placement .placement-history-row-action:hover,
body.app-dashboard #section-placement .placement-history-row-action:focus-visible{border-color:#cfe0ff !important;background:#f3f8ff !important;color:var(--pf-brand) !important}

body.app-dashboard #section-placement .placement-glance-card{padding:1rem !important}
body.app-dashboard #section-placement .placement-glance-stats{position:relative !important;gap:.7rem !important;margin-top:.9rem !important}
body.app-dashboard #section-placement .placement-glance-stat{position:relative !important;display:grid !important;grid-template-columns:50px minmax(0,1fr) auto !important;align-items:center !important;min-height:62px !important;gap:.68rem !important;padding:.7rem .78rem !important;border:1px solid #e0e9f7 !important;border-radius:12px !important;background:linear-gradient(135deg,#fff 0%,#f8fbff 100%) !important;box-shadow:0 10px 24px rgba(15,45,90,.045) !important}
body.app-dashboard #section-placement .placement-glance-stat::after{content:"" !important;position:absolute !important;z-index:0 !important;left:31px !important;top:50px !important;bottom:-.72rem !important;width:2px !important;background:linear-gradient(180deg,#dbe8fb,#eef4fd) !important}
body.app-dashboard #section-placement .placement-glance-stat:last-child::after{display:none !important}
body.app-dashboard #section-placement .placement-glance-icon{position:relative !important;z-index:1 !important;width:44px !important;height:44px !important;border:1px solid #cfe0ff !important;border-radius:14px !important;background:linear-gradient(145deg,#f9fcff,#eaf3ff) !important;box-shadow:inset 0 -10px 20px rgba(7,95,240,.08),0 6px 16px rgba(29,79,145,.08) !important;color:var(--pf-brand) !important}
body.app-dashboard #section-placement .placement-glance-icon::before,
body.app-dashboard #section-placement .placement-glance-icon::after{content:"" !important;position:absolute !important;box-sizing:border-box !important}
body.app-dashboard #section-placement .placement-glance-icon--blue::before{left:13px !important;top:12px !important;width:16px !important;height:18px !important;border:2px solid currentColor !important;border-radius:5px !important;background:#fff !important;box-shadow:5px 4px 0 -1px #e3efff,5px 4px 0 1px currentColor !important}
body.app-dashboard #section-placement .placement-glance-icon--green{border-color:#c7ecd8 !important;background:linear-gradient(145deg,#fbfffd,#eafaf2) !important;color:#1c9b5a !important}
body.app-dashboard #section-placement .placement-glance-icon--green::before{left:14px !important;top:15px !important;width:17px !important;height:10px !important;border:0 !important;border-left:3px solid currentColor !important;border-bottom:3px solid currentColor !important;border-radius:0 !important;transform:rotate(-45deg) !important;background:transparent !important}
body.app-dashboard #section-placement .placement-glance-icon--blue-ring::before{left:12px !important;top:12px !important;width:18px !important;height:18px !important;border:2px solid currentColor !important;border-radius:999px !important;background:#fff !important;box-shadow:0 0 0 5px rgba(7,95,240,.08) !important}
body.app-dashboard #section-placement .placement-glance-icon--blue-ring::after{left:18px !important;top:18px !important;width:6px !important;height:6px !important;border-radius:999px !important;background:currentColor !important}
body.app-dashboard #section-placement .placement-glance-icon--orange{border-color:#fed7aa !important;background:linear-gradient(145deg,#fffdf8,#fff2e1) !important;color:#f97316 !important}
body.app-dashboard #section-placement .placement-glance-icon--orange::before{left:12px !important;top:12px !important;width:18px !important;height:18px !important;border:2px solid currentColor !important;border-radius:999px !important;background:#fff !important}
body.app-dashboard #section-placement .placement-glance-icon--orange::after{left:21px !important;top:15px !important;width:7px !important;height:9px !important;border:0 !important;border-left:2px solid currentColor !important;border-bottom:2px solid currentColor !important;border-radius:0 !important}
body.app-dashboard #section-placement .placement-glance-stat strong{grid-column:3 !important;grid-row:1 !important;justify-self:end !important;color:var(--pf-brand-ink) !important;font-size:1.45rem !important;font-weight:700 !important;line-height:1 !important}
body.app-dashboard #section-placement .placement-glance-stat span:last-child{grid-column:2 !important;grid-row:1 !important;min-width:0 !important;color:#415b86 !important;font-size:.82rem !important;font-weight:600 !important;line-height:1.25 !important}

@media (max-width:1180px){
  body.app-dashboard #section-placement .placement-glance-stats{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  body.app-dashboard #section-placement .placement-glance-stat{grid-template-columns:44px minmax(0,1fr) !important;gap:.55rem !important;padding:.7rem !important}
  body.app-dashboard #section-placement .placement-glance-stat::after{display:none !important}
  body.app-dashboard #section-placement .placement-glance-stat strong{grid-column:2 !important;grid-row:2 !important;justify-self:start !important;font-size:1.3rem !important}
  body.app-dashboard #section-placement .placement-glance-stat span:last-child{grid-column:2 !important;grid-row:1 !important}
}

@media (max-width:900px){
  body.app-dashboard #section-placement .placement-history-row{grid-template-columns:minmax(0,1fr) !important;padding-right:3.15rem !important}
  body.app-dashboard #section-placement .placement-history-row-action{right:.95rem !important;grid-column:auto !important;grid-row:auto !important;justify-self:auto !important}
  body.app-dashboard #section-placement .placement-glance-stats{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
}

@media (max-width:560px){
  body.app-dashboard #section-placement .placement-glance-stats{grid-template-columns:1fr !important}
  body.app-dashboard #section-placement .placement-glance-stat{grid-template-columns:50px minmax(0,1fr) auto !important}
  body.app-dashboard #section-placement .placement-glance-stat strong{grid-column:3 !important;grid-row:1 !important;justify-self:end !important}
  body.app-dashboard #section-placement .placement-glance-stat span:last-child{grid-column:2 !important;grid-row:1 !important}
}

/* =========================================================================
   PLACEMENT DETAIL — focused tabbed placement workspace
   ========================================================================= */
body.app-dashboard:not(.pf-frame-v1):has(#section-placement-details.is-active) .app-inner{max-width:1480px !important;padding:0 clamp(1rem,2vw,1.7rem) 2.4rem !important}
body.app-dashboard #section-placement-details.placement-details-page{background:transparent !important;border:0 !important;box-shadow:none !important;padding:0 !important}
body.app-dashboard #section-placement-details .placement-details-header{margin:0 0 .7rem !important}
body.app-dashboard #section-placement-details .placement-details-header h2,
body.app-dashboard #section-placement-details .placement-details-header .card-subtitle{display:none !important}
body.app-dashboard #section-placement-details .placement-details-breadcrumb{display:flex !important;align-items:center !important;gap:.45rem !important;color:var(--pf-ink-3) !important;font-size:13px !important;font-weight:500 !important}
body.app-dashboard #section-placement-details .placement-breadcrumb-link{color:var(--pf-brand) !important;font-weight:500 !important}
body.app-dashboard #section-placement-details .placement-details-grid{display:grid !important;grid-template-columns:1fr !important;gap:.95rem !important}
body.app-dashboard #section-placement-details .placement-details-main{display:grid !important;gap:.9rem !important}

body.app-dashboard #section-placement-details .placement-details-hero{display:grid !important;grid-template-columns:minmax(0,1fr) 230px !important;gap:1rem !important;align-items:center !important;min-height:0 !important;padding:1.15rem 1.25rem !important;border:1px solid var(--pf-line) !important;border-radius:10px !important;background:#fff !important;box-shadow:var(--pf-sh) !important;overflow:hidden !important}
body.app-dashboard #section-placement-details .placement-details-hero-accent{display:none !important}
body.app-dashboard #section-placement-details .placement-details-info{gap:.68rem !important;padding:0 !important}
body.app-dashboard #section-placement-details .placement-details-title-row{gap:.8rem !important}
body.app-dashboard #section-placement-details .placement-details-info h3{font-size:clamp(1.8rem,3vw,3rem) !important;line-height:1.04 !important;font-weight:600 !important;letter-spacing:0 !important;color:var(--pf-brand-ink) !important}
body.app-dashboard #section-placement-details .placement-details-hero-site{margin:.25rem 0 0 !important;color:var(--pf-ink-2) !important;font-size:1.02rem !important;font-weight:600 !important}
body.app-dashboard #section-placement-details .placement-details-specialty-icon .placement-overview-icon{width:56px !important;height:56px !important;border-radius:14px !important}
body.app-dashboard #section-placement-details .placement-details-meta-list{display:flex !important;flex-wrap:wrap !important;gap:.48rem .7rem !important;color:var(--pf-ink-2) !important;font-size:13px !important;font-weight:500 !important}
body.app-dashboard #section-placement-details .placement-details-meta-icon{min-height:24px !important;min-width:auto !important;padding:0 .5rem !important;border:1px solid #d8e5f8 !important;border-radius:999px !important;background:#f7fbff !important;color:#31558f !important;font-size:10px !important;font-weight:500 !important}
body.app-dashboard #section-placement-details .placement-details-chip-row{gap:.45rem !important}
body.app-dashboard #section-placement-details .placement-details-chip{min-height:28px !important;padding:.25rem .65rem !important;border-radius:999px !important;font-size:12px !important;font-weight:500 !important}
body.app-dashboard #section-placement-details .placement-details-actions{display:grid !important;grid-template-columns:1fr !important;gap:.5rem !important;min-width:0 !important;margin:0 !important}
body.app-dashboard #section-placement-details .placement-details-actions .btn{width:100% !important;min-height:42px !important;border-radius:8px !important;font-size:14px !important;font-weight:600 !important;box-shadow:none !important;transform:none !important}
body.app-dashboard #section-placement-details .placement-details-actions .btn.primary{background:var(--pf-brand) !important;border:0 !important;color:#fff !important}
body.app-dashboard #section-placement-details .placement-details-actions .btn.secondary{background:#fff !important;border:1px solid var(--pf-line) !important;color:var(--pf-brand-ink) !important}
body.app-dashboard #section-placement-details .placement-details-actions .btn.primary:hover{background:var(--pf-brand-2) !important}

body.app-dashboard #section-placement-details .placement-details-tabs-card{border:1px solid var(--pf-line) !important;border-radius:10px !important;background:#fff !important;box-shadow:var(--pf-sh) !important;overflow:hidden !important}
body.app-dashboard #section-placement-details .placement-details-tabs{display:grid !important;grid-template-columns:repeat(5,minmax(0,1fr)) !important;gap:0 !important;min-height:56px !important;margin:0 !important;padding:0 !important;border-bottom:1px solid var(--pf-line) !important;background:#fbfdff !important}
body.app-dashboard #section-placement-details .placement-subtab{position:relative !important;min-height:56px !important;padding:0 .75rem !important;border:0 !important;border-right:1px solid var(--pf-line) !important;background:transparent !important;color:var(--pf-ink-2) !important;font-size:14px !important;font-weight:600 !important;white-space:nowrap !important}
body.app-dashboard #section-placement-details .placement-subtab:last-child{border-right:0 !important}
body.app-dashboard #section-placement-details .placement-subtab.is-active{background:#fff !important;color:var(--pf-brand) !important}
body.app-dashboard #section-placement-details .placement-subtab.is-active::after{content:"" !important;position:absolute !important;right:1.25rem !important;bottom:-1px !important;left:1.25rem !important;height:3px !important;border-radius:999px 999px 0 0 !important;background:var(--pf-brand) !important}
body.app-dashboard #section-placement-details .placement-details-tab-panel{display:none !important;margin:0 !important;padding:1rem !important}
body.app-dashboard #section-placement-details .placement-details-tab-panel.is-active{display:block !important}
body.app-dashboard #section-placement-details .placement-details-overview-layout,
body.app-dashboard #section-placement-details .placement-details-requirements-layout,
body.app-dashboard #section-placement-details .placement-details-notes-layout,
body.app-dashboard #section-placement-details .placement-details-people-layout,
body.app-dashboard #section-placement-details .placement-details-site-layout{display:grid !important;grid-template-columns:minmax(0,1fr) minmax(320px,.9fr) !important;gap:1rem !important;align-items:start !important}
body.app-dashboard #section-placement-details .placement-details-card,
body.app-dashboard #section-placement-details .placement-details-panel{border:1px solid var(--pf-line) !important;border-radius:10px !important;background:#fff !important;box-shadow:none !important;overflow:hidden !important}
body.app-dashboard #section-placement-details .placement-details-card--wide{grid-column:1 / -1 !important}
body.app-dashboard #section-placement-details .placement-details-card-heading,
body.app-dashboard #section-placement-details .placement-details-panel-heading{min-height:58px !important;padding:.8rem .95rem !important;border-bottom:1px solid var(--pf-line) !important;background:#f7faff !important;gap:.7rem !important}
body.app-dashboard #section-placement-details .placement-details-card-heading h3,
body.app-dashboard #section-placement-details .placement-details-panel-heading h3{color:var(--pf-brand-ink) !important;font-size:17px !important;font-weight:600 !important;letter-spacing:0 !important}
body.app-dashboard #section-placement-details .placement-details-card-heading p{color:var(--pf-ink-2) !important;font-size:12px !important;font-weight:600 !important}
body.app-dashboard #section-placement-details .placement-details-card-icon{width:32px !important;height:32px !important;border-radius:9px !important}

body.app-dashboard #section-placement-details .placement-details-schedule-list,
body.app-dashboard #section-placement-details .placement-task-list,
body.app-dashboard #section-placement-details .placement-student-list{padding:.85rem .95rem !important;gap:.55rem !important}
body.app-dashboard #section-placement-details .placement-details-schedule-row,
body.app-dashboard #section-placement-details .placement-task-item,
body.app-dashboard #section-placement-details .placement-student-item{min-height:58px !important;border:1px solid var(--pf-line) !important;border-radius:8px !important;background:#fff !important}
body.app-dashboard #section-placement-details .placement-details-schedule-row:nth-child(odd),
body.app-dashboard #section-placement-details .placement-task-item:nth-child(odd){background:#fbfdff !important}
body.app-dashboard #section-placement-details .placement-details-schedule-row strong,
body.app-dashboard #section-placement-details .placement-task-meta strong{color:var(--pf-brand-ink) !important;font-size:14px !important;font-weight:700 !important}
body.app-dashboard #section-placement-details .placement-details-schedule-row p,
body.app-dashboard #section-placement-details .placement-task-meta small{color:var(--pf-ink-2) !important;font-size:12px !important;font-weight:500 !important}
body.app-dashboard #section-placement-details .placement-details-schedule-row > span{background:var(--pf-brand-tint) !important;border-color:#d7e5ff !important;color:#224a82 !important;font-size:11px !important;font-weight:600 !important}
body.app-dashboard #section-placement-details .placement-details-task-state{font-size:12px !important;font-weight:600 !important}

body.app-dashboard #section-placement-details .placement-details-stats{padding:.85rem .95rem .4rem !important;gap:.65rem !important}
body.app-dashboard #section-placement-details .placement-details-stat{padding:.8rem !important;border:1px solid var(--pf-line) !important;border-radius:8px !important;background:#fff !important}
body.app-dashboard #section-placement-details .placement-details-stat-label{color:var(--pf-ink-2) !important;font-size:12px !important;font-weight:500 !important}
body.app-dashboard #section-placement-details .placement-details-stat-value{color:var(--pf-brand-ink) !important;font-size:1.55rem !important;font-weight:600 !important}
body.app-dashboard #section-placement-details .placement-details-progress{padding:.35rem .95rem .95rem !important}
body.app-dashboard #section-placement-details .dashboard-progress-bar{height:8px !important;background:#e7edf8 !important}
body.app-dashboard #section-placement-details .dashboard-progress-fill{background:linear-gradient(90deg,var(--pf-brand),var(--pf-teal)) !important}

body.app-dashboard #section-placement-details .placement-details-overview-text,
body.app-dashboard #section-placement-details .placement-details-goals,
body.app-dashboard #section-placement-details .placement-details-signoff-panel,
body.app-dashboard #section-placement-details .placement-details-tips-panel,
body.app-dashboard #section-placement-details .placement-details-site-arrival{padding:.95rem !important;color:var(--pf-ink-2) !important;font-size:14px !important;font-weight:600 !important;line-height:1.5 !important}
body.app-dashboard #section-placement-details .placement-details-signoff-panel,
body.app-dashboard #section-placement-details .placement-details-tips-panel{display:grid !important;gap:.8rem !important;align-content:start !important}
body.app-dashboard #section-placement-details .placement-details-signoff-panel p,
body.app-dashboard #section-placement-details .placement-details-tips-panel p{margin:0 !important}
body.app-dashboard #section-placement-details .placement-details-signoff-panel .btn,
body.app-dashboard #section-placement-details .placement-details-tips-panel .btn{justify-self:start !important;min-height:38px !important;border-radius:8px !important;border:1px solid var(--pf-line) !important;background:#fff !important;color:var(--pf-brand) !important;font-weight:600 !important;box-shadow:none !important}
body.app-dashboard #section-placement-details .placement-details-goals-input{min-height:124px !important;border-radius:8px !important;border:1px solid var(--pf-line) !important;background:#fbfdff !important}
body.app-dashboard #section-placement-details .placement-details-goals-input:focus{outline:0 !important;border-color:var(--pf-brand) !important;box-shadow:0 0 0 3px var(--pf-brand-tint) !important}
body.app-dashboard #section-placement-details .placement-details-goals-actions .btn{border-radius:8px !important;font-weight:600 !important;box-shadow:none !important}

body.app-dashboard #section-placement-details .placement-details-site-summary{display:grid !important;gap:.85rem !important;padding:.95rem !important}
body.app-dashboard #section-placement-details .placement-details-site-summary dl{display:grid !important;gap:.55rem !important;margin:0 !important}
body.app-dashboard #section-placement-details .placement-details-site-summary dl div{display:grid !important;grid-template-columns:82px minmax(0,1fr) !important;gap:.75rem !important;align-items:start !important;padding:.7rem .75rem !important;border:1px solid var(--pf-line) !important;border-radius:8px !important;background:#fbfdff !important}
body.app-dashboard #section-placement-details .placement-details-site-summary dt{color:var(--pf-ink-3) !important;font-size:11px !important;font-weight:600 !important;text-transform:uppercase !important;letter-spacing:.04em !important}
body.app-dashboard #section-placement-details .placement-details-site-summary dd{min-width:0 !important;margin:0 !important;color:var(--pf-brand-ink) !important;font-size:14px !important;font-weight:600 !important;line-height:1.35 !important}
body.app-dashboard #section-placement-details .placement-details-site-summary .placement-details-map-btn{width:100% !important;margin:0 !important}
body.app-dashboard #section-placement-details .placement-details-site-list{margin:0 !important;padding:.85rem .95rem .95rem !important;list-style:none !important;display:grid !important;gap:.55rem !important}
body.app-dashboard #section-placement-details .placement-details-site-list li{position:relative !important;min-height:44px !important;padding:.7rem .75rem .7rem 2.35rem !important;border:1px solid var(--pf-line) !important;border-radius:8px !important;background:#fff !important;color:var(--pf-ink-2) !important;font-size:13px !important;font-weight:600 !important;line-height:1.35 !important}
body.app-dashboard #section-placement-details .placement-details-site-list li:nth-child(odd){background:#fbfdff !important}
body.app-dashboard #section-placement-details .placement-details-site-list li::before{content:"" !important;position:absolute !important;left:.85rem !important;top:.92rem !important;width:10px !important;height:10px !important;border:2px solid var(--pf-brand) !important;border-radius:999px !important;background:#fff !important;box-shadow:0 0 0 4px var(--pf-brand-tint) !important}
body.app-dashboard #section-placement-details .placement-details-site-list--notes{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
body.app-dashboard #section-placement-details .placement-details-site-list--notes li{padding: .8rem !important}
body.app-dashboard #section-placement-details .placement-details-site-list--notes li::before{display:none !important}

body.app-dashboard #section-placement-details .placement-details-people-layout{grid-template-columns:minmax(0,1fr) minmax(300px,.85fr) !important}
body.app-dashboard #section-placement-details .placement-details-side{display:grid !important;grid-template-columns:1fr !important;gap:1rem !important}
body.app-dashboard #section-placement-details .placement-supervisor-avatar{width:44px !important;height:44px !important;min-width:44px !important;max-width:44px !important;max-height:44px !important;display:grid !important;place-items:center !important;overflow:hidden !important;border:1px solid #cfe0ff !important;border-radius:999px !important;background:var(--pf-brand-tint) !important;color:var(--pf-brand) !important;font-size:14px !important;font-weight:600 !important;line-height:1 !important;flex:0 0 44px !important}
body.app-dashboard #section-placement-details .placement-supervisor-avatar img{width:100% !important;height:100% !important;max-width:100% !important;max-height:100% !important;display:block !important;object-fit:cover !important;border-radius:inherit !important}
body.app-dashboard #section-placement-details .placement-student-list{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;align-items:start !important}
body.app-dashboard #section-placement-details .placement-student-item{display:grid !important;grid-template-columns:44px minmax(0,1fr) !important;gap:.75rem !important;align-items:center !important;padding:.75rem !important}
body.app-dashboard #section-placement-details .placement-student-info{min-width:0 !important}
body.app-dashboard #section-placement-details .placement-student-name{margin:0 !important;color:var(--pf-brand-ink) !important;font-size:14px !important;font-weight:600 !important;line-height:1.25 !important}
body.app-dashboard #section-placement-details .placement-student-name a{display:block !important;max-width:100% !important;overflow:hidden !important;color:inherit !important;text-overflow:ellipsis !important;white-space:nowrap !important;text-decoration:none !important}
body.app-dashboard #section-placement-details .placement-student-meta{margin:.18rem 0 0 !important;color:var(--pf-ink-2) !important;font-size:12px !important;font-weight:500 !important;line-height:1.35 !important}
body.app-dashboard #section-placement-details .placement-details-contact-person{display:grid !important;grid-template-columns:44px minmax(0,1fr) !important;gap:.75rem !important;align-items:center !important;padding:.9rem .95rem 0 !important}
body.app-dashboard #section-placement-details .placement-details-contact-name{display:block !important;max-width:100% !important;overflow:hidden !important;color:var(--pf-brand-ink) !important;text-overflow:ellipsis !important;white-space:nowrap !important;font-size:15px !important;font-weight:600 !important}
body.app-dashboard #section-placement-details .placement-details-contact-role{margin:.18rem 0 0 !important;color:var(--pf-ink-2) !important;font-size:12px !important;font-weight:600 !important}
body.app-dashboard #section-placement-details .placement-details-contact-list{padding:.8rem .95rem .95rem !important;gap:.5rem !important}
body.app-dashboard #section-placement-details .placement-details-contact-item{min-height:38px !important;border:1px solid var(--pf-line) !important;border-radius:8px !important;background:#fff !important;color:var(--pf-brand) !important;font-size:13px !important;font-weight:600 !important}
body.app-dashboard #section-placement-details .placement-details-hospital-name{padding:.9rem .95rem 0 !important;color:var(--pf-brand-ink) !important;font-weight:600 !important}
body.app-dashboard #section-placement-details .placement-details-contact-address{padding:.2rem .95rem .85rem !important;color:var(--pf-ink-2) !important;font-weight:600 !important}
body.app-dashboard #section-placement-details .placement-details-map-btn{width:calc(100% - 1.9rem) !important;margin:0 .95rem .95rem !important;border-radius:8px !important;font-weight:600 !important;box-shadow:none !important}
body.app-dashboard #section-placement-details .placement-details-empty-state{color:var(--pf-ink-2) !important;font-weight:600 !important}

@media (max-width:1080px){
  body.app-dashboard #section-placement-details .placement-details-hero{grid-template-columns:1fr !important}
  body.app-dashboard #section-placement-details .placement-details-actions{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  body.app-dashboard #section-placement-details .placement-details-overview-layout,
  body.app-dashboard #section-placement-details .placement-details-requirements-layout,
  body.app-dashboard #section-placement-details .placement-details-notes-layout,
  body.app-dashboard #section-placement-details .placement-details-people-layout,
  body.app-dashboard #section-placement-details .placement-details-site-layout{grid-template-columns:1fr !important}
  body.app-dashboard #section-placement-details .placement-details-site-list--notes{grid-template-columns:1fr !important}
}

@media (max-width:680px){
  body.app-dashboard #section-placement-details .placement-details-hero{padding:1rem !important}
  body.app-dashboard #section-placement-details .placement-details-info h3{font-size:1.8rem !important;white-space:normal !important}
  body.app-dashboard #section-placement-details .placement-details-title-row{align-items:flex-start !important}
  body.app-dashboard #section-placement-details .placement-details-actions{grid-template-columns:1fr !important}
  body.app-dashboard #section-placement-details .placement-details-tabs{display:flex !important;overflow-x:auto !important}
  body.app-dashboard #section-placement-details .placement-subtab{flex:0 0 auto !important;min-width:145px !important}
  body.app-dashboard #section-placement-details .placement-details-tab-panel{padding:.8rem !important}
  body.app-dashboard #section-placement-details .placement-student-list{grid-template-columns:1fr !important}
  body.app-dashboard #section-placement-details .placement-details-schedule-row,
  body.app-dashboard #section-placement-details .placement-task-item{grid-template-columns:1fr !important;align-items:start !important}
  body.app-dashboard #section-placement-details .placement-details-schedule-row > span,
  body.app-dashboard #section-placement-details .placement-details-task-state{justify-self:start !important}
}

/* =========================================================================
   TEACHING — body.teaching-page (teaching.html)
   ========================================================================= */
body.teaching-page .app-content{background:var(--pf-canvas,#fff) !important}
body.teaching-page .teaching-header h1{color:var(--pf-brand-ink) !important;font-weight:600 !important;letter-spacing:-0.02em}
body.teaching-page .teaching-actions .btn.primary,
body.teaching-page .teaching-form-actions .btn.primary{background:var(--pf-brand) !important;box-shadow:var(--pf-sh) !important;border:0 !important}
body.teaching-page .teaching-actions .btn.primary:hover,
body.teaching-page .teaching-form-actions .btn.primary:hover{background:var(--pf-brand-2) !important}
body.teaching-page .btn.secondary{color:var(--pf-brand) !important;border:1px solid var(--pf-line) !important;background:var(--pf-surface) !important;box-shadow:var(--pf-sh) !important}
body.teaching-page .btn:hover{box-shadow:var(--pf-sh) !important;transform:none !important}
body.teaching-page .teaching-category-tab{background:var(--pf-bg) !important;border:1px solid var(--pf-line) !important;color:var(--pf-ink-2) !important;border-radius:var(--pf-r-pill) !important}
body.teaching-page .teaching-category-tab:hover{background:var(--pf-brand-tint) !important;border-color:var(--pf-brand-tint) !important;color:var(--pf-brand) !important}
body.teaching-page .teaching-category-tab.is-active{background:var(--pf-surface) !important;border-color:var(--pf-line) !important;color:var(--pf-brand) !important;box-shadow:var(--pf-sh) !important}
body.teaching-page .teaching-content-item,
body.teaching-page .card.teaching-folder-panel,
body.teaching-page .card.teaching-content-card{background:var(--pf-surface) !important;border:1px solid var(--pf-line) !important;border-radius:var(--pf-r) !important;box-shadow:var(--pf-sh) !important}
body.teaching-page .teaching-item-chip{background:var(--pf-brand-tint) !important;color:var(--pf-brand) !important;border-radius:var(--pf-r-pill) !important}
body.teaching-page .teaching-item-icon,
body.teaching-page .teaching-item-icon--folder,
body.teaching-page .teaching-folder-icon{color:var(--pf-brand) !important;background:var(--pf-brand-tint) !important;border-radius:var(--pf-r-sm) !important}
body.teaching-page .teaching-tree-link:hover{background:var(--pf-brand-tint) !important;color:var(--pf-brand) !important}
body.teaching-page .teaching-tree-link.is-active,
body.teaching-page .teaching-tree-link.is-active .teaching-tree-icon{background:var(--pf-brand-tint) !important;color:var(--pf-brand) !important}
body.teaching-page .teaching-search{border:1px solid var(--pf-line) !important;background:var(--pf-bg) !important;border-radius:var(--pf-r-pill) !important}
body.teaching-page .teaching-search-icon,
body.teaching-page .teaching-item-meta,
body.teaching-page .teaching-breadcrumb,
body.teaching-page .teaching-empty{color:var(--pf-ink-3) !important}
body.teaching-page .teaching-item-desc,
body.teaching-page .teaching-context{color:var(--pf-ink-2) !important}
body.teaching-page .teaching-back-link,
body.teaching-page .teaching-breadcrumb-link:hover{color:var(--pf-brand) !important}
body.teaching-page .teaching-empty-state{background:var(--pf-bg) !important;color:var(--pf-ink-2) !important;border-radius:var(--pf-r) !important}

/* =========================================================================
   SETTINGS — body.student-settings-page (student-settings.html)
   ========================================================================= */
body.student-settings-page .app-content{background:var(--pf-canvas,#fff) !important}
body.student-settings-page .panel-card,
body.student-settings-page .settings-card{background:var(--pf-surface) !important;border:1px solid var(--pf-line) !important;border-radius:var(--pf-r) !important;box-shadow:var(--pf-sh) !important}
body.student-settings-page .settings-header h1{color:var(--pf-brand-ink) !important;font-weight:600 !important}
body.student-settings-page .settings-subtitle{color:var(--pf-ink-2) !important}
body.student-settings-page .settings-card-title h3,
body.student-settings-page .settings-row-title{color:var(--pf-ink) !important}
body.student-settings-page .settings-row-subtitle{color:var(--pf-ink-2) !important}
body.student-settings-page .settings-card-icon{background:var(--pf-brand-tint) !important;color:var(--pf-brand) !important;border-radius:var(--pf-r-sm) !important}
body.student-settings-page .settings-row + .settings-row,
body.student-settings-page .settings-toggle-row + .settings-toggle-row{border-top:1px solid var(--pf-line) !important}
body.student-settings-page .settings-field input,
body.student-settings-page .settings-field select,
body.student-settings-page .settings-row--field input,
body.student-settings-page .settings-row--field select{border:1px solid var(--pf-line) !important;background:var(--pf-surface) !important;border-radius:var(--pf-r-sm) !important;color:var(--pf-ink) !important}
body.student-settings-page .settings-field input:focus,
body.student-settings-page .settings-field select:focus,
body.student-settings-page .settings-row--field input:focus,
body.student-settings-page .settings-row--field select:focus{outline:none !important;border-color:var(--pf-brand) !important;box-shadow:0 0 0 3px var(--pf-brand-tint) !important}
body.student-settings-page .settings-field label,
body.student-settings-page .settings-row--field label{color:var(--pf-ink-2) !important}
body.student-settings-page .settings-switch-slider{background:var(--pf-line) !important}
body.student-settings-page .settings-switch input:checked + .settings-switch-slider{background:var(--pf-brand) !important}
body.student-settings-page .btn.secondary{background:var(--pf-surface) !important;color:var(--pf-brand) !important;border:1px solid var(--pf-line) !important;box-shadow:none !important;border-radius:var(--pf-r-pill) !important}
body.student-settings-page .btn.primary{background:var(--pf-brand) !important;box-shadow:none !important;border:0 !important}
body.student-settings-page .btn.primary:hover{background:var(--pf-brand-2) !important}
body.student-settings-page .btn:hover{transform:none !important;box-shadow:var(--pf-sh) !important}
body.student-settings-page .btn.danger{background:var(--pf-red) !important;color:#fff !important;border:1px solid var(--pf-red) !important;box-shadow:none !important}
body.student-settings-page .settings-status{color:var(--pf-ink-2) !important}
body.student-settings-page .settings-status.is-success{color:var(--pf-teal) !important}
body.student-settings-page .settings-status.is-error{color:var(--pf-red) !important}

/* =========================================================================
   STUDENT SHELL TIMETABLE — attendance truth + navigation affordances
   ========================================================================= */
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-data-notice{
  margin:0 0 .75rem;
  padding:.72rem .85rem;
  border:1px solid #dce5f5;
  border-radius:12px;
  background:#f6f9ff;
  color:#50627e;
  font-size:.82rem;
  font-weight:500;
  line-height:1.4;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-controls{
  justify-content:flex-end;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-week-navigation{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:.6rem;
  margin:0 0 .72rem;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-week-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.35rem;
  min-height:38px;
  padding:.45rem .7rem;
  border:1px solid #e1e7f2;
  border-radius:10px;
  background:#fff;
  color:#344b72;
  font: inherit;
  font-size:.8rem;
  font-weight:600;
  cursor:pointer;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-week-button:focus-visible,
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-view-btn:focus-visible,
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-date-button:focus-visible{
  outline:3px solid rgba(31,111,214,.2);
  outline-offset:2px;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-week-range{
  min-width:0;
  margin:0;
  color:#233452;
  font-size:.88rem;
  font-weight:600;
  text-align:center;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-attendance-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  min-height:25px;
  padding:.22rem .58rem;
  border-radius:999px;
  font-size:.72rem;
  font-weight:500;
  line-height:1.2;
  white-space:normal;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-attendance-badge.is-compact{
  min-height:21px;
  padding:.14rem .45rem;
  font-size:.66rem;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-attendance-badge--success{
  background:#e5f6ec;
  color:#157a41;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-attendance-badge--neutral{
  background:#eef2f7;
  color:#52627a;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-attendance-badge--danger{
  background:#fdecea;
  color:#b42318;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-attendance-badge--pending{
  background:#fdf1df;
  color:#9b620e;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-attendance-badge--muted{
  background:#f1f3f7;
  color:#707d91;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-attendance{
  padding:.82rem;
  border:1px solid #e5eaf3;
  border-radius:12px;
  background:#f8faff;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-attendance-status{
  margin-top:.45rem;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-attendance-window,
body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-attendance-note{
  margin:.5rem 0 0;
  color:#52627a;
  font-size:.79rem;
  line-height:1.4;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-attendance-note{
  color:#6c778a;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-actions .btn:disabled{
  cursor:not-allowed !important;
  opacity:.62 !important;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-event{
  overflow:hidden;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar{
  overflow-x:auto;
  overscroll-behavior-inline:contain;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-track{
  min-width:max(100%, calc(var(--shell-timetable-lane-count, 1) * 7rem));
}
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-event.is-multilane{
  padding:.45rem .45rem .45rem .58rem;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-calendar-event.is-multilane .shell-timetable-calendar-event-meta{
  display:none;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .sgrid-ev{
  font: inherit;
  text-align:left;
  cursor:pointer;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-backdrop{
  display:none;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-backdrop.is-hidden{
  display:none !important;
}
body.app-dashboard.has-external-shell-view.student-schedule-page .qr-checkin-overlay{
  z-index:2400;
}

@media (max-width:820px){
  body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-backdrop:not(.is-hidden){
    position:fixed;
    inset:0;
    z-index:2199;
    display:block;
    width:100%;
    height:100%;
    margin:0;
    padding:0;
    border:0;
    background:rgba(10,22,44,.38);
    cursor:pointer;
  }
  body.app-dashboard.has-external-shell-view.student-schedule-page .schedule-detail-panel{
    z-index:2200 !important;
  }
}

@media (max-width:520px){
  body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-week-navigation{
    gap:.35rem;
  }
  body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-week-button{
    min-height:36px;
    padding:.4rem .5rem;
    font-size:.74rem;
  }
  body.app-dashboard.has-external-shell-view.student-schedule-page .shell-timetable-week-range{
    font-size:.78rem;
  }
}
