/*
 * Developed by Mohammad Rameez Imdad (Rameez Scripts)
 * WhatsApp: https://whatsapp.rameezscripts.com/ (For Custom Projects)
 * YouTube: https://www.youtube.com/@rameezimdad (Subscribe for more!)
 * TikTok: https://www.tiktok.com/@aiwithrameez (Follow for more!)
 *
 * Project pages — Project Requests (project_requirements.php), Track Project (task-track.php),
 * AI Prompts (user_prompts.php) and Agreements (user_documents.php). One body class per page.
 * Requests + Track also render for admins (admin sidebar) and guests (no sidebar) where styles.css
 * never loads — so the portal kit (up-*) is mirrored for them below, and the moved page css keeps
 * its old weight: every page selector is prefixed inside :where(), so styles.css (loaded later in the
 * portal) wins the same ties it always did. soft rounded (10px), palette tokens only.
 */

/* ===== portal kit for audiences without styles.css (same values as styles.css up-*) ===== */
:where(body.page-track-project, body.page-project-requests) [hidden] { display: none !important; }
:where(body.page-track-project, body.page-project-requests) .up-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid #e5e9f0; border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; box-shadow: none; text-align: left; }
:where(body.page-track-project, body.page-project-requests) .up-head > div:first-child { min-width: 0; flex: 1 1 260px; }
:where(body.page-track-project, body.page-project-requests) .up-head h1 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--c-primary, #001f3f); overflow-wrap: anywhere; }
:where(body.page-track-project, body.page-project-requests) .up-head h1 i { color: var(--c-accent, #0074D9); font-size: .85em; }
:where(body.page-track-project, body.page-project-requests) .up-head p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: #64748b; }
:where(body.page-track-project, body.page-project-requests) .up-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
:where(body.page-track-project, body.page-project-requests) .up-card { background: #fff; border: 1px solid #e5e9f0; border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; box-shadow: none; min-width: 0; }
:where(body.page-track-project, body.page-project-requests) .up-card > h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--c-primary, #001f3f); }
:where(body.page-track-project, body.page-project-requests) .up-card > h2 i { color: var(--c-accent, #0074D9); }
:where(body.page-track-project, body.page-project-requests) .up-card.flush { padding: 0; overflow: hidden; }
:where(body.page-track-project, body.page-project-requests) .up-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid #d5dce6; border-radius: 10px; background: #fff; color: var(--c-primary, #001f3f); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; touch-action: manipulation; }
:where(body.page-track-project, body.page-project-requests) .up-btn:hover { background: #f4f7fb; border-color: #c3ccd9; color: var(--c-primary, #001f3f); }
:where(body.page-track-project, body.page-project-requests) .up-btn.primary { background: var(--c-primary, #001f3f); border-color: var(--c-primary, #001f3f); color: #fff; }
:where(body.page-track-project, body.page-project-requests) .up-btn.primary:hover { background: var(--c-primary-hover, #002a52); }
:where(body.page-track-project, body.page-project-requests) .up-btn.accent { background: var(--c-accent, #0074D9); border-color: var(--c-accent, #0074D9); color: #fff; }
:where(body.page-track-project, body.page-project-requests) .up-btn.danger { color: #b91c1c; border-color: #f1c4c4; }
:where(body.page-track-project, body.page-project-requests) .up-btn.danger:hover { background: #fdf2f2; }
:where(body.page-track-project, body.page-project-requests) .up-btn:disabled { opacity: .7; cursor: default; pointer-events: none; }
:where(body.page-track-project, body.page-project-requests) .up-btn.icon { width: 40px; padding: 0; }
:where(body.page-track-project, body.page-project-requests) .up-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; background: #fff; border: 1px solid #e5e9f0; border-radius: 10px; padding: 4px; margin-bottom: 16px; }
:where(body.page-track-project, body.page-project-requests) .up-tabs::-webkit-scrollbar { display: none; }
:where(body.page-track-project, body.page-project-requests) .up-tabs a { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 10px; color: #475569; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
:where(body.page-track-project, body.page-project-requests) .up-tabs a:hover { background: #f4f7fb; color: var(--c-primary, #001f3f); }
:where(body.page-track-project, body.page-project-requests) .up-tabs a.on { background: var(--c-primary, #001f3f); color: #fff; }
:where(body.page-track-project, body.page-project-requests) .up-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 16px; text-align: center; color: #64748b; }
:where(body.page-track-project, body.page-project-requests) .up-empty > i { font-size: 30px; color: color-mix(in srgb, var(--c-accent, #0074D9) 55%, #fff); margin-bottom: 4px; }
:where(body.page-track-project, body.page-project-requests) .up-empty b { font-size: 16px; color: var(--c-primary, #001f3f); }
:where(body.page-track-project, body.page-project-requests) .up-empty p { margin: 0 0 6px; font-size: 14px; }
@media (max-width: 768px) {
    :where(body.page-track-project, body.page-project-requests) .up-head { padding: 14px 16px; margin-bottom: 12px; }
    :where(body.page-track-project, body.page-project-requests) .up-head h1 { font-size: 20px; }
    :where(body.page-track-project, body.page-project-requests) .up-head p { font-size: 13px; }
    :where(body.page-track-project, body.page-project-requests) .up-head-actions { width: 100%; }
    :where(body.page-track-project, body.page-project-requests) .up-head-actions .up-btn { flex: 1 1 auto; min-height: 44px; }
    :where(body.page-track-project, body.page-project-requests) .up-head-actions .up-btn.icon { flex: 0 0 44px; width: 44px; }
    :where(body.page-track-project, body.page-project-requests) .up-card { padding: 14px 16px; margin-bottom: 12px; }
    :where(body.page-track-project, body.page-project-requests) .up-btn { min-height: 44px; }
}

/* ===== shared bits: tab count pill, filter chips, search box ===== */
body.rs-portal-theme .up-tabs em.is-new { background: #ea4335; color: #fff; }
body.rs-portal-theme .pr-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; padding: 1px; }
body.rs-portal-theme .pr-chips::-webkit-scrollbar { display: none; }
body.rs-portal-theme .pr-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid #d5dce6; border-radius: 10px; background: #fff; color: #334155; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; touch-action: manipulation; }
body.rs-portal-theme .pr-chip:hover { border-color: var(--c-accent, #0074D9); color: var(--c-accent, #0074D9); }
body.rs-portal-theme .pr-chip em { font-style: normal; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: #eef2f7; font-size: 12px; font-weight: 700; text-align: center; }
body.rs-portal-theme .pr-chip.active { background: var(--c-primary, #001f3f); border-color: var(--c-primary, #001f3f); color: #fff; }
body.rs-portal-theme .pr-chip.active em { background: rgba(255,255,255,.18); }
body.rs-portal-theme .pr-search { display: flex; gap: 8px; margin-bottom: 14px; }
body.rs-portal-theme .pr-search-box { position: relative; flex: 1 1 auto; min-width: 0; }
body.rs-portal-theme .pr-search-box > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 14px; pointer-events: none; }
body.rs-portal-theme .pr-search-box input { width: 100%; min-height: 44px; padding: 0 12px 0 38px; border: 1px solid #d5dce6; border-radius: 10px; background: #fff; font: inherit; font-size: 16px; color: var(--c-text, #1e293b); touch-action: manipulation; }
body.rs-portal-theme .pr-search-box input:focus { outline: none; border-color: var(--c-accent, #0074D9); box-shadow: 0 0 0 3px rgba(var(--c-accent-rgb, 0, 116, 217), .12); }
body.rs-portal-theme .pr-search .up-btn { min-height: 44px; }

/* ===== Agreements (user_documents.php) ===== */
body.page-my-documents .up-head p .rsdoc-pill { margin-left: 6px; vertical-align: middle; }
body.page-my-documents .doc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
body.page-my-documents .doc-card { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid #e5e9f0; border-radius: 10px; padding: 16px; text-decoration: none; color: inherit; transition: border-color .15s; min-width: 0; }
body.page-my-documents .doc-card:hover { border-color: var(--c-accent, #0074D9); box-shadow: none; transform: none; }
body.page-my-documents .doc-card.is-due { border-color: color-mix(in srgb, var(--c-accent, #0074D9) 45%, #e5e9f0); }
body.page-my-documents .doc-card h3 { margin: 4px 0 2px; font-size: 15.5px; color: var(--c-primary, #001f3f); overflow-wrap: anywhere; }
body.page-my-documents .doc-card-meta { margin: 0; font-size: 13px; color: #64748b; }
body.page-my-documents .doc-card-cta { margin-top: 8px; color: var(--c-accent, #0074D9); }
/* reading + signing: same rounded card look as the rest of the portal */
body.page-my-documents .rsdoc-panel { max-width: 800px; border-radius: 10px; padding: 14px 16px; }
body.page-my-documents .rsdoc-panel .up-btn { margin-top: 10px; }
body.page-my-documents .rsdoc-signbox { background: #fff; border: 1px solid #e5e9f0; border-radius: 10px; padding: 18px 20px; }
body.page-my-documents .rsdoc-signbox h3 { color: var(--c-primary, #001f3f); }
body.page-my-documents .rsdoc-signbox h3 i { color: var(--c-accent, #0074D9); }
body.page-my-documents .rsdoc-signbox h3 small { margin-left: auto; font-size: 12.5px; font-weight: 600; color: #64748b; }
body.page-my-documents .rsdoc-signbox p { color: #64748b; }
body.page-my-documents .rsdoc-signbox label.tick, body.page-my-documents .rsdoc-signbox .fld label { color: var(--c-primary, #001f3f); }
body.page-my-documents .rsdoc-signbox label.tick input { accent-color: var(--c-primary, #001f3f); }
body.page-my-documents .rsdoc-signbox .fld input, body.page-my-documents .rsdoc-signbox .fld textarea { min-height: 44px; border-radius: 10px; }
body.page-my-documents .rsdoc-signbox .fld input:focus, body.page-my-documents .rsdoc-signbox .fld textarea:focus { border-color: var(--c-accent, #0074D9); box-shadow: 0 0 0 3px rgba(var(--c-accent-rgb, 0, 116, 217), .12); }
@media (max-width: 600px) {
    body.page-my-documents .doc-cards { grid-template-columns: minmax(0, 1fr); }
    body.page-my-documents .rsdoc-signbox { padding: 14px; }
    body.page-my-documents .rsdoc-signbox .acts .up-btn { flex: 1 1 100%; min-height: 44px; }
}
@media print {
    body.page-my-documents .up-head { display: none !important; }
}

/* ===== AI Prompts (user_prompts.php) ===== */
body.page-ai-prompts .aiu-panel[hidden], body.page-ai-prompts .aiu-card[hidden], body.page-ai-prompts [hidden] { display: none !important; }
body.page-ai-prompts .pr-found { margin: -4px 0 12px; font-size: 13.5px; color: #64748b; }
body.page-ai-prompts .courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
body.page-ai-prompts .course-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid #e5e9f0; border-radius: 10px; padding: 12px; text-decoration: none; color: inherit; transition: border-color .15s; min-width: 0; }
body.page-ai-prompts .course-card:hover { border-color: var(--c-accent, #0074D9); }
body.page-ai-prompts .pf-thumb { position: relative; display: flex; align-items: center; justify-content: center; height: 150px; overflow: hidden; border-radius: 10px; background: var(--c-primary, #001f3f); color: #fff; font-size: 40px; }
body.page-ai-prompts .pf-thumb.no-vid { height: 96px; background: color-mix(in srgb, var(--c-accent, #0074D9) 8%, #fff); color: var(--c-accent, #0074D9); font-size: 30px; }
body.page-ai-prompts .pf-thumb img { width: 100%; height: 100%; object-fit: cover; }
body.page-ai-prompts .pf-thumb .pf-play { position: absolute; font-size: 42px; color: rgba(255,255,255,.92); text-shadow: 0 2px 10px rgba(0,0,0,.55); pointer-events: none; }
body.page-ai-prompts .course-title { font-size: 15.5px; font-weight: 700; color: var(--c-primary, #001f3f); line-height: 1.35; overflow-wrap: anywhere; }
body.page-ai-prompts .course-stats { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid #eef2f7; font-size: 13.5px; color: #64748b; }
body.page-ai-prompts .course-stats i { color: var(--c-accent, #0074D9); }
body.page-ai-prompts .course-go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-weight: 700; color: var(--c-accent, #0074D9); }
/* detail: video + prompt parts */
body.page-ai-prompts .video-container { position: relative; width: 100%; padding-bottom: 56.25%; background: #000; border-radius: 10px; overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
body.page-ai-prompts .video-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
body.page-ai-prompts .video-watermark { position: absolute; bottom: 10px; right: 10px; z-index: 10; padding: 4px 9px; border-radius: 10px; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; pointer-events: none; }
body.page-ai-prompts .pr-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
body.page-ai-prompts .pr-card-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 700; color: var(--c-primary, #001f3f); overflow-wrap: anywhere; min-width: 0; }
body.page-ai-prompts .pr-card-head h2 i { color: var(--c-accent, #0074D9); }
body.page-ai-prompts .prompt-chunk { background: #f8fafc; border: 1px solid #e5e9f0; border-radius: 10px; padding: 12px 14px; }
body.page-ai-prompts .prompt-chunk + .prompt-chunk { margin-top: 10px; }
body.page-ai-prompts .prompt-chunk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
body.page-ai-prompts .prompt-chunk-label { font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #64748b; }
body.page-ai-prompts .prompt-chunk-text { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.6; color: #1e293b; }
body.page-ai-prompts .btn-copy-chunk.copied { background: var(--c-accent, #0074D9); border-color: var(--c-accent, #0074D9); color: #fff; }
body.page-ai-prompts .prompt-chunks-empty { font-size: 13.5px; color: #94a3b8; }
/* resources feed — no coloured edge, tool badge carries the brand */
body.page-ai-prompts .aiu-feed { gap: 12px; }
body.page-ai-prompts .aiu-card { border: 1px solid #e5e9f0; border-radius: 10px; padding: 16px; }
body.page-ai-prompts .aiu-card:hover { box-shadow: none; transform: none; border-color: #c3ccd9; }
body.page-ai-prompts .aiu-card-foot { justify-content: flex-start; }
body.page-ai-prompts .aiu-card-date { margin-right: auto; }
body.page-ai-prompts .aiu-card-foot .up-btn { min-height: 40px; }
@media (max-width: 768px) {
    body.page-ai-prompts .pr-search .up-btn.primary { padding: 0 14px; }
    body.page-ai-prompts .courses-grid { grid-template-columns: minmax(0, 1fr); }
    body.page-ai-prompts .pf-thumb:not(.no-vid) { height: 170px; }
    body.page-ai-prompts .aiu-card-foot .up-btn { min-height: 44px; }
    body.page-ai-prompts .btn-copy-chunk { min-height: 44px; }
}

/* ===== Track Project (task-track.php) — users, admins (admin sidebar) and guests (public header) ===== */
/* base — zero/old weight so the portal shell and public header keep winning their own rules */
:where(body.page-track-project, body.page-track-project *) { margin: 0; padding: 0; box-sizing: border-box; }
:where(body.page-track-project) { --pat-size: 22px 22px, 88px 88px, 88px 88px; --pat-img: radial-gradient(rgba(var(--c-primary-rgb), .05) 1px, transparent 1px), linear-gradient(to right, rgba(var(--c-primary-rgb), .06) 1px, transparent 1px), linear-gradient(to bottom, rgba(var(--c-primary-rgb), .06) 1px, transparent 1px); }
body:where(.page-track-project) { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; background-color: var(--c-bg); background-image: var(--pat-img); background-size: var(--pat-size); min-height: 100vh; }
:where(body.page-track-project:not(.tt-guest)) .dashboard { display: flex; min-height: 100vh; }
:where(body.page-track-project:not(.tt-guest)) .main-content { flex: 1; padding: 0; overflow-y: auto; background: transparent; }
:where(body.page-track-project:not(.tt-guest)) .track-area { padding: 20px; width: 100%; }
:where(body.page-track-project.tt-guest) .track-area { padding: 100px 20px 20px; max-width: 1200px; margin: 0 auto; }
:where(body.page-track-project.tt-guest) .lx-hero + .track-area { padding-top: 24px; }
/* admin phone bar (the user portal hides it) */
:where(body.page-track-project:not(.tt-guest)) .mobile-navbar { display: none; position: fixed; top: 0; left: 0; right: 0; height: 60px; background: var(--c-primary); color: #fff; z-index: 1000; padding: 0 15px; align-items: center; }
:where(body.page-track-project:not(.tt-guest)) .mobile-navbar .hamburger-btn { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 10px; margin-right: 10px; }
:where(body.page-track-project:not(.tt-guest)) .mobile-navbar h1 { font-size: 18px; font-weight: 600; margin: 0; }
@media (max-width: 768px) {
    :where(body.page-track-project:not(.tt-guest)) .mobile-navbar { display: flex; }
    :where(body.page-track-project:not(.tt-guest)) .dashboard { flex-direction: column; }
    :where(body.page-track-project:not(.tt-guest)) .main-content { margin-left: 0; padding-top: 70px; padding-bottom: calc(var(--ph-bottom-nav-h, 66px) + 34px); }
    :where(body.page-track-project:not(.tt-guest)) .track-area { padding: 10px 15px calc(var(--ph-bottom-nav-h, 66px) + 34px); }
    :where(body.page-track-project.tt-guest) .track-area { padding: 16px 15px 15px; }
}
@media (max-width: 600px) {
    :where(body.page-track-project) .dashboard .track-area { padding: 0 12px; }
}
/* lookup */
body.page-track-project .tt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
body.page-track-project .tt-card-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 700; color: var(--c-primary, #001f3f); }
body.page-track-project .tt-card-head h2 i { color: var(--c-accent, #0074D9); }
body.page-track-project .search-form { display: flex; gap: 8px; }
body.page-track-project .input-wrapper { position: relative; flex: 1 1 auto; min-width: 0; }
body.page-track-project .input-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 16px; pointer-events: none; }
body.page-track-project .search-input { width: 100%; min-height: 44px; padding: 0 12px 0 38px; border: 1px solid #d5dce6; border-radius: 10px; background: #fff; font: inherit; font-size: 16px; color: var(--c-text, #1e293b); touch-action: manipulation; }
body.page-track-project .search-input:focus { outline: none; border-color: var(--c-accent, #0074D9); box-shadow: 0 0 0 3px rgba(var(--c-accent-rgb, 0, 116, 217), .12); }
body.page-track-project .search-form .up-btn { min-height: 44px; transform: none; box-shadow: none; }
body.page-track-project .tt-hint { margin-top: 10px; font-size: 13.5px; color: #64748b; }
body.page-track-project .tt-hint a { color: var(--c-accent, #0074D9); font-weight: 600; }
body.page-track-project .error-box { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 11px 14px; border: 1px solid #fecaca; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 14px; }
body.page-track-project .track-area > .error-box { margin: 0 0 16px; }
/* client summary */
body.page-track-project .client-header { display: flex; justify-content: space-between; align-items: center; gap: 6px 16px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #eef2f7; }
body.page-track-project .client-name { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--c-primary, #001f3f); overflow-wrap: anywhere; }
body.page-track-project .client-name i { color: var(--c-accent, #0074D9); font-size: .85em; }
body.page-track-project .client-contact { display: flex; gap: 6px 14px; flex-wrap: wrap; }
body.page-track-project .contact-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #64748b; overflow-wrap: anywhere; }
body.page-track-project .quick-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
body.page-track-project .stat-box { padding: 12px 14px; border: 1px solid #e5e9f0; border-radius: 10px; background: #f8fafc; box-shadow: none; text-align: left; transform: none; }
body.page-track-project .stat-box:hover { transform: none; box-shadow: none; }
body.page-track-project .stat-number { font-size: 24px; font-weight: 700; line-height: 1.1; color: var(--c-primary, #001f3f); }
body.page-track-project .stat-label { margin-top: 2px; font-size: 12.5px; font-weight: 600; color: #64748b; }
body.page-track-project .stat-box.is-review .stat-number { color: var(--c-accent, #0074D9); }
/* project cards */
body.page-track-project .project-card { animation: ttIn .25s ease; }
@keyframes ttIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body.page-track-project .project-card { animation: none; } }
body.page-track-project .project-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
body.page-track-project .project-title-section { flex: 1 1 220px; min-width: 0; }
body.page-track-project .project-title { font-size: 17px; font-weight: 700; color: var(--c-primary, #001f3f); overflow-wrap: anywhere; }
body.page-track-project .project-id { margin-top: 2px; font-size: 12.5px; color: #64748b; }
body.page-track-project .project-badges { display: flex; gap: 6px; flex-wrap: wrap; }
body.page-track-project .badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid transparent; border-radius: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
/* status = semantic tint, priority = quiet outline */
body.page-track-project .badge[class*="status-"] { background: color-mix(in srgb, var(--c-accent, #0074D9) 12%, #fff); color: var(--c-accent, #0074D9); }
body.page-track-project .badge.status-pending, body.page-track-project .badge.status-on-hold { background: #fef3c7; color: #92400e; }
body.page-track-project .badge.status-completed { background: #dcfce7; color: #166534; }
body.page-track-project .badge.status-cancelled, body.page-track-project .badge.status-changes-requested { background: #fee2e2; color: #b91c1c; }
body.page-track-project .badge[class*="priority-"] { background: #fff; border-color: #d5dce6; color: #475569; }
body.page-track-project .badge.priority-urgent, body.page-track-project .badge.priority-high { border-color: #fecaca; color: #b91c1c; }
/* the 4 dates as one stepper */
body.page-track-project .tt-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.page-track-project .tt-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 6px; min-width: 0; }
body.page-track-project .tt-step::before { content: ''; position: absolute; top: 16px; left: -50%; width: 100%; height: 2px; background: #e5e9f0; }
body.page-track-project .tt-step:first-child::before { display: none; }
body.page-track-project .tt-step.done::before, body.page-track-project .tt-step.now::before { background: var(--c-accent, #0074D9); }
body.page-track-project .tt-dot { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; font-size: 13px; background: #fff; border: 2px solid #e5e9f0; color: #94a3b8; }
body.page-track-project .tt-step.done .tt-dot { background: var(--c-accent, #0074D9); border-color: var(--c-accent, #0074D9); color: var(--c-on-accent, #fff); }
body.page-track-project .tt-step.now .tt-dot { border-color: var(--c-accent, #0074D9); color: var(--c-accent, #0074D9); box-shadow: 0 0 0 4px rgba(var(--c-accent-rgb, 0, 116, 217), .14); }
body.page-track-project .tt-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #64748b; }
body.page-track-project .tt-date { margin-top: 2px; font-size: 14.5px; font-weight: 700; color: var(--c-primary, #001f3f); }
body.page-track-project .tt-date.tbc { font-size: 12.5px; font-weight: 600; color: #94a3b8; }
body.page-track-project .tt-note { margin-top: 4px; padding: 1px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 600; background: #f1f5f9; color: #64748b; }
body.page-track-project .tt-note.info { background: rgba(var(--c-accent-rgb, 0, 116, 217), .09); color: var(--c-accent, #0074D9); }
body.page-track-project .tt-note.good { background: #dcfce7; color: #166534; }
body.page-track-project .tt-note.warn { background: #fef3c7; color: #92400e; }
body.page-track-project .tt-note.bad { background: #fee2e2; color: #b91c1c; }
/* where it stands, one line */
body.page-track-project .tt-status { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 11px 14px; border: 1px solid; border-radius: 10px; }
body.page-track-project .tt-status .tt-si { flex: none; margin-top: 2px; font-size: 16px; }
body.page-track-project .tt-status b { display: block; font-size: 14.5px; }
body.page-track-project .tt-status p { margin: 2px 0 0; font-size: 13px; line-height: 1.5; opacity: .92; }
body.page-track-project .tt-tone-info { background: rgba(var(--c-accent-rgb, 0, 116, 217), .06); border-color: rgba(var(--c-accent-rgb, 0, 116, 217), .22); color: var(--c-primary, #001f3f); }
body.page-track-project .tt-tone-info .tt-si, body.page-track-project .tt-tone-review .tt-si { color: var(--c-accent, #0074D9); }
body.page-track-project .tt-tone-review { background: color-mix(in srgb, var(--c-accent, #0074D9) 9%, #fff); border-color: color-mix(in srgb, var(--c-accent, #0074D9) 30%, #fff); color: var(--c-primary, #001f3f); }
body.page-track-project .tt-tone-warn { background: #fffbeb; border-color: #fde68a; color: #78350f; }
body.page-track-project .tt-tone-warn .tt-si { color: #d97706; }
body.page-track-project .tt-tone-ok { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
body.page-track-project .tt-tone-ok .tt-si { color: #16a34a; }
body.page-track-project .tt-tone-bad { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
body.page-track-project .tt-tone-bad .tt-si { color: #dc2626; }
/* meters — work steps / timeline / review window / payment */
body.page-track-project .tt-meter { margin-top: 14px; }
body.page-track-project .tt-meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: #64748b; }
body.page-track-project .tt-meter-top i { margin-right: 3px; color: var(--c-accent, #0074D9); }
body.page-track-project .tt-meter-top b { white-space: nowrap; color: var(--c-primary, #001f3f); }
body.page-track-project .tt-meter-top b.late { color: #dc2626; }
body.page-track-project .tt-meter-top b.paid, body.page-track-project .tt-meter-top b.paid i { color: #16a34a; }
body.page-track-project .tt-track { height: 6px; overflow: hidden; border-radius: 10px; background: #e5e9f0; }
body.page-track-project .tt-fill { height: 100%; border-radius: 10px; background: var(--c-accent, #0074D9); }
body.page-track-project .tt-fill.late { background: #dc2626; }
body.page-track-project .tt-fill.review { background: var(--c-primary, #001f3f); }
body.page-track-project .tt-fill.pay, body.page-track-project .tt-fill.prog { background: #16a34a; }
body.page-track-project .tt-pay { padding-top: 14px; border-top: 1px solid #eef2f7; }
body.page-track-project .tt-pay-note { margin-top: 6px; font-size: 12.5px; color: #64748b; }
/* live demo — open button + username / password rows with copy */
body.page-track-project .tt-demo { margin-top: 14px; padding-top: 14px; border-top: 1px solid #eef2f7; }
body.page-track-project .tt-demo .tt-meter-top b { font-weight: 500; color: #64748b; white-space: normal; text-align: right; }
body.page-track-project .tt-demo-open { width: 100%; min-height: 44px; margin-bottom: 8px; }
body.page-track-project .tt-demo-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; min-width: 0; }
body.page-track-project .tt-demo-k { flex: 0 0 96px; font-size: 12.5px; font-weight: 600; color: #64748b; }
body.page-track-project .tt-demo-k i { margin-right: 4px; color: var(--c-accent, #0074D9); }
body.page-track-project .tt-demo-v { flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid #e5e9f0; border-radius: 8px; background: #f8fafc; color: var(--c-primary, #001f3f); font-size: 14px; overflow-wrap: anywhere; }
body.page-track-project .tt-demo-ic { flex: 0 0 44px; min-height: 44px; padding: 0; }
@media (max-width: 480px) { body.page-track-project .tt-demo-k { flex-basis: 80px; } }
/* your project files — the finished build after a one-time code; the popup is a sheet on phones */
body.page-track-project .tt-src { margin-top: 14px; padding-top: 14px; border-top: 1px solid #eef2f7; }
body.page-track-project .tt-src .tt-meter-top b, body.page-track-project .tt-src .tt-meter-top b i { color: #16a34a; }
body.page-track-project .tt-src.wait .tt-meter-top b { font-weight: 500; color: #64748b; }
body.page-track-project .tt-src-open { width: 100%; min-height: 44px; }
body.page-track-project .tt-src-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: #64748b; }
body.page-track-project .tt-src-note i { margin-right: 4px; color: var(--c-accent, #0074D9); }
body.page-track-project .tt-src-note a { color: var(--c-accent, #0074D9); font-weight: 600; text-decoration: none; }
/* locked — the build is done, the balance is not: amber like the warn tone, two 44px actions side by side */
body.page-track-project .tt-src.lock .tt-meter-top b, body.page-track-project .tt-src.lock .tt-meter-top b i { color: #d97706; }
body.page-track-project .tt-src.lock .tt-src-note i { color: #d97706; }
body.page-track-project .tt-src-pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
body.page-track-project .tt-src-pay .up-btn { flex: 1 1 160px; min-height: 44px; }
body.tt-dl-lock { overflow: hidden; }
body.page-track-project .tt-dl { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 16px; }
body.page-track-project .tt-dl [hidden] { display: none !important; }
body.page-track-project .tt-dl-back { position: absolute; inset: 0; background: rgba(var(--c-primary-rgb, 0, 31, 63), .55); backdrop-filter: blur(2px); }
body.page-track-project .tt-dl-box { position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow: auto; padding: 22px 22px 18px; border-radius: 12px; background: #fff; box-shadow: 0 24px 60px rgba(0, 31, 63, .25); }
body.page-track-project .tt-dl-x { position: absolute; top: 10px; right: 10px; width: 40px; min-height: 40px; }
body.page-track-project .tt-dl-box h3 { margin: 0 44px 0 0; font-size: 18px; line-height: 1.3; color: var(--c-primary, #001f3f); }
body.page-track-project .tt-dl-box h3 i { margin-right: 6px; color: var(--c-accent, #0074D9); }
body.page-track-project .tt-dl-proj { margin: 4px 44px 16px 0; font-size: 13px; color: #64748b; overflow-wrap: anywhere; }
body.page-track-project .tt-dl-step { display: flex; flex-direction: column; gap: 10px; }
body.page-track-project .tt-dl-step label { font-size: 13.5px; font-weight: 600; color: var(--c-primary, #001f3f); }
body.page-track-project .tt-dl-in { position: relative; }
body.page-track-project .tt-dl-in i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 14px; color: #94a3b8; }
body.page-track-project .tt-dl-in input { width: 100%; min-height: 46px; padding: 0 12px 0 38px; border: 1px solid #d5dce6; border-radius: 10px; font: inherit; font-size: 16px; color: var(--c-primary, #001f3f); background: #fff; touch-action: manipulation; }
body.page-track-project .tt-dl-in input:focus { outline: none; border-color: var(--c-accent, #0074D9); box-shadow: 0 0 0 3px rgba(var(--c-accent-rgb, 0, 116, 217), .15); }
body.page-track-project .tt-dl-in.code i { display: none; }
body.page-track-project .tt-dl-in.code input { padding-left: 12px; text-align: center; letter-spacing: 6px; font-size: 20px; font-weight: 700; }
body.page-track-project .tt-dl-step .up-btn { min-height: 46px; }
body.page-track-project .tt-dl-err { margin: 0; padding: 9px 12px; border: 1px solid #fecaca; border-radius: 8px; background: #fef2f2; color: #991b1b; font-size: 13px; line-height: 1.5; }
body.page-track-project .tt-dl-sent { margin: 0; padding: 9px 12px; border: 1px solid #bbf7d0; border-radius: 8px; background: #f0fdf4; color: #14532d; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
body.page-track-project .tt-dl-sent i { margin-right: 4px; color: #16a34a; }
body.page-track-project .tt-dl-links { display: flex; gap: 8px; }
body.page-track-project .tt-dl-links .up-btn { flex: 1 1 0; min-width: 0; padding: 0 10px; font-size: 13px; }
body.page-track-project .tt-dl-note { margin: 0; font-size: 12.5px; color: #64748b; }
body.page-track-project .tt-dl-help { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #eef2f7; font-size: 12.5px; color: #64748b; }
body.page-track-project .tt-dl-help i { margin-right: 3px; color: #25d366; }
body.page-track-project .tt-dl-help a { color: var(--c-primary, #001f3f); font-weight: 600; text-decoration: none; }
@media (max-width: 480px) {
    body.page-track-project .tt-dl { align-items: flex-end; padding: 0; }
    body.page-track-project .tt-dl-box { max-width: none; max-height: calc(100vh - 24px); border-radius: 16px 16px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
/* "right now" line inside the status box */
body.page-track-project .tt-status p.tt-where { margin-top: 6px; opacity: 1; }
body.page-track-project .tt-where i { margin-right: 4px; color: var(--c-accent, #0074D9); }
body.page-track-project .tt-where b { display: inline; font-size: inherit; }
/* progress line — one segment per phase: built green, the one on the bench outlined */
body.page-track-project .tt-seg { display: flex; gap: 4px; }
body.page-track-project .tt-seg span { flex: 1 1 0; min-width: 0; height: 8px; border-radius: 10px; background: #e5e9f0; }
body.page-track-project .tt-seg span.done { background: #16a34a; }
body.page-track-project .tt-seg span.now { background: rgba(var(--c-accent-rgb, 0, 116, 217), .25); box-shadow: inset 0 0 0 1.5px var(--c-accent, #0074D9); }
/* timeline — oldest first: done (green), now (accent ring), delivery target (dashed) */
body.page-track-project .tt-tl-wrap { margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef2f7; }
body.page-track-project .tt-tl { list-style: none; margin: 8px 0 0; padding: 0; }
body.page-track-project .tt-tl-i { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; column-gap: 12px; align-items: start; padding-bottom: 14px; }
body.page-track-project .tt-tl-i:last-child { padding-bottom: 0; }
body.page-track-project .tt-tl-i:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: #e5e9f0; }
body.page-track-project .tt-tl-i.done:not(:last-child)::after { background: #bbf7d0; }
body.page-track-project .tt-tl-dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11.5px; background: #f8fafc; border: 2px solid #e5e9f0; color: #94a3b8; }
body.page-track-project .tt-tl-i.done .tt-tl-dot { background: #dcfce7; border-color: #bbf7d0; color: #16a34a; }
body.page-track-project .tt-tl-i.done.t-info .tt-tl-dot { background: rgba(var(--c-accent-rgb, 0, 116, 217), .09); border-color: rgba(var(--c-accent-rgb, 0, 116, 217), .22); color: var(--c-accent, #0074D9); }
body.page-track-project .tt-tl-i.t-warn .tt-tl-dot { background: #fef3c7; border-color: #fde68a; color: #d97706; }
body.page-track-project .tt-tl-i.t-bad .tt-tl-dot { background: #fee2e2; border-color: #fecaca; color: #dc2626; }
body.page-track-project .tt-tl-i.now .tt-tl-dot { background: #fff; border-color: var(--c-accent, #0074D9); color: var(--c-accent, #0074D9); box-shadow: 0 0 0 4px rgba(var(--c-accent-rgb, 0, 116, 217), .14); }
body.page-track-project .tt-tl-i.now.t-warn .tt-tl-dot { border-color: #d97706; color: #d97706; box-shadow: 0 0 0 4px rgba(217, 119, 6, .14); }
body.page-track-project .tt-tl-i.goal .tt-tl-dot { background: #fff; border-style: dashed; border-color: #cbd5e1; color: var(--c-primary, #001f3f); }
body.page-track-project .tt-tl-body { min-width: 0; padding-top: 4px; }
body.page-track-project .tt-tl-body b { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--c-primary, #001f3f); overflow-wrap: anywhere; }
body.page-track-project .tt-tl-body span { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.4; color: #64748b; overflow-wrap: anywhere; }
body.page-track-project .tt-tl-i.now .tt-tl-body b { font-weight: 700; }
body.page-track-project .tt-tl-when { padding-top: 5px; font-size: 12px; color: #64748b; white-space: nowrap; }
body.page-track-project .tt-tl-i.now .tt-tl-when { font-weight: 700; color: var(--c-accent, #0074D9); }
body.page-track-project .tt-tl-i.now.t-warn .tt-tl-when { color: #d97706; }
body.page-track-project .tt-tl-i.goal.t-bad .tt-tl-when { font-weight: 700; color: #dc2626; }
body.page-track-project .tt-tl-i.tt-fold { display: none; }
body.page-track-project .tt-tl-open .tt-tl-i.tt-fold { display: grid; }
body.page-track-project .tt-tl-more { margin-top: 12px; }
body.page-track-project .tt-upd { margin-top: 12px; font-size: 12.5px; color: #64748b; }
body.page-track-project .tt-upd i { margin-right: 4px; color: var(--c-accent, #0074D9); }
body.page-track-project .tt-upd b { color: var(--c-primary, #001f3f); }
@media (max-width: 600px) {
    body.page-track-project .search-form { flex-wrap: wrap; }
    body.page-track-project .search-form .up-btn { flex: 1 1 100%; }
    body.page-track-project .quick-stats { grid-template-columns: 1fr 1fr; }
    body.page-track-project .project-title { font-size: 16px; }
}
/* phone: the stepper turns vertical — dot left, label + date + note right */
@media (max-width: 560px) {
    body.page-track-project .tt-steps { grid-template-columns: 1fr; margin-top: 14px; }
    body.page-track-project .tt-step { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; text-align: left; padding: 0 0 14px; }
    body.page-track-project .tt-step > .tt-dot { grid-row: 1 / span 3; align-self: start; margin: 0; }
    body.page-track-project .tt-step > :not(.tt-dot) { grid-column: 2; justify-self: start; }
    body.page-track-project .tt-step::before { display: none; }
    body.page-track-project .tt-step:not(:last-child)::after { content: ''; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: #e5e9f0; }
    body.page-track-project .tt-step:has(+ .tt-step.done)::after, body.page-track-project .tt-step:has(+ .tt-step.now)::after { background: var(--c-accent, #0074D9); }
    body.page-track-project .tt-date { margin-top: 0; }
    body.page-track-project .tt-tl-i { grid-template-columns: 28px minmax(0, 1fr); }
    body.page-track-project .tt-tl-when { grid-column: 2; padding-top: 2px; white-space: normal; }
    body.page-track-project .tt-tl-more { width: 100%; min-height: 44px; }
}

/* ===== Project Requests (project_requirements.php) — users, partners, staff (admin sidebar) and guests (bare page) =====
   the wizard / list / modal css moved as-is at its old weight; the rounded portal look is layered on after it */
/* staff view loads no palette file — fall back to the house navy so nothing renders white-on-white */
:where(body.page-project-requests) { --navy-primary: var(--c-primary, #001f3f); --navy-dark: var(--c-primary-dark, #001529); --navy-light: var(--c-secondary, #003366); --navy-accent: var(--c-accent, #0074D9); --navy-hover: var(--c-primary-hover, #002a52); --success: #34a853; --warning: #fbbc04; --danger: #ea4335; }
:where(body.page-project-requests, body.page-project-requests *) { margin: 0; padding: 0; box-sizing: border-box; }
:where(body.page-project-requests) { -webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%; text-size-adjust: 100%; }
body:where(.page-project-requests) { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; min-height: 100vh; padding: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:where(body.page-project-requests) input, :where(body.page-project-requests) select, :where(body.page-project-requests) textarea { font-size: 16px !important; touch-action: manipulation; }
/* Dashboard layout styles when logged in */
:where(body.page-project-requests:not(.pr-guest)) .dashboard { display: flex; min-height: 100vh; }
:where(body.page-project-requests:not(.pr-guest)) .main-content { flex: 1; padding: 20px; overflow-y: auto; background: #f5f5f5; }
:where(body.page-project-requests:not(.pr-guest)) .container { width: 100%; max-width: 100%; margin: 0 auto; padding: 0; }
:where(body.page-project-requests.pr-guest) .container { width: 100%; max-width: 100%; margin: 0 auto; padding: 20px 40px; }
:where(body.page-project-requests) .progress-container { background: white; border-radius: 10px; padding: 25px 40px; margin-bottom: 25px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); width: 100%; }
:where(body.page-project-requests) .progress-steps { display: flex; justify-content: space-between; position: relative; }
:where(body.page-project-requests) .progress-steps::before { content: ''; position: absolute; top: 20px; left: 40px; right: 40px; height: 3px; background: #e0e0e0; z-index: 1; }
:where(body.page-project-requests) .progress-line { position: absolute; top: 20px; left: 40px; height: 3px; background: var(--navy-accent); z-index: 2; transition: width 0.4s ease; }
:where(body.page-project-requests) .step { display: flex; flex-direction: column; align-items: center; z-index: 3; cursor: pointer; }
:where(body.page-project-requests) .step-circle { width: 40px; height: 40px; border-radius: 50%; background: #e0e0e0; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; color: #666; transition: all 0.3s; border: 3px solid transparent; }
:where(body.page-project-requests) .step.active .step-circle { background: var(--navy-accent); color: white; border-color: var(--navy-light); transform: scale(1.1); }
:where(body.page-project-requests) .step.completed .step-circle { background: var(--success); color: white; }
/* on completed: hide section icon, draw a check */
:where(body.page-project-requests) .step.completed .step-circle i { display: none; }
:where(body.page-project-requests) .step.completed .step-circle::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: white; font-size: 14px; }
:where(body.page-project-requests) .step-label { margin-top: 10px; font-size: 12px; color: #666; font-weight: 500; text-align: center; }
:where(body.page-project-requests) .step.active .step-label { color: var(--navy-primary); font-weight: 600; }
:where(body.page-project-requests) .form-card { background: white; border-radius: 10px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1); overflow: hidden; width: 100%; }
:where(body.page-project-requests) .form-section { display: none; padding: 40px; animation: fadeIn 0.4s ease; }
:where(body.page-project-requests) .form-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
:where(body.page-project-requests) .section-header { margin-bottom: 30px; padding-bottom: 15px; border-bottom: 2px solid var(--navy-primary); }
:where(body.page-project-requests) .section-header h2 { font-size: 22px; color: var(--navy-primary); display: flex; align-items: center; gap: 12px; }
:where(body.page-project-requests) .section-header h2 i { color: var(--navy-accent); }
:where(body.page-project-requests) .section-header p { color: #666; font-size: 14px; margin-top: 8px; }
:where(body.page-project-requests) .form-group { margin-bottom: 24px; }
:where(body.page-project-requests) .form-group label { display: block; margin-bottom: 8px; color: var(--navy-primary); font-weight: 600; font-size: 14px; }
:where(body.page-project-requests) .form-group label .required { color: var(--danger); margin-left: 2px; }
:where(body.page-project-requests) .form-group input, :where(body.page-project-requests) .form-group textarea, :where(body.page-project-requests) .form-group select { width: 100%; padding: 14px 16px; border: 2px solid #e0e0e0; border-radius: 6px; font-size: 16px !important; transition: all 0.3s; font-family: inherit; touch-action: manipulation; }
:where(body.page-project-requests) .form-group input:focus, :where(body.page-project-requests) .form-group textarea:focus, :where(body.page-project-requests) .form-group select:focus { outline: none; border-color: var(--navy-accent); box-shadow: 0 0 0 3px rgba(var(--c-accent-rgb), 0.1); }
:where(body.page-project-requests) .form-group textarea { min-height: 120px; resize: vertical; }
:where(body.page-project-requests) .form-group small { display: block; margin-top: 6px; color: #888; font-size: 12px; }
:where(body.page-project-requests) .form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
:where(body.page-project-requests) .dynamic-list { border: 2px solid #e0e0e0; border-radius: 6px; padding: 20px; background: #fafafa; }
:where(body.page-project-requests) .dynamic-list-item { display: flex; gap: 12px; margin-bottom: 12px; align-items: center; }
:where(body.page-project-requests) .dynamic-list-item:last-child { margin-bottom: 0; }
:where(body.page-project-requests) .dynamic-list-item input { flex: 1; }
:where(body.page-project-requests) .dynamic-list-item .btn-remove { padding: 12px 16px; background: var(--danger); color: white; border: none; border-radius: 6px; cursor: pointer; transition: all 0.3s; flex-shrink: 0; }
:where(body.page-project-requests) .dynamic-list-item .btn-remove:hover { background: #c62828; transform: scale(1.05); }
:where(body.page-project-requests) .btn-add-item { padding: 10px 20px; background: var(--navy-light); color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s; margin-top: 10px; }
:where(body.page-project-requests) .btn-add-item:hover { background: var(--navy-primary); }
:where(body.page-project-requests) .role-card { border: 2px solid #e0e0e0; border-radius: 10px; padding: 25px; margin-bottom: 20px; background: #fafafa; position: relative; border-left: 4px solid var(--navy-accent); }
:where(body.page-project-requests) .role-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #e0e0e0; }
:where(body.page-project-requests) .role-card-title { font-weight: 600; color: var(--navy-primary); font-size: 16px; }
:where(body.page-project-requests) .role-card .form-row { margin-bottom: 15px; }
:where(body.page-project-requests) .btn-remove-role { position: absolute; top: 10px; right: 10px; background: var(--danger); color: white; border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 14px; transition: all 0.3s; }
:where(body.page-project-requests) .btn-remove-role:hover { background: #c62828; transform: scale(1.1); }
:where(body.page-project-requests) .form-actions { display: flex; justify-content: space-between; padding: 25px 40px; background: #f8f9fa; border-top: 1px solid #e0e0e0; }
:where(body.page-project-requests) .btn { padding: 14px 28px; border: none; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; gap: 10px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:where(body.page-project-requests) .btn-primary { background: var(--navy-primary); color: white; }
:where(body.page-project-requests) .btn-primary:hover { background: var(--navy-hover); transform: translateY(-2px); }
:where(body.page-project-requests) .btn-secondary { background: #6c757d; color: white; }
:where(body.page-project-requests) .btn-secondary:hover { background: #5a6268; }
:where(body.page-project-requests) .btn-success { background: var(--success); color: white; }
:where(body.page-project-requests) .btn-success:hover { background: #2d9348; transform: translateY(-2px); }
:where(body.page-project-requests) .btn:disabled { background: #ccc; cursor: not-allowed; transform: none; }
:where(body.page-project-requests) .final-actions { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 30px; padding-top: 25px; border-top: 2px solid #e0e0e0; }
:where(body.page-project-requests) .summary-section { background: #f8f9fa; border-radius: 10px; padding: 25px 30px; margin-bottom: 25px; border-left: 4px solid var(--navy-primary); }
:where(body.page-project-requests) .summary-section h3 { color: var(--navy-primary); font-size: 17px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--navy-accent); }
:where(body.page-project-requests) .auto-save-indicator { position: fixed; bottom: 20px; right: 20px; background: var(--navy-primary); color: white; padding: 12px 20px; border-radius: 10px; font-size: 13px; display: flex; align-items: center; gap: 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); opacity: 0; transform: translateY(20px); transition: all 0.3s; z-index: 1000; }
:where(body.page-project-requests) .auto-save-indicator.show { opacity: 1; transform: translateY(0); }
:where(body.page-project-requests) .checkbox-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
:where(body.page-project-requests) .checkbox-item { display: flex; align-items: center; gap: 10px; padding: 12px; background: white; border: 2px solid #e0e0e0; border-radius: 6px; cursor: pointer; transition: all 0.3s; }
:where(body.page-project-requests) .checkbox-item:hover { border-color: var(--navy-accent); }
/* feature selectors rendered as on/off toggle switches */
:where(body.page-project-requests) .checkbox-item input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 44px; height: 24px; border-radius: 24px; background: #ccc; position: relative; cursor: pointer; transition: background 0.3s; border: none; outline: none; }
:where(body.page-project-requests) .checkbox-item input:checked { background: var(--navy-accent); }
:where(body.page-project-requests) .checkbox-item input::before { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
:where(body.page-project-requests) .checkbox-item input:checked::before { transform: translateX(20px); }
/* role active on/off toggle */
:where(body.page-project-requests) .role-active-label { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; font-weight: 600; color: var(--navy-primary); cursor: pointer; }
:where(body.page-project-requests) .role-toggle { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 44px; height: 24px; border-radius: 24px; background: #ccc; position: relative; cursor: pointer; transition: background 0.3s; border: none; outline: none; }
:where(body.page-project-requests) .role-toggle:checked { background: var(--navy-accent); }
:where(body.page-project-requests) .role-toggle::before { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
:where(body.page-project-requests) .role-toggle:checked::before { transform: translateX(20px); }
:where(body.page-project-requests) .checkbox-item.checked { border-color: var(--navy-accent); background: rgba(var(--c-accent-rgb), 0.05); }
:where(body.page-project-requests) .checkbox-item label { cursor: pointer; font-size: 14px; color: #333; }
:where(body.page-project-requests) .checkbox-item.checked label { color: var(--navy-primary); font-weight: 600; }
/* Mobile Navbar */
:where(body.page-project-requests:not(.pr-guest)) .mobile-navbar { display: none; position: fixed; top: 0; left: 0; right: 0; height: 60px; background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-dark) 100%); color: white; z-index: 1000; padding: 0 15px; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
:where(body.page-project-requests:not(.pr-guest)) .mobile-navbar .hamburger-btn { background: none; border: none; color: white; font-size: 24px; cursor: pointer; padding: 10px; margin-right: 10px; }
:where(body.page-project-requests:not(.pr-guest)) .mobile-navbar h1 { font-size: 18px; font-weight: 600; margin: 0; }
/* Large screens */
@media (min-width: 1400px) {
    :where(body.page-project-requests.pr-guest) .container { padding: 30px 60px; }
    :where(body.page-project-requests) .form-section { padding: 45px 50px; }
    :where(body.page-project-requests) .checkbox-group { grid-template-columns: repeat(3, 1fr); }
}
/* Medium screens / Tablets */
@media (max-width: 992px) {
    :where(body.page-project-requests.pr-guest) .container { padding: 20px 30px; }
    :where(body.page-project-requests) .form-row { grid-template-columns: 1fr; gap: 15px; }
    :where(body.page-project-requests) .checkbox-group { grid-template-columns: repeat(2, 1fr); }
}
/* Small screens / Mobile */
@media (max-width: 768px) {
    :where(body.page-project-requests:not(.pr-guest)) .mobile-navbar { display: flex; }
    :where(body.page-project-requests:not(.pr-guest)) .dashboard { flex-direction: column; }
    :where(body.page-project-requests:not(.pr-guest)) .main-content { margin-left: 0; padding-top: 70px; padding-bottom: 100px; }
    :where(body.page-project-requests.pr-guest) .container { padding: 15px; }
    :where(body.page-project-requests) .progress-container { padding: 15px; margin-bottom: 20px; }
    :where(body.page-project-requests) .progress-steps { flex-wrap: wrap; gap: 12px; justify-content: center; }
    :where(body.page-project-requests) .progress-steps::before, :where(body.page-project-requests) .progress-line { display: none; }
    :where(body.page-project-requests) .step-circle { width: 36px; height: 36px; font-size: 14px; }
    :where(body.page-project-requests) .step-label { font-size: 11px; margin-top: 6px; }
    :where(body.page-project-requests) .form-section { padding: 25px 20px; }
    :where(body.page-project-requests) .section-header { margin-bottom: 25px; }
    :where(body.page-project-requests) .section-header h2 { font-size: 18px; gap: 10px; }
    :where(body.page-project-requests) .section-header p { font-size: 13px; }
    :where(body.page-project-requests) .form-row { grid-template-columns: 1fr; gap: 0; }
    :where(body.page-project-requests) .form-group { margin-bottom: 20px; }
    :where(body.page-project-requests) .form-group input, :where(body.page-project-requests) .form-group textarea, :where(body.page-project-requests) .form-group select { padding: 12px 14px; font-size: 16px; }
    :where(body.page-project-requests) .checkbox-group { grid-template-columns: 1fr; gap: 10px; }
    :where(body.page-project-requests) .checkbox-item { padding: 14px 12px; }
    :where(body.page-project-requests) .checkbox-item label { font-size: 14px; }
    :where(body.page-project-requests) .role-card { padding: 18px 15px; }
    :where(body.page-project-requests) .role-card-title { font-size: 15px; }
    :where(body.page-project-requests) .dynamic-list { padding: 12px; }
    :where(body.page-project-requests) .dynamic-list-item { flex-direction: column; gap: 8px; }
    :where(body.page-project-requests) .dynamic-list-item .btn-remove { width: 100%; padding: 10px; }
    :where(body.page-project-requests) .btn-add-item { width: 100%; justify-content: center; padding: 12px 20px; }
    :where(body.page-project-requests) .form-actions { flex-direction: column; gap: 12px; padding: 20px; }
    :where(body.page-project-requests) .form-actions .btn { width: 100%; justify-content: center; padding: 14px 20px; }
    :where(body.page-project-requests) .btn { padding: 14px 24px; font-size: 14px; }
    :where(body.page-project-requests) .final-actions { flex-direction: column; gap: 12px; }
    :where(body.page-project-requests) .final-actions .btn { width: 100%; justify-content: center; }
    :where(body.page-project-requests) .summary-section { padding: 18px; }
    :where(body.page-project-requests) .summary-section h3 { font-size: 15px; }
    :where(body.page-project-requests) .auto-save-indicator { bottom: 15px; right: 15px; left: 15px; text-align: center; justify-content: center; }
}
/* Extra small screens */
@media (max-width: 480px) {
    :where(body.page-project-requests.pr-guest) .container { padding: 10px; }
    :where(body.page-project-requests) .form-section { padding: 20px 15px; }
    :where(body.page-project-requests) .section-header h2 { font-size: 16px; }
    :where(body.page-project-requests) .step { flex: 0 0 auto; }
    :where(body.page-project-requests) .step-circle { width: 32px; height: 32px; font-size: 12px; }
    :where(body.page-project-requests) .step-label { font-size: 10px; }
}
/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    :where(body.page-project-requests) .checkbox-item, :where(body.page-project-requests) .btn, :where(body.page-project-requests) .btn-add-item, :where(body.page-project-requests) .btn-remove, :where(body.page-project-requests) .btn-remove-role { min-height: 44px; }
    :where(body.page-project-requests) .form-group input, :where(body.page-project-requests) .form-group textarea, :where(body.page-project-requests) .form-group select { min-height: 48px; }
    :where(body.page-project-requests) .project-modal-close { min-width: 44px; min-height: 44px; }
    :where(body.page-project-requests) .rqc-attach-btn { min-height: 44px; }
}
/* Breadcrumb Navigation */
/* Projects List */
:where(body.page-project-requests) .projects-container { background: white; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,0.1); padding: 25px; }
/* Projects Filter Section */
/* Search input focus state */
/* Search button loading state */
/* Searching animation */
/* Highlight matching text in results */
/* tablet: filter row too tight beside sidebar */
@media (max-width: 1024px) {
    :where(body.page-project-requests) .projects-table th, :where(body.page-project-requests) .projects-table td { padding: 10px; }
}
/* Mobile Responsive for Projects Filter */
@media (max-width: 768px) {
    /* Projects Table Mobile */
    :where(body.page-project-requests) .projects-table { font-size: 12px; }
    :where(body.page-project-requests) .projects-table th, :where(body.page-project-requests) .projects-table td { padding: 8px 6px; }
    :where(body.page-project-requests) .projects-table th:nth-child(3), :where(body.page-project-requests) .projects-table td:nth-child(3) { display: none; }
    :where(body.page-project-requests) .projects-table th:nth-child(5), :where(body.page-project-requests) .projects-table td:nth-child(5) { display: none; }
    :where(body.page-project-requests) .action-btns { flex-wrap: wrap; gap: 4px; }
    :where(body.page-project-requests) .action-btns .btn-sm { padding: 4px 8px; font-size: 11px; }
    :where(body.page-project-requests) .action-btns .status-select { width: 100%; margin-top: 4px; }
    :where(body.page-project-requests) .status-badge { padding: 3px 8px; font-size: 10px; }
}
@media (max-width: 480px) {
    /* Projects Table Extra Small */
    :where(body.page-project-requests) .projects-table th:nth-child(6), :where(body.page-project-requests) .projects-table td:nth-child(6) { display: none; }
    :where(body.page-project-requests) .projects-container { padding: 15px; }
}
/* js-injected table scrolls in its own box, body never side-scrolls */
:where(body.page-project-requests) #projectsList { overflow-x: auto; -webkit-overflow-scrolling: touch; }
:where(body.page-project-requests) .projects-table { width: 100%; border-collapse: collapse; }
:where(body.page-project-requests) .projects-table th { background: var(--navy-primary); color: white; padding: 12px 15px; text-align: left; font-weight: 600; font-size: 13px; }
:where(body.page-project-requests) .projects-table td { padding: 12px 15px; border-bottom: 1px solid #e0e0e0; font-size: 14px; }
:where(body.page-project-requests) .projects-table tbody tr:hover { background: #f8f9fa; }
:where(body.page-project-requests) .status-badge { padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
:where(body.page-project-requests) .status-draft { background: #e0e0e0; color: #666; }
:where(body.page-project-requests) .status-submitted { background: #e3f2fd; color: #1565c0; }
:where(body.page-project-requests) .status-in_progress { background: #fff3e0; color: #e65100; }
:where(body.page-project-requests) .status-completed { background: #e8f5e9; color: #2e7d32; }
:where(body.page-project-requests) .status-cancelled { background: #ffebee; color: #c62828; }
:where(body.page-project-requests) .action-btns { display: flex; gap: 8px; }
:where(body.page-project-requests) .action-btns .btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
:where(body.page-project-requests) .btn-view { background: var(--navy-accent); color: white; }
:where(body.page-project-requests) .btn-edit { background: var(--success); color: white; }
:where(body.page-project-requests) .btn-delete { background: var(--danger); color: white; }
:where(body.page-project-requests) .btn-chat { background: #4338ca; color: white; }
/* ---- internal requirements chat (admin) ---- */
:where(body.page-project-requests) .rqc-wide { max-width: 80% !important; width: 80% !important; display: flex; flex-direction: column; max-height: 88vh; }
:where(body.page-project-requests) .rqc-shell { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 18px 22px 20px; }
:where(body.page-project-requests) .rqc-note { display: flex; align-items: center; gap: 9px; background: #f1f5f9; color: #475569; border-left: 3px solid #4338ca; padding: 9px 13px; font-size: 12.5px; font-weight: 600; margin-bottom: 14px; flex-shrink: 0; }
:where(body.page-project-requests) .rqc-thread { flex: 1; min-height: 260px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; padding: 4px 4px 8px 2px; }
:where(body.page-project-requests) .rqc-empty { margin: auto; text-align: center; color: #94a3b8; font-size: 14px; }
:where(body.page-project-requests) .rqc-empty i { font-size: 42px; display: block; margin-bottom: 12px; color: #cbd5e1; }
:where(body.page-project-requests) .rqc-msg { display: flex; gap: 10px; max-width: 82%; }
:where(body.page-project-requests) .rqc-msg.theirs { align-self: flex-start; }
:where(body.page-project-requests) .rqc-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
:where(body.page-project-requests) .rqc-avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; background: linear-gradient(135deg, var(--c-primary, #001f3f), var(--c-primary-dark, #003366)); }
:where(body.page-project-requests) .rqc-msg.mine .rqc-avatar { background: linear-gradient(135deg, var(--c-accent, #0074D9), var(--c-accent-strong, #0a84ff)); }
:where(body.page-project-requests) .rqc-bubble { background: #fff; border: 1px solid #e2e8f0; padding: 11px 15px; font-size: 14px; color: #334155; line-height: 1.55; white-space: pre-wrap; word-break: break-word; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
:where(body.page-project-requests) .rqc-msg.mine .rqc-bubble { background: #eef6ff; border-color: #cfe4fb; }
:where(body.page-project-requests) .rqc-meta { font-size: 11px; color: #94a3b8; margin-top: 5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
:where(body.page-project-requests) .rqc-role { text-transform: uppercase; letter-spacing: .3px; font-weight: 700; font-size: 10px; padding: 1px 7px; border-radius: 10px; }
:where(body.page-project-requests) .rqc-role.admin { background: #e0e7ff; color: #3730a3; }
:where(body.page-project-requests) .rqc-copy { background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 12px; padding: 2px 6px; border-radius: 10px; transition: all .15s; }
:where(body.page-project-requests) .rqc-copy:hover { color: var(--c-accent, #0074D9); background: var(--c-tint, #e8f1fb); }
:where(body.page-project-requests) .rqc-copy.copied { color: #16a34a; }
:where(body.page-project-requests) .rqc-composer { margin-top: 14px; border-top: 1px solid #e2e8f0; padding-top: 14px; flex-shrink: 0; }
:where(body.page-project-requests) .rqc-composer textarea { width: 100%; min-height: 78px; padding: 12px 14px; border: 2px solid #e2e8f0; font-family: inherit; font-size: 15px; resize: vertical; }
:where(body.page-project-requests) .rqc-composer textarea:focus { outline: none; border-color: var(--c-accent, #0074D9); box-shadow: 0 0 0 3px rgba(var(--c-accent-rgb), .12); }
/* composer attach row */
:where(body.page-project-requests) .rqc-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
:where(body.page-project-requests) .rqc-actions .btn-primary { flex: 1; }
:where(body.page-project-requests) .rqc-attach-btn { background: #fff; color: #334155; border: 2px solid #e2e8f0; border-radius: 8px; padding: 10px 18px; font-size: 13.5px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all .15s; flex-shrink: 0; }
:where(body.page-project-requests) .rqc-attach-btn:hover { border-color: var(--c-accent, #0074D9); color: var(--c-accent, #0074D9); }
:where(body.page-project-requests) .rqc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
:where(body.page-project-requests) .rqc-chips:empty { display: none; }
:where(body.page-project-requests) .rqc-chip { display: inline-flex; align-items: center; gap: 7px; background: #eef6ff; border: 1px solid #cfe4fb; color: #0b4a8f; border-radius: 20px; padding: 5px 8px 5px 12px; font-size: 12.5px; font-weight: 600; max-width: 260px; }
:where(body.page-project-requests) .rqc-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(body.page-project-requests) .rqc-chip small { color: #64748b; font-weight: 600; flex-shrink: 0; }
:where(body.page-project-requests) .rqc-chip button { background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 14px; padding: 2px 4px; line-height: 1; flex-shrink: 0; }
:where(body.page-project-requests) .rqc-chip button:hover { color: #dc2626; }
/* attachments inside bubbles */
:where(body.page-project-requests) .rqc-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
:where(body.page-project-requests) .rqc-bubble .rqc-atts:first-child { margin-top: 0; }
:where(body.page-project-requests) .rqc-att-img { display: block; border-radius: 8px; overflow: hidden; border: 1px solid #e2e8f0; }
:where(body.page-project-requests) .rqc-att-img img { display: block; max-width: 180px; max-height: 140px; object-fit: cover; }
:where(body.page-project-requests) .rqc-att-file { display: inline-flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 12px; font-size: 12.5px; font-weight: 700; color: #334155; text-decoration: none; max-width: 240px; }
:where(body.page-project-requests) .rqc-att-file:hover { border-color: var(--c-accent, #0074D9); color: var(--c-accent, #0074D9); }
:where(body.page-project-requests) .rqc-att-file i { font-size: 17px; flex-shrink: 0; }
:where(body.page-project-requests) .rqc-att-file i.fa-file-pdf { color: #dc2626; }
:where(body.page-project-requests) .rqc-att-file i.fa-file-zipper { color: #d97706; }
:where(body.page-project-requests) .rqc-att-file i.fa-file-word { color: #2563eb; }
:where(body.page-project-requests) .rqc-att-file i.fa-file-excel, :where(body.page-project-requests) .rqc-att-file i.fa-file-csv { color: #16a34a; }
:where(body.page-project-requests) .rqc-att-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(body.page-project-requests) .rqc-att-file small { color: #94a3b8; font-weight: 600; flex-shrink: 0; }
@media (max-width: 768px) {
    :where(body.page-project-requests) .rqc-wide { max-width: 96% !important; width: 96% !important; }
    :where(body.page-project-requests) .rqc-msg { max-width: 92%; }
    :where(body.page-project-requests) .rqc-att-img img { max-width: 140px; }
}
:where(body.page-project-requests) .status-select { background: var(--navy-primary); color: white; border: none; cursor: pointer; font-size: 11px; padding: 6px 8px; }
:where(body.page-project-requests) .status-select:focus { outline: none; box-shadow: 0 0 0 2px var(--navy-accent); }
/* Project Detail Modal */
/* ai magic — describe box, buttons, interview chat */
:where(body.page-project-requests) .ai-magic { background: linear-gradient(135deg, rgba(var(--c-accent-rgb), .07), rgba(var(--c-accent-rgb), .02)); border: 1.5px dashed var(--navy-accent); border-radius: 10px; padding: 18px; margin-bottom: 28px; }
:where(body.page-project-requests) .ai-magic-head { font-weight: 700; color: var(--navy-primary); font-size: 16px; margin-bottom: 6px; }
:where(body.page-project-requests) .ai-magic-head i { color: var(--navy-accent); margin-right: 8px; }
:where(body.page-project-requests) .ai-magic-sub { font-size: 13px; color: #64748b; margin: 0 0 12px; line-height: 1.55; }
:where(body.page-project-requests) .ai-magic textarea { width: 100%; border: 1px solid #d5dde7; border-radius: 8px; padding: 12px; font-size: 16px; font-family: inherit; resize: vertical; min-height: 58px; box-sizing: border-box; }
:where(body.page-project-requests) .ai-magic textarea:focus { outline: none; border-color: var(--navy-accent); box-shadow: 0 0 0 3px rgba(var(--c-accent-rgb), .15); }
:where(body.page-project-requests) .ai-magic-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
:where(body.page-project-requests) .btn-ai { background: var(--navy-accent); color: #fff; }
:where(body.page-project-requests) .btn-ai:hover:not(:disabled) { background: var(--navy-primary); }
:where(body.page-project-requests) .btn-ai:disabled, :where(body.page-project-requests) .ai-improve-btn:disabled { opacity: .6; cursor: not-allowed; }
:where(body.page-project-requests) .ai-improve-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--navy-accent); color: var(--navy-accent); border-radius: 6px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; margin: 8px 0 4px; touch-action: manipulation; }
:where(body.page-project-requests) .ai-improve-btn:hover:not(:disabled) { background: rgba(var(--c-accent-rgb), .08); }
:where(body.page-project-requests) .aic-box { max-width: 560px; display: flex; flex-direction: column; }
:where(body.page-project-requests) .aic-note { font-size: 12.5px; color: #64748b; background: rgba(var(--c-accent-rgb), .06); padding: 8px 14px; border-bottom: 1px solid #eef2f7; }
:where(body.page-project-requests) .aic-note i { color: var(--navy-accent); margin-right: 5px; }
:where(body.page-project-requests) .aic-thread { flex: 1; min-height: 260px; max-height: 46vh; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
:where(body.page-project-requests) .aic-msg { display: flex; gap: 8px; align-items: flex-start; max-width: 85%; font-size: 14px; line-height: 1.5; }
:where(body.page-project-requests) .aic-msg i { color: var(--navy-accent); margin-top: 8px; flex: 0 0 auto; }
:where(body.page-project-requests) .aic-msg span { padding: 9px 13px; border-radius: 12px; }
:where(body.page-project-requests) .aic-ai span { background: #f1f5f9; color: #1e293b; border-top-left-radius: 3px; }
:where(body.page-project-requests) .aic-me { align-self: flex-end; }
:where(body.page-project-requests) .aic-me span { background: var(--navy-accent); color: #fff; border-top-right-radius: 3px; }
:where(body.page-project-requests) .aic-typing b { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; margin: 0 2px; animation: aicDot 1s infinite; }
:where(body.page-project-requests) .aic-typing b:nth-child(2) { animation-delay: .15s; }
:where(body.page-project-requests) .aic-typing b:nth-child(3) { animation-delay: .3s; }
@keyframes aicDot { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
:where(body.page-project-requests) .aic-inputbar { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid #eef2f7; }
:where(body.page-project-requests) .aic-inputbar input { flex: 1; border: 1px solid #d5dde7; border-radius: 8px; padding: 11px 13px; font-size: 16px; }
:where(body.page-project-requests) .aic-inputbar input:focus { outline: none; border-color: var(--navy-accent); }
:where(body.page-project-requests) .aic-send { padding: 10px 16px; }
:where(body.page-project-requests) .aic-restart { background: none; border: 0; color: var(--navy-accent); font-size: 16px; min-width: 44px; min-height: 44px; cursor: pointer; margin-left: auto; touch-action: manipulation; }
:where(body.page-project-requests) .aic-cover { display: flex; gap: 6px; padding: 8px 14px; overflow-x: auto; border-bottom: 1px solid #eef2f7; scrollbar-width: none; }
:where(body.page-project-requests) .aic-cover b { flex: 0 0 auto; font-size: 11.5px; font-weight: 600; color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
:where(body.page-project-requests) .aic-cover b.is-on { color: #fff; background: var(--navy-accent); }
:where(body.page-project-requests) .aic-cover b i { font-size: 10px; margin-right: 4px; }
:where(body.page-project-requests) .aic-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 10px; }
:where(body.page-project-requests) .aic-chips[hidden] { display: none; }
:where(body.page-project-requests) .aic-chip { background: #fff; border: 1px solid var(--navy-accent); color: var(--navy-accent); border-radius: 999px; padding: 8px 14px; font-size: 14px; min-height: 40px; cursor: pointer; touch-action: manipulation; }
:where(body.page-project-requests) .aic-chip:hover { background: rgba(var(--c-accent-rgb), .08); }
:where(body.page-project-requests) .aic-finish { display: block; width: calc(100% - 28px); margin: 0 14px 12px; background: none; border: 1px dashed #cbd5e1; color: #475569; border-radius: 10px; padding: 10px; font-size: 13px; cursor: pointer; min-height: 44px; touch-action: manipulation; }
:where(body.page-project-requests) .aic-finish[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
    :where(body.page-project-requests) .aic-typing b { animation: none; }
}
/* review step — quotation-style tables */
:where(body.page-project-requests) .rq-doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 3px solid var(--navy-primary); padding-bottom: 14px; margin-bottom: 20px; flex-wrap: wrap; }
:where(body.page-project-requests) .rq-doc-title { font-size: 22px; font-weight: 800; color: var(--navy-primary); }
:where(body.page-project-requests) .rq-doc-title i { color: var(--navy-accent); margin-right: 8px; }
:where(body.page-project-requests) .rq-doc-sub { font-size: 13px; color: #64748b; font-weight: 600; margin-top: 3px; letter-spacing: .3px; }
:where(body.page-project-requests) .rq-doc-meta { font-size: 13px; color: #64748b; font-weight: 600; }
:where(body.page-project-requests) .rq-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
:where(body.page-project-requests) .rq-table th { background: var(--navy-primary); color: #fff; text-align: left; padding: 9px 12px; font-size: 12.5px; letter-spacing: .3px; }
:where(body.page-project-requests) .rq-table td { border: 1px solid #e2e8f0; padding: 8px 12px; color: #1e293b; vertical-align: top; word-break: break-word; }
:where(body.page-project-requests) .rq-table tbody tr:nth-child(even) { background: #f8fafc; }
:where(body.page-project-requests) .rq-kv td:nth-child(odd) { background: #f1f5f9; font-weight: 700; color: #475569; width: 140px; font-size: 12.5px; }
:where(body.page-project-requests) .rq-chip { display: inline-block; background: #ecfdf5; color: #0f766e; border: 1px solid #a7f3d0; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; }
:where(body.page-project-requests) .rq-chip-custom { background: #fffbeb; color: #b45309; border-color: #fde68a; }
:where(body.page-project-requests) .rq-count { display: inline-block; background: var(--navy-accent); color: #fff; border-radius: 999px; padding: 1px 10px; font-size: 12px; margin-left: 6px; }
:where(body.page-project-requests) .rq-problem { background: #f8fafc; border-left: 4px solid var(--navy-accent); border-radius: 6px; padding: 12px 14px; margin-top: 12px; font-size: 14px; line-height: 1.65; color: #1e293b; }
:where(body.page-project-requests) .rq-muted { color: #94a3b8; font-style: italic; }
@media (max-width: 640px) {
    :where(body.page-project-requests) .rq-kv td:nth-child(odd) { width: 110px; }
    :where(body.page-project-requests) .rq-table { font-size: 13px; }
}
:where(body.page-project-requests) .project-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
:where(body.page-project-requests) .project-modal.active { display: flex; }
:where(body.page-project-requests) .project-modal-content { background: white; width: 100%; max-width: 900px; max-height: 90vh; overflow-y: auto; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
:where(body.page-project-requests) .project-modal-header { padding: 20px 25px; background: var(--navy-primary); color: white; display: flex; justify-content: space-between; align-items: center; }
:where(body.page-project-requests) .project-modal-header h3 { font-size: 18px; }
:where(body.page-project-requests) .project-modal-close { background: none; border: none; color: white; font-size: 24px; cursor: pointer; }
:where(body.page-project-requests) .project-modal-body { padding: 25px; }
/* ===== documented project view — 90% modal, left doc / right info rail ===== */
:where(body.page-project-requests) .project-modal-content.doc-modal { max-width: 90vw; width: 90vw; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
:where(body.page-project-requests) .doc-modal .project-modal-body { padding: 0; overflow-y: auto; flex: 1; }
:where(body.page-project-requests) .doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: stretch; min-height: 100%; }
:where(body.page-project-requests) .doc-main { padding: 32px 42px 46px; min-width: 0; }
:where(body.page-project-requests) .doc-head { border-bottom: 2px solid var(--navy-primary); padding-bottom: 16px; margin-bottom: 26px; }
:where(body.page-project-requests) .doc-head h2 { color: var(--navy-primary); font-size: 25px; font-weight: 800; margin: 0 0 8px; }
:where(body.page-project-requests) .doc-head .doc-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 12.5px; color: #64748b; }
:where(body.page-project-requests) .doc-head .doc-meta i { color: var(--navy-accent); margin-right: 5px; }
:where(body.page-project-requests) .doc-sec { margin-bottom: 28px; }
:where(body.page-project-requests) .doc-sec-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 11px; }
:where(body.page-project-requests) .doc-sec-h .doc-num { font-size: 12.5px; font-weight: 800; color: var(--navy-accent); letter-spacing: .08em; }
:where(body.page-project-requests) .doc-sec-h h3 { color: var(--navy-primary); font-size: 15.5px; font-weight: 800; margin: 0; text-transform: uppercase; letter-spacing: .05em; }
:where(body.page-project-requests) .doc-sec-h h3 i { color: var(--navy-accent); margin-right: 6px; font-size: 13px; }
:where(body.page-project-requests) .doc-text { font-size: 14.5px; line-height: 1.85; color: #334155; white-space: pre-wrap; margin: 0; }
:where(body.page-project-requests) .doc-empty-val { color: #94a3b8; font-style: italic; font-size: 13.5px; }
:where(body.page-project-requests) .doc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
:where(body.page-project-requests) .doc-chip { display: inline-flex; align-items: center; gap: 7px; background: #eef4fb; border: 1px solid #d6e4f5; color: var(--navy-primary); border-radius: 6px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; }
:where(body.page-project-requests) .doc-chip i { color: var(--navy-accent); font-size: 11px; }
:where(body.page-project-requests) .doc-prio { margin-top: 14px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 12px 15px; font-size: 13px; line-height: 1.7; color: #78350f; white-space: pre-wrap; }
:where(body.page-project-requests) .doc-prio strong { display: block; color: #92400e; margin-bottom: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
:where(body.page-project-requests) .doc-role { border: 1px solid #e2e8f0; border-left: 3px solid var(--navy-accent); border-radius: 6px; padding: 13px 16px; margin-bottom: 10px; background: #fbfdff; }
:where(body.page-project-requests) .doc-role strong { color: var(--navy-primary); font-size: 14px; }
:where(body.page-project-requests) .doc-role .doc-role-access { display: inline-block; background: var(--navy-primary); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: middle; }
:where(body.page-project-requests) .doc-role p { margin: 7px 0 0; font-size: 13px; line-height: 1.65; color: #475569; }
/* right info rail */
:where(body.page-project-requests) .doc-side { background: #f8fafc; border-left: 1px solid #e2e8f0; padding: 22px 20px; }
:where(body.page-project-requests) .side-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px 17px; margin-bottom: 13px; }
:where(body.page-project-requests) .side-card h4 { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: #64748b; margin: 0 0 11px; }
:where(body.page-project-requests) .side-card h4 i { color: var(--navy-accent); margin-right: 6px; }
:where(body.page-project-requests) .side-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed #eef2f7; }
:where(body.page-project-requests) .side-row:last-child { border-bottom: none; }
:where(body.page-project-requests) .side-row .k { color: #64748b; flex-shrink: 0; }
:where(body.page-project-requests) .side-row .v { color: var(--navy-primary); font-weight: 600; text-align: right; word-break: break-word; min-width: 0; }
:where(body.page-project-requests) .side-row .v a { color: var(--navy-accent); text-decoration: none; }
:where(body.page-project-requests) .side-row .v a:hover { text-decoration: underline; }
:where(body.page-project-requests) .side-actions { display: flex; flex-direction: column; gap: 8px; }
:where(body.page-project-requests) .side-actions .btn { width: 100%; justify-content: center; display: inline-flex; align-items: center; gap: 8px; }
:where(body.page-project-requests) .doc-side select, :where(body.page-project-requests) .doc-side textarea { width: 100%; padding: 9px 10px; border: 1px solid #d0d7e2; border-radius: 6px; font-size: 13px; font-family: inherit; background: #fff; }
:where(body.page-project-requests) .doc-side textarea { min-height: 90px; resize: vertical; margin-top: 8px; }
:where(body.page-project-requests) .side-note { font-size: 11.5px; color: #94a3b8; margin-top: 6px; }
@media (max-width: 980px) {
    :where(body.page-project-requests) .project-modal-content.doc-modal { width: 100%; max-width: 100%; }
    :where(body.page-project-requests) .doc-layout { grid-template-columns: 1fr; }
    :where(body.page-project-requests) .doc-side { border-left: none; border-top: 1px solid #e2e8f0; }
    :where(body.page-project-requests) .doc-main { padding: 22px 18px 30px; }
}
/* ===== status overview chips (projects list) ===== */
:where(body.page-project-requests) .status-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
:where(body.page-project-requests) .status-chips:empty { display: none; }
:where(body.page-project-requests) .status-chip { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: #334155; cursor: pointer; font-family: inherit; transition: border-color .2s, color .2s, background .2s; }
:where(body.page-project-requests) .status-chip:hover { border-color: var(--navy-accent); color: var(--navy-accent); }
:where(body.page-project-requests) .status-chip.active { background: var(--navy-primary); border-color: var(--navy-primary); color: #fff; }
:where(body.page-project-requests) .status-chip .n { background: rgba(0,0,0,.07); border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 800; }
:where(body.page-project-requests) .status-chip.active .n { background: rgba(255,255,255,.18); }
@media (max-width: 768px) {
    :where(body.page-project-requests) .projects-table { font-size: 12px; }
    :where(body.page-project-requests) .projects-table th, :where(body.page-project-requests) .projects-table td { padding: 8px 10px; }
    :where(body.page-project-requests) .action-btns { flex-direction: column; }
    /* modal fits real screen height */
    :where(body.page-project-requests) .project-modal { padding: 12px; }
    :where(body.page-project-requests) .project-modal-content { max-height: calc(100vh - 24px); }
    @supports (height: 100dvh) {
        :where(body.page-project-requests) .project-modal-content { max-height: calc(100dvh - 24px); }
    }
    :where(body.page-project-requests) .project-modal-header { padding: 15px 18px; }
    :where(body.page-project-requests) .project-modal-body { padding: 20px 15px; }
    :where(body.page-project-requests) .rqc-shell { padding: 14px 14px 16px; }
    :where(body.page-project-requests) .rqc-thread { min-height: 160px; }
    /* clear fixed bottom nav */
    :where(body.page-project-requests) .auto-save-indicator { bottom: calc(var(--ph-bottom-nav-h, 0px) + 15px); }
}
/* small phone */
@media (max-width: 480px) {
    :where(body.page-project-requests) .project-modal { padding: 8px; }
    :where(body.page-project-requests) .rqc-wide { max-width: 100% !important; width: 100% !important; }
    :where(body.page-project-requests) .rqc-msg { max-width: 100%; }
    :where(body.page-project-requests) .rqc-att-img img { max-width: 110px; }
    :where(body.page-project-requests) .rqc-actions { flex-wrap: wrap; }
    :where(body.page-project-requests) .mobile-navbar h1 { font-size: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}
/* phones: stacked section heads, segmented My Projects / New Project, no header logo */
@media (max-width: 600px) {
    :where(body.page-project-requests) .section-header { display: block !important; text-align: left; }
    :where(body.page-project-requests) .section-header h2 { font-size: 19px !important; line-height: 1.3; }
    :where(body.page-project-requests) .section-header p { margin: 6px 0 0 !important; }
    /* wizard steps: one row, small circles, short labels */
    :where(body.page-project-requests) .progress-container { padding: 12px 8px; border-radius: 14px; margin-bottom: 14px; }
    :where(body.page-project-requests) .progress-steps { flex-wrap: nowrap; justify-content: space-between; gap: 2px; }
    :where(body.page-project-requests) .progress-steps .step { flex: 1 1 0; min-width: 0; }
    :where(body.page-project-requests) .progress-steps .step-circle { width: 32px; height: 32px; font-size: 13px; border-width: 2px; }
    :where(body.page-project-requests) .progress-steps .step.active .step-circle { transform: none; }
    :where(body.page-project-requests) .progress-steps .step-label { font-size: 11px; line-height: 1.2; margin-top: 5px; max-width: 100%; overflow-wrap: normal; word-break: normal; hyphens: none; }
    :where(body.page-project-requests) .form-section { padding: 18px 14px; border-radius: 14px; }
    /* list: chips swipe on one line, empty ones go */
    :where(body.page-project-requests) .status-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -2px 14px; padding: 2px; }
    :where(body.page-project-requests) .status-chips::-webkit-scrollbar { display: none; }
    :where(body.page-project-requests) .status-chip { flex: 0 0 auto; min-height: 40px; padding: 8px 14px; }
    :where(body.page-project-requests) .status-chip.is-zero:not(.active) { display: none; }
    :where(body.page-project-requests) .projects-container { padding: 14px; border-radius: 14px; }
    /* list rows as labelled cards */
    :where(body.page-project-requests) #projectsList { overflow-x: visible; }
    :where(body.page-project-requests) #projectsList .projects-table, :where(body.page-project-requests) #projectsList .projects-table tbody { display: block; width: 100%; }
    :where(body.page-project-requests) #projectsList .projects-table thead { display: none; }
    :where(body.page-project-requests) #projectsList .projects-table tr { display: block; margin-bottom: 12px; padding: 12px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
    :where(body.page-project-requests) #projectsList .projects-table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; text-align: right; }
    :where(body.page-project-requests) #projectsList .projects-table td::before { content: attr(data-label); flex: 0 0 auto; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: #64748b; text-align: left; }
    :where(body.page-project-requests) #projectsList .projects-table td:last-child { border-bottom: 0; padding-bottom: 0; }
    :where(body.page-project-requests) #projectsList .projects-table td:nth-child(5) { display: none; }
    :where(body.page-project-requests) #projectsList .projects-table td.pt-id { font-size: 12.5px; color: #64748b; padding-top: 0; }
    :where(body.page-project-requests) #projectsList .projects-table td.pt-name { display: block; text-align: left; }
    :where(body.page-project-requests) #projectsList .projects-table td.pt-name::before, :where(body.page-project-requests) #projectsList .projects-table td.pt-act::before { display: none; }
    :where(body.page-project-requests) #projectsList .projects-table td.pt-name strong { font-size: 15.5px; overflow-wrap: anywhere; }
    :where(body.page-project-requests) #projectsList .projects-table td.pt-client { flex-wrap: wrap; row-gap: 2px; overflow-wrap: anywhere; }
    :where(body.page-project-requests) #projectsList .projects-table td.pt-client small { flex: 1 1 100%; text-align: right; color: #64748b; font-size: 12.5px; }
    :where(body.page-project-requests) #projectsList .projects-table td.pt-act { display: block; }
    :where(body.page-project-requests) #projectsList .action-btns { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    :where(body.page-project-requests) #projectsList .action-btns .btn-sm { flex: 1 1 0; min-width: 44px; min-height: 42px; padding: 8px; font-size: 14px; justify-content: center; }
    :where(body.page-project-requests) #projectsList .action-btns .status-select { flex: 1 1 100%; min-height: 42px; font-size: 14px; margin: 0; }
    :where(body.page-project-requests) #projectsList .status-badge { font-size: 11px; padding: 4px 10px; }
}
/* portal look on top — header, tabs, filters, buttons, cards */
body.page-project-requests .header-logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
body.page-project-requests .up-tabs .pr-tab-edit { max-width: 100%; min-width: 0; }
body.page-project-requests .up-tabs .pr-tab-edit span { overflow: hidden; text-overflow: ellipsis; }
body.page-project-requests .projects-container { padding: 16px 18px; }
body.page-project-requests .status-chip { border-radius: 10px; min-height: 40px; }
body.page-project-requests .status-chip .n { border-radius: 10px; }
body.page-project-requests .projects-filter-section { margin-bottom: 14px; }
body.page-project-requests .projects-filter-section .filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
body.page-project-requests .search-input-wrapper { position: relative; display: flex; gap: 8px; flex: 1 1 280px; min-width: 0; }
body.page-project-requests .search-input-wrapper > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 14px; pointer-events: none; }
body.page-project-requests .search-input-wrapper input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px 0 38px; border: 1px solid #d5dce6; border-radius: 10px; background: #fff; font-family: inherit; color: var(--c-text, #1e293b); }
body.page-project-requests .search-input-wrapper input:focus { outline: none; border-color: var(--c-accent, #0074D9); box-shadow: 0 0 0 3px rgba(var(--c-accent-rgb, 0, 116, 217), .12); }
body.page-project-requests .projects-filter-section .up-btn { min-height: 44px; flex: none; transform: none; box-shadow: none; }
body.page-project-requests .projects-filter-section .up-btn.icon { width: 44px; }
body.page-project-requests .projects-filter-section .pr-filter-toggle { display: none; }
body.page-project-requests .pr-filter-toggle em { font-style: normal; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--c-accent, #0074D9); color: #fff; font-size: 12px; font-weight: 700; }
body.page-project-requests .pr-filter-panel { display: flex; gap: 8px; align-items: center; flex: 0 1 auto; }
body.page-project-requests .pr-filter-panel .filter-group { width: 200px; min-width: 0; }
body.page-project-requests .pr-filter-panel select { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid #d5dce6; border-radius: 10px; background: #fff; font-family: inherit; }
body.page-project-requests .filter-results { display: none; margin-top: 10px; font-size: 13px; color: #64748b; }
body.page-project-requests .filter-results.show { display: block; }
body.page-project-requests .projects-table th { background: #f8fafc; color: #475569; font-size: 12px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; border-bottom: 1px solid #e5e9f0; }
body.page-project-requests .projects-table td { border-bottom: 1px solid #eef2f7; }
body.page-project-requests .projects-table .highlight { background: #fff3cd; padding: 0 2px; border-radius: 2px; font-weight: 600; }
body.page-project-requests .pt-sub { color: #64748b; }
body.page-project-requests .pt-yes { color: #16a34a; }
body.page-project-requests .pt-no { color: #94a3b8; }
body.page-project-requests .status-badge { display: inline-block; padding: 3px 9px; border-radius: 10px; font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
body.page-project-requests .btn { border-radius: 10px; box-shadow: none; transform: none; }
body.page-project-requests .btn:hover { transform: none; box-shadow: none; }
body.page-project-requests .btn-primary { background: var(--c-primary, #001f3f); color: #fff; }
body.page-project-requests .btn-primary:hover { background: var(--c-primary-hover, #002a52); }
body.page-project-requests .btn-success, body.page-project-requests .btn-ai { background: var(--c-accent, #0074D9); color: #fff; }
body.page-project-requests .btn-success:hover, body.page-project-requests .btn-ai:hover:not(:disabled) { background: var(--c-primary, #001f3f); }
body.page-project-requests .btn-secondary { background: #fff; color: var(--c-primary, #001f3f); border: 1px solid #d5dce6; }
body.page-project-requests .btn-secondary:hover { background: #f4f7fb; }
body.page-project-requests .action-btns .btn-sm { min-width: 36px; min-height: 36px; justify-content: center; background: #fff; color: var(--c-primary, #001f3f); border: 1px solid #d5dce6; }
body.page-project-requests .action-btns .btn-sm:hover { border-color: var(--c-accent, #0074D9); color: var(--c-accent, #0074D9); }
body.page-project-requests .action-btns .btn-delete { color: #b91c1c; border-color: #f1c4c4; }
body.page-project-requests .action-btns .status-select { min-height: 36px; border-radius: 10px; background: var(--c-primary, #001f3f); color: #fff; }
/* wizard */
body.page-project-requests .progress-container { background: #fff; border: 1px solid #e5e9f0; border-radius: 10px; box-shadow: none; padding: 18px 24px; margin-bottom: 16px; }
body.page-project-requests .progress-steps::before { height: 2px; background: #e5e9f0; }
body.page-project-requests .progress-line { height: 2px; background: var(--c-accent, #0074D9); }
body.page-project-requests .step-circle { border-radius: 10px; border-width: 2px; background: #eef2f7; color: #64748b; }
body.page-project-requests .step.active .step-circle { background: var(--c-primary, #001f3f); border-color: var(--c-primary, #001f3f); color: #fff; transform: none; }
body.page-project-requests .step.completed .step-circle { background: var(--c-accent, #0074D9); border-color: var(--c-accent, #0074D9); color: #fff; }
body.page-project-requests .step.active .step-label { color: var(--c-primary, #001f3f); }
body.page-project-requests .form-card { border-radius: 10px; box-shadow: none; }
body.page-project-requests .section-header { display: block; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid #eef2f7; }
body.page-project-requests .section-header h2 { font-size: 19px; color: var(--c-primary, #001f3f); }
body.page-project-requests .section-header h2 i { color: var(--c-accent, #0074D9); }
body.page-project-requests .section-header p { margin-top: 4px; font-size: 13.5px; color: #64748b; }
body.page-project-requests .form-group input, body.page-project-requests .form-group textarea, body.page-project-requests .form-group select { border: 1px solid #d5dce6; border-radius: 10px; }
body.page-project-requests .form-group.pr-last { margin-bottom: 0; }
body.page-project-requests .ai-magic { background: color-mix(in srgb, var(--c-accent, #0074D9) 6%, #fff); border: 1px solid color-mix(in srgb, var(--c-accent, #0074D9) 25%, #fff); border-radius: 10px; padding: 16px; margin-bottom: 24px; }
body.page-project-requests .ai-magic-sub { margin-bottom: 12px; }
body.page-project-requests .ai-magic-actions .up-btn { min-height: 44px; }
body.page-project-requests .ai-improve-btn { min-height: 36px; border-radius: 10px; }
body.page-project-requests .checkbox-item { border: 1px solid #d5dce6; border-radius: 10px; }
body.page-project-requests .checkbox-item.checked { border-color: var(--c-accent, #0074D9); }
body.page-project-requests .dynamic-list { border: 1px solid #e5e9f0; border-radius: 10px; background: #f8fafc; }
body.page-project-requests .dynamic-list-item .btn-remove { min-width: 44px; min-height: 44px; background: #fff; color: #b91c1c; border: 1px solid #f1c4c4; border-radius: 10px; transform: none; }
body.page-project-requests .dynamic-list-item .btn-remove:hover { background: #fdf2f2; transform: none; }
body.page-project-requests .btn-add-item { min-height: 44px; background: #fff; color: var(--c-primary, #001f3f); border: 1px solid #d5dce6; border-radius: 10px; }
body.page-project-requests .btn-add-item:hover { background: #f4f7fb; }
body.page-project-requests .role-card { background: #fff; border: 1px solid #e5e9f0; border-radius: 10px; padding: 18px 20px; }
body.page-project-requests .btn-remove-role { top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 10px; background: #fff; color: #b91c1c; border: 1px solid #f1c4c4; transform: none; }
body.page-project-requests .btn-remove-role:hover { background: #fdf2f2; transform: none; }
body.page-project-requests .role-card-header { padding-right: 44px; }
body.page-project-requests .form-actions { background: #f8fafc; border-top: 1px solid #e5e9f0; }
body.page-project-requests .final-actions { border-top: 1px solid #eef2f7; }
body.page-project-requests .summary-section { background: #fff; border: 1px solid #e5e9f0; border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; }
body.page-project-requests .summary-section h3 { border-bottom: 1px solid #eef2f7; }
body.page-project-requests .rq-doc-head { border-bottom: 1px solid #e5e9f0; }
body.page-project-requests .rq-problem { border: 1px solid #e5e9f0; border-radius: 10px; }
body.page-project-requests .rq-chip, body.page-project-requests .rq-count { border-radius: 10px; }
body.page-project-requests .pr-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 11px 14px; border: 1px solid #fde68a; border-radius: 10px; background: #fffbeb; color: #78350f; font-size: 14px; font-weight: 600; }
/* modals: rounded, no edge stripes */
body.page-project-requests .project-modal-content { border-radius: 10px; }
body.page-project-requests:has(.project-modal.active) .mobile-bottom-nav { display: none !important; } /* an open sheet covers the dock */
body.page-project-requests .project-modal-close { min-width: 44px; min-height: 44px; }
body.page-project-requests .doc-role { border: 1px solid #e5e9f0; border-radius: 10px; }
body.page-project-requests .rqc-note { border-left: 0; border-radius: 10px; }
body.page-project-requests :is(.side-card, .doc-chip, .doc-prio, .rqc-attach-btn, .rqc-chip, .rqc-att-file, .rqc-att-img, .aic-msg span) { border-radius: 10px; }
@media (max-width: 768px) {
    body.page-project-requests .projects-container { padding: 14px; }
    body.page-project-requests .search-input-wrapper { flex: 1 1 0; }
    body.page-project-requests .projects-filter-section .pr-filter-toggle { display: inline-flex; }
    body.page-project-requests .search-input-wrapper .search-btn { display: none; }
    body.page-project-requests .form-actions #prevBtn[style*="hidden"] { display: none; }
    body.page-project-requests .pr-filter-panel { display: none; flex: 1 1 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px; }
    body.page-project-requests .projects-filter-section.is-open .pr-filter-panel { display: grid; }
    body.page-project-requests .pr-filter-panel .filter-group { width: auto; }
    body.page-project-requests .progress-container { padding: 12px 8px; }
    body.page-project-requests .role-card { padding: 16px 14px; }
    body.page-project-requests .ai-magic-actions .up-btn { flex: 1 1 100%; }
}
