/* Shared Studio sources are authoritative; portal additions contain no colour literals. */
@import url("design_palette.css");
@import url("studio-theme.css");
@font-face { font-family: 'DM Sans'; src: url('../fonts/DMSans-Variable.ttf') format('truetype'); font-weight: 400 500; font-style: normal; font-display: swap; }
.portal, .portal-staff { --muted: var(--cream-2); font: 400 15px/24px var(--font-body); color: var(--cream); }
.portal { margin: 0; padding: 8px; background: var(--studio-charcoal); }
.portal *, .portal-staff * { box-sizing: border-box; }
.portal :is(h1,h2,h3,h4,strong,b), .portal-staff :is(h2,h3,h4,strong,b) { font-weight: 500; }
.portal :is(h1,h2,h3,h4,p), .portal-staff :is(h2,h3,h4,p) { margin-top: 0; }
.portal h1 { font-size: 28px; line-height: 32px; letter-spacing: -.8px; margin-bottom: 16px; }
.portal h2, .portal-staff h2 { font-size: 20px; line-height: 28px; letter-spacing: -.4px; }
.portal :is(h3,h4), .portal-staff :is(h3,h4) { font-size: 16px; line-height: 24px; letter-spacing: -.2px; }
.portal h1 span { color: var(--c-pine); }
.portal a { color: inherit; text-underline-offset: 4px; }
.portal :is(button,input,select,textarea), .portal-staff :is(button,input,select,textarea) { font: inherit; }
.portal button, .portal summary, .portal-staff summary { cursor: pointer; }
.portal :is(a,button,input,select,textarea,summary):focus-visible, .portal-staff :is(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid var(--c-pine); outline-offset: 2px; }
.portal :is(a,button,summary), .portal-staff :is(a,button,summary) { transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.portal [hidden] { display: none !important; }
.portal :is(time,.p-status,.p-label,.p-column-count,.p-progress,code), .portal-staff time { font-variant-numeric: tabular-nums; }
.p-workspace { position: relative; min-height: calc(100dvh - 16px); border-radius: 26px; background: radial-gradient(ellipse at 24% 0%,color-mix(in srgb,var(--studio-butter) 45%,transparent),transparent 36%),radial-gradient(ellipse at 0% 12%,color-mix(in srgb,var(--studio-peach) 28%,transparent),transparent 34%),radial-gradient(ellipse at 97% 94%,color-mix(in srgb,var(--studio-mint) 60%,transparent),transparent 46%),var(--bg); }
.p-skip { position: fixed; top: -80px; left: 24px; z-index: 100; padding: 16px 24px; border-radius: 32px; background: var(--studio-charcoal); color: var(--surface) !important; }
.p-skip:focus { top: 16px; }
.p-topbar { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 40px 24px 128px; max-width: 1376px; margin: auto; }
.p-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 20px; font-weight: 500; letter-spacing: -.6px; white-space: nowrap; min-height: 44px; }
.p-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--studio-charcoal); color: var(--surface); font-size: 28px; font-weight: 500; letter-spacing: -3px; padding-right: 3px; }
.p-brand-ai { font-weight: 400; }
.p-brand-divider { width: 1px; height: 24px; background: var(--line); margin: 0 8px; }
.p-brand-label, .p-company, .p-eyebrow, .p-label, .p-muted, .p-small, .p-signoff { font-size: 13px; line-height: 20px; }
.p-brand-label, .p-eyebrow, .p-muted, .p-small, .p-signoff { color: var(--muted); letter-spacing: 0; }
.p-company { display: flex; align-items: center; gap: 16px; min-width: 0; }
.p-company-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 256px; }
.p-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border: 2px solid var(--surface); border-radius: 50%; background: var(--studio-peach); color: var(--cream); }
.p-account-menu { position: relative; }
.p-account-menu > summary { display: grid; place-items: center; list-style: none; min-width: 44px; min-height: 44px; border-radius: 50%; }
.p-account-menu summary::-webkit-details-marker, .p-more-menu summary::-webkit-details-marker { display: none; }
.p-account-panel { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: 240px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 8px 24px color-mix(in srgb,var(--studio-charcoal) 10%,transparent); }
.p-account-panel :is(a,button) { display: flex; width: 100%; align-items: center; gap: 8px; min-height: 44px; padding: 8px; color: var(--cream); background: none; border: 0; text-decoration: none; border-radius: 12px; }
.p-account-panel p { overflow-wrap: anywhere; margin-bottom: 8px; }
.p-account-panel :is(a,button):hover { background: var(--surface-2); }
.p-rail { position: fixed; z-index: 20; top: 112px; left: 24px; bottom: 24px; width: 88px; padding: 8px; border-radius: 24px; background: var(--studio-charcoal); color: var(--surface); display: flex; flex-direction: column; }
.p-rail nav { display: flex; flex-direction: column; gap: 8px; }
.p-nav-link { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 56px; padding: 8px 0; border: 0; border-radius: 16px; text-decoration: none; background: transparent; color: inherit; font-size: 13px !important; line-height: 20px; }
.p-nav-link:hover, .p-nav-link.is-active { background: var(--c-pine); color: var(--surface); }
.p-rail :is(a,button,summary):focus-visible { outline-color: var(--studio-yellow); }
.p-icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.p-rail-footer { margin-top: auto; padding-top: 8px; border-top: 1px solid color-mix(in srgb,var(--surface) 25%,transparent); }
.p-rail-footer form, .p-account-panel form { margin: 0; }
.p-more-menu { position: relative; }
.p-more-menu > summary { list-style: none; }
.p-more-panel { position: absolute; left: calc(100% + 16px); bottom: 0; width: 224px; max-height: calc(100dvh - 64px); overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 20px; color: var(--cream); background: var(--surface); }
.p-more-panel .p-nav-link { flex-direction: row; justify-content: flex-start; gap: 8px; min-height: 44px; padding: 8px 16px; }
.p-more-panel .p-menu-action { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 16px; background: transparent; color: var(--cream); text-decoration: none; text-align: left; }
.p-more-panel .p-menu-action:hover { background: var(--surface-2); }
.p-more-panel :is(a,button):focus-visible { outline-color: var(--c-pine); }
.p-mobile-nav-head, .p-menu, .p-nav-backdrop, .p-bottom-nav { display: none; }
.p-main { max-width: 1200px; min-height: calc(100dvh - 112px); margin: 0 auto 0 max(112px,calc((100vw - 1200px)/2)); padding: 24px 32px 0; display: flex; flex-direction: column; }
.p-page-heading { margin-bottom: 32px; max-width: 720px; }
.p-eyebrow { margin-bottom: 8px; }
.p-lede { max-width: 640px; margin-bottom: 0; color: var(--muted); }
.p-card { padding: 24px; border: 1px solid var(--line); background: var(--surface); border-radius: 24px; box-shadow: 0 4px 16px color-mix(in srgb,var(--studio-charcoal) 3%,transparent); min-width: 0; }
.p-card-heading, .p-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.p-card-heading { padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.p-card-heading h2, .p-section-heading h2 { margin: 0; }
.p-section-heading { margin: 32px 0 16px; }
.p-label, .p-status { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 24px; background: var(--surface-2); color: var(--cream); font-size: 13px; line-height: 20px; white-space: nowrap; }
.p-project { padding: 24px 0; }
.p-project + .p-project { border-top: 1px solid var(--line); }
.p-project-title { display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; margin-bottom: 16px; }
.p-project-title h3 { margin: 0; overflow-wrap: anywhere; }
.p-stepper { list-style: none; display: flex; padding: 4px 0 8px; margin: 16px 0 0; overflow-x: auto; }
.p-stepper li { position: relative; display: flex; align-items: center; flex-direction: column; flex: 1 0 56px; gap: 8px; text-align: center; font-size: 13px; line-height: 20px; color: var(--muted); }
.p-stepper li::before { content: ''; position: absolute; left: -50%; right: 50%; top: 16px; height: 1px; background: var(--line); }
.p-stepper li:first-child::before { display: none; }
.p-step-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 50%; }
.p-step-dot .p-icon { width: 16px; height: 16px; }
.p-stepper .is-complete .p-step-dot { background: var(--c-pine); color: var(--surface); border-color: var(--c-pine); }
.p-stepper .is-current { color: var(--cream); font-weight: 500; }
.p-stepper .is-current .p-step-dot { border: 2px solid var(--studio-charcoal); }
.p-stepper .is-complete::before, .p-stepper .is-current::before { background: var(--c-pine); }
.p-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 1px solid var(--studio-charcoal); border-radius: 32px; background: var(--studio-charcoal); color: var(--surface) !important; font: 500 15px/24px var(--font-body); text-decoration: none; cursor: pointer; }
.p-button:hover { background: var(--c-pine); border-color: var(--c-pine); }
.p-button-outline { color: var(--cream) !important; background: transparent; border-color: var(--muted); }
.p-button-outline:hover { background: var(--surface-2); }
.p-button-cream { background: var(--surface); border-color: var(--surface); color: var(--cream) !important; }
.p-button-cream:hover { background: var(--surface-2); }
.p-button-destructive { background: transparent; border-color: var(--studio-orange); color: var(--danger) !important; }
.p-button-destructive:hover { background: var(--danger-soft); border-color: var(--danger); }
.p-button:disabled { cursor: default; opacity: .6; }
.p-text-link, .p-small-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; line-height: 20px; font-weight: 500; }
.p-tile-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; margin-bottom: 16px; background: var(--surface-2); color: var(--cream); }
.p-yellow { background: color-mix(in srgb,var(--studio-yellow) 25%,var(--surface)); }
.p-mint { background: var(--studio-mint); }
.p-peach { background: var(--studio-peach); }
.p-footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0; color: var(--muted); font-size: 13px; line-height: 20px; }
.p-empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 24px; margin-bottom: 16px; }
.p-empty-state p { max-width: 480px; color: var(--muted); }
.p-illustration { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 24px; background: var(--surface-2); margin-bottom: 24px; color: var(--c-pine); }
.p-illustration .p-icon { width: 32px; height: 32px; }
.p-empty-inline { padding: 16px 0; }
.p-empty-inline p, .p-quiet-note { color: var(--muted); }
.p-quiet-note { display: flex; gap: 8px; align-items: flex-start; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; }
.p-quiet-note p { margin: 0; }
.p-notice { padding: 16px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 24px; }
.p-notice-error, .p-danger-panel { background: color-mix(in srgb,var(--studio-orange) 7%,var(--surface)); border-color: var(--studio-orange); color: var(--danger); }
.p-form { display: grid; gap: 8px; }
.p-form label, .p-tools legend { font-size: 15px; line-height: 24px; font-weight: 500; }
.p-form :is(input,select,textarea), .p-inline-form select, .p-project-filter select { min-width: 0; width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--muted); border-radius: 24px; color: var(--cream); background: var(--surface); font: inherit; }
.p-form textarea { resize: vertical; line-height: 24px; }
.portal-staff select { appearance: auto; background-image: none !important; }
.p-form :is(input,textarea)::placeholder { color: var(--muted); opacity: 1; }
.p-form .p-button { margin-top: 8px; }
.p-check-label { display: flex !important; gap: 8px; align-items: flex-start; min-height: 44px; padding: 8px 0; cursor: pointer; font-weight: 400 !important; }
.p-form .p-check-label input, .p-check-label input { width: 20px !important; min-width: 20px; min-height: 20px !important; height: 20px; margin: 2px 0 0; padding: 0; accent-color: var(--c-pine); }
.p-check-label small { display: block; color: var(--muted); font-size: 13px; line-height: 20px; margin-top: 8px; }
.p-code-input { letter-spacing: 8px; font-size: 20px !important; font-variant-numeric: tabular-nums; }
.p-auth-workspace { display: flex; flex-direction: column; }
.p-auth .p-topbar { padding: 24px 40px; width: 100%; }
.p-secure-label { display: flex; gap: 8px; align-items: center; font-size: 13px; line-height: 20px; color: var(--muted); }
.p-auth-main { width: min(100%,1120px); margin: auto; padding: 48px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.p-auth-story > p:not(.p-eyebrow):not(.p-signoff) { max-width: 400px; color: var(--muted); }
.p-auth-card { padding: 32px; }
.p-auth-card > p:not(.p-eyebrow) { color: var(--muted); margin-bottom: 24px; }
.p-auth-card .p-form { margin-top: 24px; }
.p-auth-note { display: flex; align-items: flex-start; gap: 8px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; color: var(--muted); }
.p-auth-note p { font-size: 13px; line-height: 20px; margin: 0; }
.p-auth-footer { flex: none; padding: 24px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px; line-height: 20px; }
.p-auth-footer > span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.p-auth-art { position: relative; width: 248px; height: 160px; margin: 32px 0; }
.p-art-panel { position: absolute; width: 224px; height: 144px; background: var(--c-pine); border-radius: 24px; padding: 24px; }
.p-art-mark { font-size: 28px; color: var(--surface); letter-spacing: -2px; float: right; }
.p-art-line { width: 88px; height: 8px; border-radius: 8px; background: color-mix(in srgb,var(--surface) 50%,transparent); display: block; margin-top: 8px; }
.p-art-line.short { width: 56px; }
.p-art-progress { display: flex; gap: 8px; margin-top: 32px; }
.p-art-progress span { width: 24px; height: 8px; border-radius: 8px; background: color-mix(in srgb,var(--surface) 25%,transparent); }
.p-art-progress span:nth-child(-n+2) { background: var(--surface); }
.p-art-circle { position: absolute; right: 0; top: 96px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--studio-yellow); border: 4px solid var(--bg); }
.p-setup-steps { padding-left: 24px; color: var(--muted); }
.p-setup-steps li { margin-bottom: 16px; }
.p-secret { display: block; padding: 16px; margin-top: 8px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2); color: var(--cream); overflow-wrap: anywhere; user-select: all; }
.p-recovery-codes { list-style: none; padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--surface-2); border-radius: 20px; margin-bottom: 24px; font-size: 13px; line-height: 20px; }
.p-setup-qr { display: block; width: 208px; max-width: 100%; height: auto; margin: 24px 0; border-radius: 16px; background: var(--surface); }
.p-access-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,1fr); align-items: start; gap: 24px; }
.p-member-list { list-style: none; margin: 0; padding: 0; }
.p-member { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.p-member:first-child { border-top: 0; }
.p-member-info { min-width: 0; flex: 1; }
.p-member-info strong { display: block; overflow-wrap: anywhere; }
.p-member-info p { font-size: 13px; line-height: 20px; margin: 8px 0; color: var(--muted); overflow-wrap: anywhere; }
.p-member .p-button { padding: 8px 16px; font-size: 13px; line-height: 20px; min-height: 44px; }
.p-invite-card > p { color: var(--muted); }
.portal-staff { max-width: 1200px; }
.p-staff-project { display: flex; gap: 24px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 24px 0; }
.p-staff-project .p-form { flex: 1; min-width: 0; }
.p-inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.p-inline-form select { width: auto; }
.p-staff-heading { margin-bottom: 24px; }
.p-staff-heading h1 { margin: 16px 0; font-size: 28px; line-height: 32px; font-weight: 500; }
.p-staff-heading p { color: var(--muted); }
.p-member-actions { width: 100%; }
.p-member-actions summary { min-height: 44px; padding: 8px 0; color: var(--c-pine); }
.p-member-actions > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.p-member-actions .p-danger-panel { border: 1px solid var(--studio-orange); border-radius: 20px; padding: 16px; display: grid; gap: 8px; }
.p-member.p-staff-member { flex-wrap: wrap; }
.p-member-actions .p-muted { width: 100%; }
.p-staff-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.p-welcome-card { padding: 0; overflow: hidden; }
.p-welcome-video { display: block; width: 100%; max-height: 560px; background: var(--studio-charcoal); aspect-ratio: 16/9; }
.p-welcome-card > .p-muted, .p-video-retry { padding: 16px 24px 0; }
.p-welcome-fallback { min-height: 256px; padding: 32px; display: flex; align-items: center; gap: 40px; background: var(--c-pine); color: var(--surface); }
.p-welcome-mark { font-size: 72px; letter-spacing: -8px; }
.p-welcome-fallback p { max-width: 560px; color: var(--surface); }
.p-welcome-next { display: flex; gap: 24px; justify-content: space-between; align-items: center; padding: 24px; }
.p-welcome-next :is(h2,p) { margin-bottom: 8px; }
.p-welcome-next form { flex-shrink: 0; }
.p-onboarding-banner { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 24px; padding: 16px 24px; margin-bottom: 24px; text-decoration: none; }
.p-onboarding-banner .p-tile-icon { margin: 0; }
.p-onboarding-banner strong { display: block; }
.p-onboarding-banner small { display: block; font-size: 13px; line-height: 20px; color: var(--muted); }
.p-onboarding-banner .p-text-link { margin-left: auto; white-space: nowrap; }
.p-onboarding-heading { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; }
.p-progress { position: relative; width: 112px; height: 144px; flex-shrink: 0; margin-bottom: 24px; }
.p-progress svg { display: block; width: 112px; height: 112px; pointer-events: none; }
.p-progress-track { stroke: var(--line); }
.p-progress-centre { fill: var(--bg); }
.p-progress-value { stroke: var(--c-pine); }
.p-progress-count { position: absolute; z-index: 1; top: 32px; left: 24px; right: 24px; height: 48px; text-align: center; background: var(--bg); font-size: 24px; line-height: 48px; }
.p-progress-count span { font-size: 13px; line-height: 20px; color: var(--muted); }
.p-progress-caption { display: block; text-align: center; margin-top: 8px; font-size: 13px; line-height: 20px; color: var(--muted); }
.p-timeline-card { margin-bottom: 24px; }
.p-timeline-card summary { min-height: 44px; padding: 8px 0; font-weight: 500; }
.p-timeline-card summary span { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 16px; }
.p-timeline { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; border-top: 1px solid var(--line); }
.p-timeline li { padding-top: 16px; }
.p-timeline p { color: var(--muted); font-size: 13px; line-height: 20px; margin: 8px 0 0; }
.p-onboarding-grid { display: grid; grid-template-columns: 264px minmax(0,1fr); gap: 24px; align-items: start; }
.p-section-nav { display: grid; gap: 8px; margin-bottom: 24px; }
.p-section-nav a { display: flex; align-items: center; gap: 16px; padding: 16px; color: inherit; text-decoration: none; border: 1px solid transparent; border-radius: 20px; min-height: 48px; }
.p-section-nav a[aria-current], .p-section-nav a:hover { border-color: var(--line); background: var(--surface); }
.p-section-nav a[aria-current] .p-section-number { background: var(--c-pine); color: var(--surface); }
.p-section-nav small { display: block; font-size: 13px; line-height: 20px; color: var(--muted); margin-top: 8px; }
.p-section-number { display: grid; place-items: center; width: 32px; height: 32px; min-width: 32px; border-radius: 50%; background: var(--surface-2); }
.p-checklist ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; }
.p-checklist li { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; }
.p-checklist li > span:first-child { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border: 1px solid var(--muted); border-radius: 50%; }
.p-checklist .is-done { background: var(--c-pine); color: var(--surface); border-color: var(--c-pine) !important; }
.p-checklist .p-icon { width: 16px; height: 16px; }
.p-onboarding-form .p-form > label:not(:first-child) { margin-top: 16px; }
.p-field { display: grid; gap: 8px; min-width: 0; margin-bottom: 16px; }
.p-field label { display: block; }
.portal-staff .p-form .p-field :is(input,textarea), .portal-staff .p-video-settings .p-form input { border-radius: 24px !important; border-color: var(--muted) !important; }
.p-field-help, .p-field-error { font-size: 13px; line-height: 20px; margin: 0; overflow-wrap: anywhere; }
.p-field-help { color: var(--muted); }
.p-field-error { color: var(--danger); }
.p-form [aria-invalid="true"], .portal-staff .p-form .p-field [aria-invalid="true"] { border-color: var(--danger); }
.portal-staff .p-form .p-field [aria-invalid="true"] { border-color: var(--danger) !important; }
.p-error-summary { overflow-wrap: anywhere; }
.p-error-summary:focus { outline: 2px solid var(--c-pine); outline-offset: 2px; }
.p-error-summary p { margin: 0; }
.p-error-summary ul { padding-left: 24px; margin: 8px 0 0; }
.p-error-summary a { color: inherit; text-underline-offset: 4px; }
.p-contact-fields { min-width: 0; padding: 0; border: 0; margin: 8px 0 16px; }
.p-contact-fields legend { width: 100%; padding: 0 0 16px; font-size: 16px; line-height: 24px; font-weight: 500; }
.p-field-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.p-previous-details { padding: 16px; margin-bottom: 16px; border-radius: 16px; background: var(--surface-2); }
.p-previous-details p { margin: 0 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.p-previous-details p:last-child { margin-bottom: 0; }
.p-form-progress { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0 0; font-size: 13px; line-height: 20px; color: var(--muted); font-variant-numeric: tabular-nums; }
.p-onboarding-complete p { margin: 8px 0; }
.p-answer-line { display: block; }
.p-previous-answer { padding: 16px; border-radius: 16px; background: var(--surface-2); }
.p-unsaved-changes { border-top: 2px solid var(--line); padding-top: 24px; margin-top: 32px; }
.p-onboarding-delivery .p-card-heading { flex-wrap: wrap; }
.p-delivery-list { list-style: none; padding: 0; margin: 24px 0; }
.p-delivery-list li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.p-delivery-list li > div { min-width: 0; }
.p-delivery-list strong, .p-delivery-list .p-small { display: block; overflow-wrap: anywhere; }
.p-delivery-list time { font-size: 13px; line-height: 20px; color: var(--muted); }
.p-required { display: inline-block; font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.p-form-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; margin-top: 24px; }
.p-form-actions .p-button { margin: 0; }
.p-tools { padding: 0; border: 0; margin: 0 0 16px; }
.p-tools legend { margin-bottom: 16px; }
.p-tools > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.p-answer-list { margin: 0; }
.p-answer-list > div { border-bottom: 1px solid var(--line); padding: 16px 0; }
.p-answer-list dt { font-size: 13px; line-height: 20px; color: var(--muted); }
.p-answer-list dd { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.p-video-settings { margin: 24px 0; }
.p-video-settings .p-form { max-width: 520px; }
.p-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.p-home-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.p-project-filter { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.p-project-filter select { width: auto; max-width: 440px; }
.p-home-layout { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 24px; }
.p-project-hero { grid-column: 1/-1; display: grid; grid-template-columns: minmax(216px,1fr) minmax(0,2fr); gap: 32px; }
.p-hero-health { padding-right: 24px; border-right: 1px solid var(--line); }
.p-health-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 24px; padding: 8px 16px; margin-bottom: 16px; font-weight: 500; }
.p-health-on_track { background: var(--c-pine); color: var(--surface); }
.p-health-needs_attention { background: var(--studio-yellow); color: var(--cream); }
.p-health-blocked { background: var(--studio-orange); color: var(--surface); }
.p-health-unset { background: var(--surface-2); color: var(--cream); }
.p-health-reason { margin: 0; overflow-wrap: anywhere; }
.p-hero-projects { min-width: 0; }
.p-hero-projects .p-project:first-of-type { padding-top: 0; }
.p-hero-projects .p-project:last-of-type { padding-bottom: 0; }
.p-project-team { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; }
.p-project-team p { margin: 0; color: var(--muted); }
.p-project-team a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: auto; text-decoration: none; }
.p-mini-people { display: flex; padding-left: 8px; }
.p-mini-people .p-person-avatar { margin-left: -8px; border: 2px solid var(--surface); }
.p-person-avatar { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; min-width: 32px; border-radius: 50%; overflow: hidden; background: var(--studio-mint); color: var(--cream); font-size: 13px; line-height: 20px; }
.p-person-max { background: var(--studio-peach); }
.p-person-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-person-avatar-large { width: 80px; height: 80px; min-width: 80px; font-size: 24px; line-height: 32px; }
.p-home-tasks, .p-home-milestone, .p-home-actions, .p-plan-home { grid-column: 1/-1; min-width: 0; }
.p-home-tasks .p-section-heading { margin-top: 8px; }
.p-build-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; align-items: start; }
.p-build-column { min-width: 0; padding: 16px; border-radius: 24px; background: var(--surface-2); }
.p-column-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.p-column-heading h3 { margin: 0; }
.p-column-count { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%; background: var(--surface); font-size: 13px; line-height: 20px; }
.p-task-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.p-task-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.p-build-waiting_on_you .p-task-card { border-left: 4px solid var(--studio-yellow); }
.p-task-card h4 { margin: 0; overflow-wrap: anywhere; }
.p-task-project, .p-task-due { font-size: 13px; line-height: 20px; color: var(--muted); margin-bottom: 8px; overflow-wrap: anywhere; }
.p-task-due { margin: 8px 0 0; }
.p-task-people { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.p-task-person { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; }
.p-task-respond { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--line); text-decoration: none; font-size: 13px; line-height: 20px; font-weight: 500; }
.p-column-empty { color: var(--muted); padding: 8px; }
.p-column-empty h4 { color: var(--cream); margin-bottom: 8px; }
.p-column-empty p { font-size: 13px; line-height: 20px; margin: 0; }
.p-empty-mark { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 50%; }
.p-milestone-card { display: flex; gap: 16px; grid-column: 1/-1; }
.p-milestone-card .p-tile-icon { margin: 0; }
.p-milestone-card h2 { font-size: 16px; line-height: 24px; margin-bottom: 8px; }
.p-milestone-card :is(time,.p-muted) { font-size: 13px; line-height: 20px; margin: 0; }
.p-home-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.p-home-shortcut { display: flex; align-items: center; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; text-decoration: none; background: var(--surface); min-width: 0; }
.p-home-shortcut:hover { background: var(--surface-2); }
.p-home-shortcut .p-tile-icon { margin: 0; }
.p-home-shortcut > .p-icon { margin-left: auto; }
.p-home-shortcut strong { display: block; }
.p-home-shortcut small { display: block; color: var(--muted); font-size: 13px; line-height: 20px; margin-top: 8px; }
.p-team-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; scroll-margin-top: 24px; }
.p-profile-heading { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.p-profile-heading h2 { margin-bottom: 8px; }
.p-profile-role { color: var(--muted); margin: 0; }
.p-profile-work { padding: 24px 0; border-top: 1px solid var(--line); }
.p-profile-work h3 { margin: 0 0 16px; }
.p-profile-work ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.p-profile-work li > span { display: block; font-size: 13px; line-height: 20px; color: var(--muted); margin-bottom: 8px; }
.p-profile-work p { margin: 0; overflow-wrap: anywhere; }
.p-profile-contact { border-top: 1px solid var(--line); }
.p-profile-contact a { display: grid; grid-template-columns: 40px minmax(0,1fr) 20px; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; min-height: 48px; }
.p-profile-contact a:hover strong { text-decoration: underline; }
.p-profile-contact a > span { color: var(--muted); font-size: 13px; line-height: 20px; }
.p-profile-contact strong { font-weight: 400; overflow-wrap: anywhere; }
.p-contact-preference { margin: 24px 0 0; }
.p-contact-preference strong { display: block; margin-bottom: 8px; }
.p-contact-preference span { color: var(--muted); }
.p-team-availability { display: flex; align-items: flex-start; gap: 16px; margin-top: 24px; }
.p-team-availability .p-tile-icon { margin: 0; }
.p-team-availability p { margin-bottom: 8px; }
.p-team-availability .p-button { margin-left: auto; flex-shrink: 0; }
.p-team-return { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; }
.p-team-return p { margin: 0; }
.p-filter-note { margin-bottom: 24px; color: var(--muted); }
.p-skeleton { border-radius: 24px; background: var(--surface-2); min-height: 96px; }
.p-table-wrap { max-width: 100%; overflow-x: auto; }
.portal-staff .p-page-heading h1 { font-size: 28px; line-height: 32px; font-weight: 500; }
.p-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.p-filter-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--cream); text-decoration: none; }
.p-filter-chips a[aria-current], .p-thread-nav a[aria-current] { background: var(--c-pine); color: var(--surface); border-color: var(--c-pine); }
.p-upload-panel, .p-file-preview, .p-file-history { margin-bottom: 24px; }
.p-upload-panel > summary, .p-delete-file > summary { min-height: 44px; padding: 8px 0; cursor: pointer; font-weight: 500; }
.p-upload-panel > summary .p-icon { float: right; }.p-upload-panel > p { margin: 16px 0; }.p-upload-panel .p-form { max-width: 720px; }
.p-document-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-bottom: 24px; }
.p-file-card { display: flex; flex-direction: column; align-items: flex-start; }.p-file-card h2 { font-size: 16px; line-height: 24px; margin-bottom: 8px; }
.p-file-name, .p-file-card h2, .p-file-meta { overflow-wrap: anywhere; }.p-file-card h2 a { text-decoration: none; }.p-file-card h2 a:hover { text-decoration: underline; }
.p-file-card > p { margin-bottom: 8px; }.p-file-meta { font-size: 13px; line-height: 20px; color: var(--muted); }
.p-file-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; width: 100%; padding-top: 16px; margin-top: auto; border-top: 1px solid var(--line); }
.p-file-preview img { display: block; width: 100%; max-height: 640px; object-fit: contain; border-radius: 16px; }
.p-file-preview > p { margin: 16px 0 0; }.p-file-history ol { list-style: none; padding: 0; margin: 0; }
.p-file-history li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }.p-file-history li > div { min-width: 0; }.p-file-history p { margin: 0; }
.p-delete-file { margin: 24px 0; }.p-delete-file > summary { color: var(--cream); }.p-delete-file p { max-width: 640px; }
.p-messages-layout { display: grid; grid-template-columns: 248px minmax(0,1fr); gap: 24px; align-items: start; }.p-thread-nav { padding: 16px; }.p-thread-nav h2 { font-size: 16px; line-height: 24px; margin: 8px 8px 16px; }
.p-thread-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 12px; border-radius: 16px; text-decoration: none; overflow-wrap: anywhere; }.p-thread-nav a + a { margin-top: 8px; }
.p-unread-count { display: grid; place-items: center; flex-shrink: 0; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 24px; background: var(--studio-yellow); color: var(--cream); font-size: 13px; line-height: 20px; font-variant-numeric: tabular-nums; }
.p-card.p-conversation { padding: 0; overflow: hidden; }.p-conversation-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding: 16px 24px; border-bottom: 1px solid var(--line); }.p-conversation-heading h2 { margin: 0; overflow-wrap: anywhere; }
.p-transcript { height: min(48dvh,480px); min-height: 240px; overflow-y: auto; overscroll-behavior: contain; padding: 24px; scroll-padding: 16px; }.p-transcript:focus-visible { outline: 2px solid var(--c-pine); outline-offset: -4px; }
.p-message-list { display: flex; flex-direction: column; gap: 24px; list-style: none; padding: 0; margin: 0; }.p-older-messages { margin-bottom: 16px; }
.p-message { max-width: 86%; align-self: flex-start; min-width: 0; }.p-message-client { align-self: flex-end; }
.p-message-author { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; line-height: 20px; }.p-message-author time { color: var(--muted); }
.p-message-bubble { padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2); }.p-message-client .p-message-bubble { background: var(--studio-mint); }
.p-message-bubble > p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }.p-message-attachments { display: grid; gap: 8px; }.p-message-bubble > p + .p-message-attachments { margin-top: 16px; }
.p-attachment { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--cream); text-decoration: none; }.p-attachment > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }.p-attachment small { display: block; color: var(--muted); }
.p-read-receipt { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 20px; }.p-read-receipt .p-icon { width: 16px; height: 16px; }
.p-composer { padding: 24px; border-top: 1px solid var(--line); background: var(--surface); }.p-composer .p-field { margin-bottom: 8px; }.p-reply-promise { margin: 0 0 16px; font-size: 13px; line-height: 20px; color: var(--muted); }
.p-composer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }.p-composer-actions p { flex: 1; margin: 0; overflow-wrap: anywhere; }.p-composer-actions .p-button { flex-shrink: 0; margin: 0; }
.p-sensitive-warning { background: color-mix(in srgb,var(--studio-yellow) 20%,var(--surface)); color: var(--cream); }.p-sensitive-warning p { margin: 8px 0; }.p-retained-files { padding: 0; border: 0; margin: 0 0 16px; }.p-retained-files legend { margin-bottom: 8px; }
.p-ticket-filters.p-form { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin-bottom: 24px; }.p-ticket-filters .p-field { flex: 1 1 160px; margin: 0; }.p-ticket-filters .p-button { margin: 0; }
.p-ticket-list { display: grid; gap: 16px; }.p-ticket-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; }.p-ticket-row.is-overdue { border-left: 4px solid var(--danger); }
.p-ticket-row-main { min-width: 0; }.p-ticket-row h2 { margin: 8px 0 16px; font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }.p-ticket-row h2 a { color: inherit; text-decoration: none; }.p-ticket-row h2 a:hover { text-decoration: underline; }
.p-ticket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: 13px; line-height: 20px; }.p-ticket-ref { color: var(--cream); font-family: ui-monospace,Consolas,monospace; font-size: 13px; line-height: 20px; font-variant-numeric: tabular-nums; }
.p-ticket-chips { display: flex; flex-wrap: wrap; gap: 8px; }.p-ticket-chips .p-status { gap: 4px; }.p-ticket-chips .p-icon { width: 16px; height: 16px; }
.p-ticket-priority.is-urgent { background: var(--danger); color: var(--surface); }.p-ticket-priority.is-important, .p-ticket-status.is-waiting { background: var(--studio-yellow); color: var(--cream); }.p-ticket-status.is-resolved { background: var(--c-pine); color: var(--surface); }
.p-ticket-response { font-variant-numeric: tabular-nums; display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; font-size: 13px; line-height: 20px; }.p-ticket-response > .p-icon { width: 16px; height: 16px; margin-top: 2px; }.p-ticket-response p { margin: 0; }.p-ticket-response.is-overdue { color: var(--danger); }
.p-ticket-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; flex-shrink: 0; }.p-ticket-assignee { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; }
.p-ticket-new { max-width: 880px; }.p-ticket-new .p-field { margin-bottom: 8px; }.p-ticket-priorities { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }.p-ticket-priorities legend { margin-bottom: 8px; font-weight: 500; }
.p-priority-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }.p-priority-options label { display: flex; align-items: flex-start; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); cursor: pointer; }.p-priority-options label:has(input:checked) { border-color: var(--c-pine); background: var(--surface-2); }.p-priority-options strong,.p-priority-options small { display: block; }.p-priority-options small { margin-top: 8px; font-size: 13px; line-height: 20px; font-weight: 400; color: var(--muted); }
.p-ticket-target { margin-bottom: 24px; }.p-ticket-target .p-ticket-response { margin-top: 0; }
.p-ticket-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 304px; gap: 24px; align-items: start; }.p-ticket-detail-main, .p-ticket-detail-side { display: grid; gap: 24px; min-width: 0; }.p-ticket-detail-main .p-card { margin: 0; }
.p-ticket-description { white-space: pre-wrap; overflow-wrap: anywhere; }.p-ticket-facts { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0; }.p-ticket-facts dt { font-size: 13px; line-height: 20px; color: var(--muted); }.p-ticket-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.p-ticket-comments { padding: 24px; }.p-ticket-comments h2 { margin-bottom: 24px; }.p-ticket-comments .p-message-list { margin-top: 24px; }.p-ticket-history { list-style: none; padding: 0; margin: 0; }.p-ticket-history > li + li { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }.p-ticket-history p { margin: 4px 0 0; }.p-ticket-history ul { margin: 8px 0 0; padding-left: 24px; }
.p-ticket-reopen > summary { min-height: 44px; padding: 8px 0; cursor: pointer; }.p-ticket-reopen .p-form { margin-top: 16px; }.p-message-ticket { margin-top: 8px; }.p-message-ticket button.p-small-link { border: 0; background: transparent; color: var(--cream); padding: 0; cursor: pointer; }
.p-ticket-pagination { display: flex; justify-content: flex-end; margin-top: 24px; }
.p-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); text-decoration: none; }.p-bell[aria-current] { border-color: var(--c-pine); }
.p-bell-count { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px; border: 2px solid var(--bg); border-radius: 24px; background: var(--studio-yellow); color: var(--cream); font-size: 13px; line-height: 20px; font-variant-numeric: tabular-nums; }
.p-notification-tools { display: flex; justify-content: flex-end; margin-bottom: 24px; }.p-notification-list { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.p-notification { display: flex; gap: 16px; align-items: flex-start; }.p-notification.is-unread { border-left: 4px solid var(--c-pine); }.p-notification > div { flex: 1; min-width: 0; }.p-notification .p-tile-icon { margin: 0; }.p-notification h2 { margin: 8px 0 0; font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
.p-preference-options { display: grid; gap: 8px; }.p-preference-options label { padding: 16px; border: 1px solid var(--line); border-radius: 20px; }.p-preference-options label:has(input:checked) { background: var(--surface-2); border-color: var(--c-pine); }
.p-update-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }.p-update-card h2 { margin: 16px 0 8px; font-size: 20px; line-height: 28px; }.p-update-summary { overflow-wrap: anywhere; }
.p-home-news { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-column: 1/-1; gap: 24px; min-width: 0; }
.p-update-blocks > section { padding: 24px 0; }.p-update-blocks > section + section { border-top: 1px solid var(--line); }.p-update-blocks h2 { margin-bottom: 8px; }.p-update-blocks p { margin: 0; }.p-update-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.p-update-article, .p-update-editor, .p-update-publish, .p-update-receipts, .p-source-reference { margin-bottom: 24px; }.p-update-editor .p-field { margin-bottom: 16px; }.p-update-editor .p-form, .p-update-publish .p-form { max-width: 880px; }
.p-update-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }.p-update-actions p { margin: 0; }.p-source-reference > summary { min-height: 44px; cursor: pointer; padding: 8px 0; }
.p-meeting-timezone, .p-overview-value { display: block; }.p-meeting-card h3 { margin: 24px 0 8px; }
.p-welcome-dismiss { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 0 24px 24px; }.p-welcome-dismiss p { margin: 0; }.p-video-remove { margin-top: 24px; }.p-video-remove summary { cursor: pointer; min-height: 44px; padding: 8px 0; }
.p-preview-content { display: contents; border: 0; padding: 0; margin: 0; min-width: 0; }.p-preview-content > legend { position: absolute; }.p-preview-banner { display: flex; gap: 24px; padding: 24px; margin-bottom: 32px; border: 1px solid var(--c-pine); border-radius: 24px; background: var(--surface-2); }.p-preview-banner > div { min-width: 0; }.p-preview-banner h2 { margin-bottom: 8px; }.p-preview-banner p { overflow-wrap: anywhere; margin-bottom: 8px; }.p-preview-tools { flex: 0 1 320px; }.p-preview-tools form { display: grid; gap: 8px; margin-bottom: 16px; }.p-preview-tools select { min-width: 0; width: 100%; }.p-preview-content :is(input,select,textarea,button):disabled { cursor: default; }.p-preview-content a[aria-disabled] { cursor: default; text-decoration: none; opacity: .7; }
.p-overview-list { display: grid; gap: 24px; }.p-overview-heading { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; }.p-overview-heading > div { min-width: 0; }.p-overview-heading h2 { overflow-wrap: anywhere; }.p-overview-heading .p-health-reason { max-width: 360px; }
.portal-staff .p-ticket-filters input { background: var(--surface) !important; }
.p-overview-attention { background: var(--studio-yellow); gap: 8px; }.p-attention-reasons { padding: 16px 16px 16px 32px; border-radius: 16px; background: var(--surface-2); }
.p-overview-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; padding: 24px 0; margin: 16px 0; border-block: 1px solid var(--line); }.p-overview-facts dt { font-size: 13px; line-height: 20px; color: var(--muted); margin-bottom: 8px; }.p-overview-facts dd { margin: 0; overflow-wrap: anywhere; }
.p-note-action-groups { margin-bottom: 24px; }.p-note-action-list { list-style: none; padding: 0; margin: 16px 0 0; }.p-note-action + .p-note-action { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }.p-note-action h3 { font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }.p-note-action .p-card-heading { align-items: flex-start; }.p-note-action .p-form-actions { margin-top: 16px; }
.p-repeat-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; min-width: 0; padding: 24px; margin: 24px 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }.p-repeat-row legend { padding: 0 8px; font-weight: 500; }.p-repeat-row .p-field { margin: 0; }.p-repeat-row > button { grid-column: 1/-1; justify-self: start; }
.p-approval-actions { margin-bottom: 24px; }.p-approval-actions > .p-form { max-width: 640px; margin-top: 24px; }.p-response-option { margin-top: 24px; }.p-response-option > summary { min-height: 44px; padding: 8px 0; cursor: pointer; }.p-response-option > .p-form { margin-top: 16px; max-width: 640px; }.p-quote-price { font-size: 28px; line-height: 32px; font-weight: 500; margin: 8px 0 24px; }.p-source-copy { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }.p-source-copy h2 { margin-bottom: 16px; }
.p-file-choices { min-width: 0; padding: 24px; margin: 16px 0; border: 1px solid var(--line); border-radius: 20px; }.p-file-choices legend { padding: 0 8px; font-weight: 500; }.p-file-choices small { display: block; overflow-wrap: anywhere; }.p-demo-player { margin: 24px 0; }.p-demo-player video { width: 100%; max-height: 560px; }
@media (max-width: 1100px) {
  .p-document-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.p-messages-layout { grid-template-columns: 216px minmax(0,1fr); }
  .p-main { padding: 24px; }.p-topbar { padding-right: 24px; }.p-brand-divider,.p-brand-label { display: none; }
  .p-build-grid,.p-home-shortcuts { grid-template-columns: repeat(2,minmax(0,1fr)); }.p-project-hero { grid-template-columns: 1fr; }
  .p-hero-health { padding: 0 0 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .p-auth-main { gap: 32px; }.p-onboarding-grid { grid-template-columns: 232px minmax(0,1fr); }
  .p-access-grid { grid-template-columns: 1fr; }.p-timeline { grid-template-columns: 1fr; gap: 0; }.p-timeline li { padding: 16px 0; }
}
@media (max-width: 850px) {
  .p-ticket-detail-grid { grid-template-columns: 1fr; }.p-ticket-row { flex-wrap: wrap; }.p-ticket-row-side { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .p-team-grid { grid-template-columns: 1fr; }.p-home-heading { flex-wrap: wrap; margin-bottom: 24px; }.p-home-heading .p-page-heading { margin-bottom: 0; }
  .p-team-availability { flex-wrap: wrap; }.p-team-availability .p-button { margin-left: 56px; }.p-auth-main { gap: 24px; padding: 32px 24px; }
  .p-secure-label { display: none; }
}
@media (max-width: 650px) {
  .p-repeat-row { grid-template-columns: 1fr; padding: 16px; }
  .p-welcome-dismiss { align-items: stretch; flex-direction: column; }.p-welcome-dismiss .p-button { width: 100%; }
  .p-preview-banner { flex-direction: column; padding: 16px; gap: 16px; }.p-preview-tools { flex-basis: auto; }.p-preview-tools .p-button { width: 100%; }
  .p-overview-heading { flex-direction: column; gap: 16px; }.p-overview-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .p-update-grid, .p-home-news { grid-template-columns: 1fr; }.p-update-actions { align-items: stretch; flex-direction: column; }.p-update-actions .p-button { width: 100%; }
  .p-notification { flex-wrap: wrap; }.p-notification > form { width: 100%; }.p-notification > form .p-button { width: 100%; }
  .p-priority-options { grid-template-columns: 1fr; }.p-ticket-comments { padding: 16px; }.p-ticket-row-side { flex-wrap: wrap; gap: 8px; }.p-ticket-filters .p-button { width: 100%; }
  .p-document-grid, .p-messages-layout { grid-template-columns: 1fr; }.p-thread-nav { display: flex; flex-wrap: wrap; gap: 8px; }.p-thread-nav h2 { width: 100%; margin: 0 0 8px; }.p-thread-nav a { flex: 1 1 144px; }.p-thread-nav a + a { margin: 0; }
  .p-conversation-heading, .p-composer { padding: 16px; }.p-transcript { padding: 16px; }.p-message { max-width: 94%; }.p-composer-actions { flex-direction: column; align-items: stretch; }.p-composer-actions .p-button { width: 100%; }.p-file-history .p-card-heading { flex-wrap: wrap; }
  .p-field-pair { grid-template-columns: 1fr; gap: 0; }.p-form-actions { flex-direction: column; align-items: stretch; }.p-form-actions .p-button { width: 100%; }
  .portal { padding: 8px; }.p-topbar { min-height: 80px; gap: 8px; padding: 16px; flex-wrap: wrap; }.p-brand { font-size: 16px; }.p-mark { width: 32px; height: 32px; font-size: 24px; }
  .p-company { margin-left: auto; gap: 8px; }.p-company-name { max-width: 120px; }.p-company .p-avatar { width: 32px; height: 32px; }
  .p-main { margin: 0; padding: 24px 16px 88px; min-height: calc(100dvh - 96px); }.p-menu { display: inline-flex; }
  .p-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--cream); }
  .p-rail { transform: translateX(-120%); top: 0; left: 0; bottom: 0; height: 100dvh; width: min(304px,88vw); border-radius: 0 24px 24px 0; padding: 24px; transition: transform 180ms ease; z-index: 50; overflow-y: auto; }
  .p-nav-open .p-rail { transform: translateX(0); }.p-nav-link { flex-direction: row; justify-content: flex-start; gap: 16px; padding: 8px 16px; min-height: 48px; font-size: 15px !important; line-height: 24px; }
  .p-mobile-nav-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 24px; color: var(--surface); }.p-close { color: var(--surface); background: transparent; }
  .p-nav-backdrop { display: block; position: fixed; inset: 0; z-index: 40; background: color-mix(in srgb,var(--studio-charcoal) 50%,transparent); border: 0; }.p-nav-open { overflow: hidden; }
  .p-more-panel { position: static; width: 100%; margin-top: 8px; }.p-more-menu > summary { min-height: 48px; }
  .p-bottom-nav { position: fixed; display: grid; grid-template-columns: repeat(4,1fr); bottom: 0; left: 0; right: 0; z-index: 30; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--studio-charcoal); color: var(--surface); }
  .p-bottom-nav :is(a,button) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 48px; padding: 4px 0; border: 0; border-radius: 16px; background: transparent; color: inherit; text-decoration: none; font-size: 13px; line-height: 20px; }
  .p-bottom-nav [aria-current],.p-bottom-nav .is-active,.p-bottom-nav :is(a,button):hover { background: var(--c-pine); }.p-bottom-nav :is(a,button):focus-visible { outline-color: var(--studio-yellow); }
  .p-page-heading { margin-bottom: 24px; }.p-card { padding: 24px; }.p-section-heading { align-items: flex-start; gap: 8px; }.p-project-title { flex-wrap: wrap; gap: 8px; }
  .p-footer { flex-direction: column; gap: 8px; margin-top: 32px; }.p-home-layout { gap: 24px; }.p-build-grid,.p-home-shortcuts { grid-template-columns: 1fr; }.p-project-team a { margin-left: 0; }
  .p-project-filter { flex-wrap: wrap; gap: 8px; }.p-project-filter label { width: 100%; }.p-project-filter select { flex: 1; min-width: 0; max-width: calc(100% - 88px); }
  .p-profile-heading { gap: 16px; }.p-person-avatar-large { width: 64px; height: 64px; min-width: 64px; }.p-team-return { align-items: flex-start; flex-direction: column; gap: 8px; }
  .p-profile-contact a { grid-template-columns: 40px minmax(0,1fr) 16px; gap: 8px; }.p-home-shortcut { padding: 16px; }.p-onboarding-banner { display: grid; grid-template-columns: 40px minmax(0,1fr); padding: 16px; gap: 8px; }
  .p-onboarding-banner > span:nth-child(2) { min-width: 0; }.p-onboarding-banner .p-text-link { grid-column: 2; margin: 0; }
  .p-stepper { overflow: visible; }.p-stepper li { flex: 1 1 0; min-width: 0; }.p-step-label { width: 100%; max-width: 46px; font-size: 13px; line-height: 20px; }
  .p-auth .p-topbar { padding: 24px; }.p-auth-main { display: flex; flex-direction: column; align-items: stretch; padding: 24px 16px; gap: 24px; max-width: 480px; margin: 0 auto auto; }
  .p-auth-story { padding: 0 8px; }.p-auth-story > p:not(.p-eyebrow),.p-auth-art { display: none; }.p-auth-card { padding: 24px; }.p-auth-footer { padding: 24px; flex-direction: column; gap: 8px; }
  .p-recovery-codes { grid-template-columns: 1fr; }.p-member { flex-wrap: wrap; }.p-member > form { width: 100%; }.p-staff-project { align-items: flex-start; flex-direction: column; gap: 16px; }
  .p-staff-project .p-form { width: 100%; }.p-onboarding-heading { gap: 8px; flex-wrap: wrap; }.p-onboarding-heading .p-page-heading { flex: 1 0 200px; }
  .p-onboarding-grid { grid-template-columns: 1fr; }.p-onboarding-grid > aside { display: contents; }.p-section-nav { margin-bottom: 0; }.p-onboarding-form { grid-row: 2; }.p-checklist { grid-row: 3; }
  .p-timeline-card summary span { display: block; margin: 8px 0 0; }.p-form-actions { gap: 8px; }.p-form-actions .p-button { padding: 12px 16px; }.p-tools > div { grid-template-columns: 1fr; }
  .p-welcome-fallback { display: block; padding: 24px; min-height: 0; }.p-welcome-mark { display: block; margin-bottom: 24px; }.p-welcome-next { display: block; padding: 24px; }.p-welcome-next .p-button { margin-top: 16px; }
  .p-member-actions > div { display: grid; }.p-member-actions > div > form { width: auto; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .portal *, .portal-staff * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.p-real-mark { width: 38px; height: 38px; object-fit: contain; }
.p-availability-strip { font-size: .85rem; margin: 12px 0 0; }
.p-home-heading h1 { font-size: clamp(1.4rem, 2.3vw, 2rem); }

.p-build-progress { margin: 0 0 24px; }
.p-build-progress p { margin: 0 0 8px; }
.p-build-progress progress { display: block; width: 100%; height: 6px; border: 0; border-radius: 6px; overflow: hidden; background: var(--line); color: var(--c-pine); }
.p-build-progress progress::-webkit-progress-bar { background: var(--line); border-radius: 6px; }
.p-build-progress progress::-webkit-progress-value { background: var(--c-pine); border-radius: 6px; }
.p-build-progress progress::-moz-progress-bar { background: var(--c-pine); border-radius: 6px; }
.p-completed-link { margin: 18px 0 0; font-size: .85rem; }
.p-completed-list { list-style: none; padding: 0; margin: 0; }
.p-completed-list li + li { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.p-completed-list h2 { font-size: 1.1rem; }
.p-completed-list p { margin-bottom: 0; }

/* Project-owned stage names can be longer than week labels. */
.p-step-label { max-width:100%; padding:0 4px; overflow-wrap:anywhere; }

.p-welcome-people { display: flex; flex-wrap: wrap; gap: 24px; margin: 24px 0; }
.p-welcome-people figure { margin: 0; }
.p-welcome-people img { display: block; object-fit: cover; border-radius: 50%; margin-bottom: 8px; }

.p-welcome-note, .p-welcome-actions { min-width: 0; }
.p-welcome-actions { padding: 0; }

.p-next-home-list { margin: 0; padding-left: 24px; }
.p-next-home-list li { padding: 12px 0; }
.p-next-home-list a { display: block; line-height: 1.7; text-decoration: none; }
.p-next-home-list a:hover { text-decoration: underline; }

.p-welcome-page { background: var(--bg); padding: 0; }
.p-welcome-page .p-workspace { border-radius: 0; min-height: 100dvh; }
.p-welcome-headline { white-space: nowrap; font-size: clamp(22px,3vw,28px) !important; }
.p-welcome-buttons { display: flex; gap: 8px; }
.p-welcome-buttons .p-button { padding: 12px 16px; font-size: 13px; }
.p-welcome-initials { display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 8px; border-radius: 50%; background: var(--studio-mint); color: var(--studio-charcoal); font-size: 28px; }

.p-welcome-card > h2 { margin: 0; padding: 24px; }
