.project-radar-shared { min-width: 0; font-size: 14px; color: #17252c; }
.pr-scroll { border: 1px solid #cbd8de; border-radius: 6px; background: #fff; }
.pr-plot { position: relative; isolation: isolate; }
.pr-ruler { position: sticky; top: 0; height: var(--pr-ruler-height, 72px); box-sizing: border-box; background: #fff; z-index: 5; border-bottom: 1px solid #ccdce3; }
.pr-gridline { position: absolute; top: var(--pr-ruler-height, 72px); bottom: 0; width: 1px; background: #d7e0e5; z-index: 1; pointer-events: none; }
.pr-tick { position: absolute; top: 10px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-weight: 700; }
.pr-tick-date { font-size: 14px; line-height: 20px; white-space: nowrap; }
.pr-tick-label { font-size: 11px; line-height: 14px; color: #516273; }
.pr-tick.is-today { color: #03677c; }
.pr-tick.is-today .pr-tick-label { color: inherit; }
.pr-undated-tick { position: absolute; inset: 0 auto 0 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #edf3f4; border-right: 2px dashed #a9bec5; box-sizing: border-box; }
.pr-band { position: absolute; left: 0; right: 0; background: #effafd; border-top: 1px solid #ccdce3; }
.pr-band.external { background: #f7f3fc; }
.pr-band.unassigned { background: #f5f7f8; }
.pr-undated-zone { position: absolute; inset: 0 auto 0 0; background: #edf3f4; border-right: 2px dashed #a9bec5; box-sizing: border-box; }
.pr-band-label { position: absolute; top: 10px; left: 12px; font-size: 13px; z-index: 2; }
.pr-bubble { position: absolute; z-index: 2; transform: translate(-50%, -50%); border: 2px solid var(--pr-color, #168da1); border-radius: 50%; background: #fff; color: #17252c; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; padding: 8px; overflow: hidden; cursor: pointer; box-shadow: 0 3px 8px #17252c12; font: inherit; }
.pr-bubble strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; line-height: 1.3; font-size: 13px; max-width: 100%; }
.pr-bubble .pr-due { font-size: 12px; line-height: 1.3; white-space: nowrap; flex-shrink: 0; }
.pr-bubble .pr-phase { font-size: 11px; line-height: 1.3; }
.pr-bubble.is-small { padding: 5px; }
.pr-bubble.is-small strong { display: block; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; flex-shrink: 0; }
.pr-bubble.is-small .pr-due { font-size: 10px; }
.pr-bubble.is-small .pr-phase { display: none; }
.pr-bubble.is-overdue { border-color: #c5394d; background: #fff0f2; }
.pr-bubble.is-size-unknown { border-style: dashed; }
.pr-bubble:focus-visible, .pr-row:focus-visible { outline: 3px solid #111827; outline-offset: 3px; z-index: 4; }
.pr-bubble:hover { box-shadow: 0 3px 12px #17252c36; z-index: 3; }
.pr-bubble.is-draggable { cursor: grab; touch-action: none; user-select: none; }
.pr-bubble.is-dragging { cursor: grabbing; z-index: 10; box-shadow: 0 4px 18px #17252c50; }
.pr-band:has(.is-dragging) { z-index: 6; }
.pr-band.is-drop-target { outline: 3px solid #0891b2; outline-offset: -3px; }
.pr-bubble:disabled { cursor: wait; opacity: .65; }
.pr-bubble .pr-due { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.pr-side-control { display: flex; align-items: center; gap: 12px; padding: 8px 10px 14px; font-size: 12px; }
.pr-side-control select { flex: 1; min-width: 0; min-height: 40px; background: #fff; color: #17252c; border: 1px solid #bdcbd5; border-radius: 4px; font: inherit; padding: 6px; }
.pr-mobile-item:has(.pr-side-control) { border-bottom: 1px solid #d5e0e6; }
.pr-mobile-item:has(.pr-side-control) .pr-row { border-bottom: 0; }
.pr-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; text-align: left; background: #fff; color: inherit; border: 0; border-bottom: 1px solid #d5e0e6; padding: 14px 10px; cursor: pointer; font: inherit; }
.pr-row strong { overflow-wrap: anywhere; font-size: 14px; }
.pr-row .pr-phase { grid-column: 1 / -1; color: #516273; font-size: 12px; }
.pr-row .pr-due { white-space: nowrap; font-size: 12px; }
.pr-row.is-overdue .pr-due { color: #b7263c; font-weight: 700; }
.pr-mobile { display: none; }
.project-radar-shared.is-compact .pr-scroll { display: none; }
.project-radar-shared.is-compact .pr-mobile { display: block; }
.pr-empty { padding: 24px; text-align: center; }
.pr-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pr-toolbar label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.pr-toolbar select { padding: 7px 10px; border: 1px solid #bdcbd5; border-radius: 4px; background: #fff; color: #17252c; }
.pr-scale-note { font-size: 12px; color: #516273; margin: 8px 0; }
.home-project-radar-dialog-inner > h2 { padding-right: 46px; font-size: 20px; }

/* The portal home opts into the K.Studio palette without theming other cards. */
.pr-theme-gray { background: #e4e6e1; color: #28312c; border: 1px solid #a4aaa5; border-radius: 18px; }
.pr-theme-gray :is(.card-header, .card-content, .home-project-radar-dialog-inner) { background: transparent; }
.pr-theme-gray :is(h2, .project-radar-shared) { color: #28312c; }
.pr-theme-gray .section-label { color: #644491; }
.pr-theme-gray .home-project-radar-count { background: #3d315e; color: #eee7ff; }
.pr-theme-gray :is(.home-project-radar-link, .home-project-radar-dialog-close) { background: #dadcd7; color: #28312c; border: 1px solid #929b94; border-radius: 10px; }
.pr-theme-gray :is(button, a, .pr-scroll-horizontal):focus-visible { outline: 3px solid #205660; outline-offset: 3px; }
.pr-theme-gray .pr-scroll { background: #daddd7; border-color: #a4aaa5; border-radius: 14px; }
.pr-scroll-horizontal { max-width: 100%; overflow-x: auto; touch-action: pan-x pan-y; overscroll-behavior-x: contain; scrollbar-color: #7f8a80 #daddd7; }
.pr-theme-gray .pr-ruler { background: #d3d7d0; border-color: #a4aaa5; }
.pr-theme-gray .pr-gridline { background: #c4ccc2; }
.pr-theme-gray .pr-band { background: #dde1da; border-color: #a4aaa5; }
.pr-theme-gray .pr-band.external { background: #e0dde5; }
.pr-theme-gray .pr-band.unassigned { background: #d9ddd7; }
.pr-theme-gray :is(.pr-undated-tick, .pr-undated-zone) { background: #d2d7d0; border-color: #9da89b; }
.pr-theme-gray .pr-band-label { color: #465448; }
.pr-theme-gray :is(.pr-tick-label, .pr-scale-note) { color: #4b554e; }
.pr-theme-gray .pr-tick.is-today { color: #385624; }
.pr-theme-gray .pr-tick.is-today .pr-tick-label { text-decoration: underline; text-decoration-color: #b9f86a; text-decoration-thickness: 3px; text-underline-offset: 3px; }
.pr-theme-gray .pr-bubble { background: #4a504b; color: #fff; border-width: 3px; border-color: color-mix(in srgb, var(--pr-color, #8bd9e9) 65%, white); box-shadow: 0 3px 9px #0003; }
.pr-theme-gray .pr-bubble:hover { background: #59605a; box-shadow: 0 0 0 3px #b6a0ff40; }
.pr-theme-gray .pr-bubble.is-overdue { background: #694651; border-color: #ff9fac; }
.pr-theme-gray .pr-bubble strong { color: #fff; font-size: 17px; line-height: 1.35; font-weight: 800; }
.pr-theme-gray .pr-bubble.is-small strong { display: -webkit-box; -webkit-line-clamp: 2; white-space: normal; flex-shrink: 1; font-size: 16px; }
.pr-theme-gray .pr-bubble .pr-due { color: #edf4ff; font-size: 14px; font-weight: 700; }
.pr-theme-gray .pr-bubble .pr-phase { color: #d0dcef; font-size: 14px; font-weight: 600; }
.pr-theme-gray .pr-swipe-note { display: none; margin: 10px 0; color: #4b554e; font-size: 13px; font-weight: 700; }
.pr-theme-gray:has(.is-scrollable) .pr-swipe-note { display: block; }

/* Keep the home overview compact; expanded and project-management radars stay full size. */
#project-radar-preview [data-home-project-radar] .pr-scroll { max-height: none; overflow-x: auto; overflow-y: hidden; }
#project-radar-preview [data-home-project-radar] .pr-bubble { padding: 4px; gap: 1px; }
#project-radar-preview [data-home-project-radar] .pr-bubble strong { display: block; flex-shrink: 0; max-width: 100%; font-size: 12px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
#project-radar-preview [data-home-project-radar] .pr-bubble .pr-due { max-width: 100%; overflow: hidden; font-size: 10px; line-height: 1.15; white-space: nowrap; text-overflow: ellipsis; }
#project-radar-preview [data-home-project-radar] .pr-bubble .pr-phase { display: none; }
#project-radar-preview [data-home-project-radar] .pr-tick-date { font-size: 12px; }
#project-radar-preview [data-home-project-radar] .pr-tick { max-width: 90px; }
#project-radar-preview [data-home-project-radar] :is(.pr-tick-label, .pr-undated-tick) { font-size: 10px; }
#project-radar-preview [data-home-project-radar] .pr-band-label { font-size: 11px; }
.pr-theme-gray .home-project-radar-manage { min-height: 48px; padding: 10px 24px; background: #b9f86a; border: 1px solid #87b845; color: #24351b; font-size: 17px; font-weight: 800; box-shadow: 0 2px 4px #28312c15; }
.pr-theme-gray .home-project-radar-manage:hover { background: #a7eb53; border-color: #608a2b; }
@media (max-width: 600px) {
    .pr-theme-gray .home-project-radar-manage { width: 100%; }
}
