/* Site palette: navy #1C244B, slate #324A6D, accent #467FF7, blue #1D4ED8, light #E3F3FF, border #C8D5DC */
.pdb {
    --pdb-blue: var(--e-global-color-4ab95de, #1D4ED8);
    --pdb-accent: #467FF7;
    --pdb-heading: #1C244B;
    --pdb-text: #324A6D;
    --pdb-light: var(--e-global-color-5407c2d, #E3F3FF);
    --pdb-border: #C8D5DC;
    --pdb-failure: #C0695D;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    color: var(--pdb-text);
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.pdb h1, .pdb h2 { font-family: "Poppins", sans-serif; color: var(--pdb-heading); margin: 0; }
.pdb h2 { font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.pdb-back, .pdb-link { color: var(--pdb-accent); text-decoration: none; font-weight: 500; font-size: 14px; }
.pdb-back:hover, .pdb-link:hover { text-decoration: underline; color: var(--pdb-blue); }
.pdb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pdb-title { font-size: 32px; font-weight: 600; line-height: 1.2; margin-right: 6px; }

.pdb-badge { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 10px; border: 1px solid var(--pdb-border); background: #fff; white-space: nowrap; }
.pdb-stage-not_started { background: var(--pdb-light); color: var(--pdb-blue); border-color: #467FF740; }
.pdb-stage-in_progress { background: #12CE9015; color: #0E9F6E; border-color: #12CE9040; }
.pdb-stage-finished { background: #1C244B10; color: var(--pdb-heading); }
.pdb-stage-cancelled { background: #C0695D12; color: var(--pdb-failure); border-color: #C0695D40; }
.pdb-stage-closing { background: #D9770615; color: #8A6100; border-color: #D9770640; }
.pdb-role { color: var(--pdb-text); }

.pdb-plan { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; background: var(--pdb-light); border: 1px solid #467FF740; border-radius: 10px; }
.pdb-plan > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.pdb-plan-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.pdb-plan strong { color: var(--pdb-heading); font-weight: 600; font-size: 18px; }
.pdb-plan-limits { font-size: 14px; }
.pdb-plan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.pdb-upsell { padding: 28px; background: #fff; border: 1px solid var(--pdb-border); border-radius: 10px; display: flex; flex-direction: column; gap: 12px; }
.pdb-upsell p { margin: 0; font-size: 16px; line-height: 1.6; max-width: 680px; }
.pdb-checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.pdb-checks li { position: relative; padding-left: 26px; }
.pdb-checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--pdb-blue); font-weight: 600; }

.pdb-banner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 10px; background: #FFF7E6; border: 1px solid #F5D48A; color: #7A5200; }
.pdb-banner p { margin: 0; }

.pdb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.pdb-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: #fff; border: 1px solid var(--pdb-border); border-radius: 10px; text-decoration: none; color: var(--pdb-text); }
.pdb-tile-label { font-size: 13px; font-weight: 500; }
.pdb-tile-value { font-size: 28px; font-weight: 600; color: var(--pdb-heading); line-height: 1.2; }
.pdb-tile-note { font-size: 13px; }
.pdb-tile-link { transition: border-color .2s, box-shadow .2s; }
.pdb-tile-link:hover { border-color: var(--pdb-accent); box-shadow: 0 4px 12px rgba(28, 36, 75, .08); color: var(--pdb-text); }
.pdb-tile-link .pdb-tile-note { color: var(--pdb-accent); font-weight: 500; }

.pdb-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; align-items: start; }
.pdb-card { background: #fff; border: 1px solid var(--pdb-border); border-radius: 10px; padding: 20px; }
.pdb-count { font-size: 13px; font-weight: 500; background: var(--pdb-light); color: var(--pdb-blue); border-radius: 10px; padding: 1px 9px; }
.pdb-team { list-style: none; margin: 0; padding: 0; }
.pdb-team li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--pdb-light); }
.pdb-team li:first-child { border-top: 0; padding-top: 0; }
.pdb-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.pdb-person { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 14px; }
.pdb-person a { font-weight: 600; color: var(--pdb-heading); text-decoration: none; font-size: 15px; }
.pdb-person a:hover { color: var(--pdb-blue); text-decoration: underline; }
.pdb-none { margin: 10px 0 0; font-size: 14px; }

.pdb-roles { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pdb-role-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.pdb-role-row span:first-child { font-weight: 500; color: var(--pdb-heading); }
.pdb-bar { display: block; height: 6px; margin-top: 6px; border-radius: 6px; background: var(--pdb-light); overflow: hidden; }
.pdb-bar span { display: block; height: 100%; background: var(--pdb-blue); border-radius: 6px; }
.pdb-links-title { margin-top: 4px; }
.pdb-links { display: flex; flex-direction: column; gap: 8px; }
.pdb-links a { color: var(--pdb-accent); font-weight: 500; text-decoration: none; font-size: 15px; }
.pdb-links a:hover { text-decoration: underline; }

.pdb-projects { display: flex; flex-direction: column; gap: 12px; }
.pdb-project { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 20px; background: #fff; border: 1px solid var(--pdb-border); border-radius: 10px; text-decoration: none; color: var(--pdb-text); transition: border-color .2s, box-shadow .2s; }
.pdb-project:hover { border-color: var(--pdb-accent); box-shadow: 0 4px 12px rgba(28, 36, 75, .08); color: var(--pdb-text); }
.pdb-project-main { display: flex; flex-direction: column; flex: 1 1 240px; min-width: 0; }
.pdb-project-title { font-weight: 600; color: var(--pdb-heading); font-size: 17px; }
.pdb-project-role { font-size: 14px; }
.pdb-project-state { font-size: 13px; font-weight: 500; }
.pdb-project-state.is-open { color: var(--pdb-accent); }
.pdb-project-state.is-open::after { content: " \2192"; }

.pdb .pdb-btn { display: inline-flex; align-items: center; justify-content: center; font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 500; line-height: 1; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--pdb-blue); cursor: pointer; text-decoration: none; transition: background-color .2s, color .2s; }
.pdb .pdb-btn-primary { background: var(--pdb-blue); color: #fff; }
.pdb .pdb-btn-primary:hover, .pdb .pdb-btn-primary:focus { background: var(--pdb-heading); border-color: var(--pdb-heading); color: #fff; }
.pdb .pdb-btn-ghost { background: #fff; color: var(--pdb-blue); }
.pdb .pdb-btn-ghost:hover, .pdb .pdb-btn-ghost:focus { background: var(--pdb-light); color: var(--pdb-blue); }
.pdb .pdb-btn-small { padding: 8px 12px; font-size: 13px; }
.pdb .pdb-btn:disabled { opacity: .55; cursor: default; }
.pdb-msg { flex-basis: 100%; margin: 0; font-size: 14px; color: #0E9F6E; }
.pdb-msg.is-error { color: var(--pdb-failure); }
.pdb-msg:empty { display: none; }

.pdb-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 32px 20px; background: var(--pdb-light); border: 1px dashed var(--pdb-accent); border-radius: 10px; }
.pdb-empty p { margin: 0; }

@media (max-width: 767px) {
    .pdb-title { font-size: 26px; }
    .pdb-grid { grid-template-columns: 1fr; }
    .pdb-checks { grid-template-columns: 1fr; }
    .pdb-tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
    .pdb-tile-value { font-size: 24px; }
    .pdb-upsell, .pdb-card { padding: 18px; }
    .pdb-plan-actions .pdb-btn { flex: 1 1 auto; }
}

/* Pricing card buttons (Plan Action widget) */
.pdb-plan-action { display: flex; flex-direction: column; gap: 8px; font-family: "Poppins", sans-serif; }
.pdb-plan-action .pdb-cta, .pdb-plan-action button.pdb-cta { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; padding: 12px 18px; border-radius: 10px; border: 1px solid var(--e-global-color-4ab95de, #1D4ED8); background: var(--e-global-color-4ab95de, #1D4ED8); color: #fff; font-family: "Poppins", sans-serif; font-size: 15px; font-weight: 500; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.pdb-plan-action a.pdb-cta:hover, .pdb-plan-action button.pdb-cta:hover, .pdb-plan-action button.pdb-cta:focus { background: #1C244B; border-color: #1C244B; color: #fff; }
.pdb-plan-action .pdb-cta.is-ghost { background: #fff; color: var(--e-global-color-4ab95de, #1D4ED8); }
.pdb-plan-action a.pdb-cta.is-ghost:hover { background: #E3F3FF; color: var(--e-global-color-4ab95de, #1D4ED8); border-color: var(--e-global-color-4ab95de, #1D4ED8); }
.pdb-plan-action .pdb-cta.is-current { background: #fff; color: #0E9F6E; border-color: #12CE90; cursor: default; }
.pdb-plan-action .pdb-cta.is-muted { background: #F3F6F8; color: #324A6D; border-color: #C8D5DC; cursor: default; }
.pdb-plan-action .pdb-msg { margin: 0; font-size: 14px; color: #0E9F6E; }
.pdb-plan-action .pdb-msg.is-error { color: #C0695D; }
.pdb-plan-action .pdb-msg:empty { display: none; }
.pdb-plan-status { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; padding: 14px 18px; background: #E3F3FF; border: 1px solid #467FF740; border-radius: 10px; font-family: "Poppins", sans-serif; color: #324A6D; text-align: center; }
.pdb-plan-status strong { color: #1C244B; font-weight: 600; }
.pdb-plan-status .pdb-link { color: #467FF7; font-weight: 500; text-decoration: none; }
.pdb-plan-status .pdb-link:hover { text-decoration: underline; }

/* ---------- Workspace tabs ---------- */
.pdb-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--pdb-border); overflow-x: auto; scrollbar-width: none; }
.pdb-tabs::-webkit-scrollbar { display: none; }
.pdb .pdb-tabs button, .pdb .pdb-tabs button:focus { display: inline-flex; align-items: center; gap: 6px; padding: 12px 16px; margin-bottom: -1px; background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none; font-family: "Poppins", sans-serif; font-size: 15px; font-weight: 500; color: var(--pdb-text); cursor: pointer; white-space: nowrap; }
.pdb .pdb-tabs button:hover { background: transparent; color: var(--pdb-blue); }
.pdb .pdb-tabs button.is-active { color: var(--pdb-blue); border-bottom-color: var(--pdb-blue); }
.pdb-tab-n { font-size: 12px; background: var(--pdb-light); color: var(--pdb-blue); border-radius: 10px; padding: 1px 8px; }
.pdb-panel { display: flex; flex-direction: column; gap: 20px; }
.pdb-panel[hidden] { display: none; }
.pdb-ws-root { display: flex; flex-direction: column; gap: 20px; }
.pdb-tile-value.is-over { color: var(--pdb-failure); }

/* ---------- Toolbar ---------- */
.ws-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ws-bar .ws-new { margin-left: auto; }
.ws-seg { display: inline-flex; border: 1px solid var(--pdb-border); border-radius: 10px; overflow: hidden; }
.pdb .ws-seg button, .pdb .ws-seg button:focus { padding: 9px 14px; background: #fff; border: 0; border-radius: 0; box-shadow: none; font-family: "Poppins", sans-serif; font-size: 14px; color: var(--pdb-text); cursor: pointer; }
.pdb .ws-seg button:hover { background: var(--pdb-light); color: var(--pdb-blue); }
.pdb .ws-seg button.is-on { background: var(--pdb-blue); color: #fff; }
.pdb .ws-bar select, .ws-dialog select, .ws-dialog input[type="text"], .ws-dialog input[type="date"], .ws-dialog textarea, .ws-ms-form input, .ws-ms-form textarea { border: 1px solid var(--pdb-border, #C8D5DC); border-radius: 10px; padding: 9px 12px; background: #fff; font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 300; color: var(--pdb-heading, #1C244B); max-width: 100%; }
.pdb .ws-bar select:focus, .ws-dialog select:focus, .ws-dialog input:focus, .ws-dialog textarea:focus, .ws-ms-form input:focus, .ws-ms-form textarea:focus { outline: 2px solid #B8E1FF; border-color: #467FF7; }

/* ---------- Board ---------- */
.ws-board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.ws-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 12px; background: #F5F8FA; border: 1px solid var(--pdb-border); border-radius: 10px; }
.ws-col header { display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: var(--pdb-heading); font-size: 15px; }
.ws-col header::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: #8FA3B5; }
.ws-col header span:first-child { margin-right: auto; }
.ws-col-doing header::before { background: var(--pdb-accent); }
.ws-col-review header::before { background: #E0A100; }
.ws-col-done header::before { background: #12CE90; }
.ws-n { font-size: 12px; font-weight: 500; background: #fff; border: 1px solid var(--pdb-border); border-radius: 10px; padding: 1px 8px; color: var(--pdb-text); }
.ws-cards { display: flex; flex-direction: column; gap: 8px; min-height: 40px; border-radius: 8px; transition: background-color .15s; }
.ws-cards.is-over-col { background: var(--pdb-light); }
.ws-card { position: relative; padding: 12px 12px 10px; background: #fff; border: 1px solid var(--pdb-border); border-left: 3px solid var(--pdb-border); border-radius: 8px; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.ws-card:hover, .ws-card:focus { border-color: var(--pdb-accent); box-shadow: 0 4px 10px rgba(28, 36, 75, .08); outline: none; }
.ws-card.is-dragging { opacity: .45; }
.ws-card.ws-card-p-high { border-left-color: #E0A100; }
.ws-card.ws-card-p-urgent { border-left-color: var(--pdb-failure); }
.ws-card-title { margin: 0 0 8px; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--pdb-heading); word-break: break-word; }
.ws-labels { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.ws-labels span { font-size: 11px; font-weight: 500; padding: 1px 8px; border-radius: 10px; background: var(--pdb-light); color: var(--pdb-blue); }
.ws-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; color: var(--pdb-text); }
.ws-due.is-over, td.is-over, .ws-ms-due.is-over { color: var(--pdb-failure); font-weight: 500; }
.ws-check.is-done { color: #0E9F6E; }
.ws-avatars { display: inline-flex; margin-left: auto; }
.ws-avatars img { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; object-fit: cover; }
.ws-avatars img:first-child { margin-left: 0; }
.ws-prio { font-size: 11px; font-weight: 500; padding: 1px 8px; border-radius: 10px; background: #F3F6F8; color: var(--pdb-text); }
.ws-prio-high { background: #FFF4D6; color: #8A6100; }
.ws-prio-urgent { background: #C0695D18; color: var(--pdb-failure); }
.ws-quick input { width: 100%; padding: 8px 10px; border: 1px dashed var(--pdb-border); border-radius: 8px; background: transparent; font-family: "Poppins", sans-serif; font-size: 14px; color: var(--pdb-heading); }
.ws-quick input:focus { background: #fff; border-style: solid; border-color: var(--pdb-accent); outline: none; }

/* ---------- List ---------- */
.ws-table-wrap { overflow-x: auto; border: 1px solid var(--pdb-border); border-radius: 10px; background: #fff; }
.ws-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; border: 0; }
.ws-table th { text-align: left; font-weight: 500; font-size: 13px; color: var(--pdb-text); background: #F5F8FA; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--pdb-border); white-space: nowrap; }
.ws-table td { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--pdb-light); vertical-align: middle; background: #fff; }
.ws-table tr:last-child td { border-bottom: 0; }
.ws-table tbody tr[data-open-task] { cursor: pointer; }
.ws-table tbody tr[data-open-task]:hover td { background: #F7FAFF; }
.ws-td-title { font-weight: 500; color: var(--pdb-heading); min-width: 200px; }
.ws-table .ws-avatars { margin-left: 0; }
.ws-empty-row { text-align: center; padding: 24px; }
.ws-status { font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 10px; white-space: nowrap; background: #F3F6F8; color: var(--pdb-text); }
.ws-status-doing { background: var(--pdb-light); color: var(--pdb-blue); }
.ws-status-review { background: #FFF4D6; color: #8A6100; }
.ws-status-done { background: #12CE9018; color: #0E9F6E; }
.ws-status-late { background: #C0695D18; color: var(--pdb-failure); }

/* ---------- Task window ---------- */
body.ws-modal-open { overflow: hidden; }
.ws-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; background: rgba(28, 36, 75, .45); overflow-y: auto; font-family: "Poppins", sans-serif; --pdb-blue: var(--e-global-color-4ab95de, #1D4ED8); --pdb-heading: #1C244B; --pdb-text: #324A6D; --pdb-light: #E3F3FF; --pdb-border: #C8D5DC; --pdb-failure: #C0695D; color: #324A6D; font-weight: 300; }
.ws-dialog { width: 100%; max-width: 640px; background: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgba(28, 36, 75, .22); }
.ws-dialog-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--pdb-light); }
.ws-dialog .ws-title-input { flex: 1; min-width: 0; border: 1px solid transparent; font-size: 18px; font-weight: 600; color: var(--pdb-heading); padding: 6px 8px; }
.ws-dialog .ws-title-input:hover { border-color: var(--pdb-border); }
.ws-modal .ws-x, .ws-modal .ws-x:focus { padding: 0 6px; background: transparent; border: 0; box-shadow: none; font-size: 26px; line-height: 1; color: var(--pdb-text); cursor: pointer; }
.ws-modal .ws-x:hover { background: transparent; color: var(--pdb-blue); }
.ws-dialog-body { display: flex; flex-direction: column; gap: 16px; padding: 18px; }
.ws-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ws-fields label, .ws-block { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--pdb-heading); }
.ws-fields .ws-wide { grid-column: 1 / -1; }
.ws-block-label { font-size: 13px; font-weight: 500; color: var(--pdb-heading); }
.ws-assign { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ws-assign legend { font-size: 13px; font-weight: 500; color: var(--pdb-heading); margin-bottom: 6px; padding: 0; }
.ws-person { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid var(--pdb-border); border-radius: 999px; cursor: pointer; font-size: 13px; color: var(--pdb-heading); }
.ws-person:has(input:checked) { border-color: var(--pdb-blue); background: var(--pdb-light); }
.ws-person input { accent-color: var(--pdb-blue); }
.ws-person img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.ws-person span { display: flex; flex-direction: column; line-height: 1.2; }
.ws-person small { font-size: 11px; color: var(--pdb-text); font-weight: 300; }
.ws-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ws-checklist li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--pdb-light); border-radius: 8px; }
.ws-checklist label { display: flex; align-items: center; gap: 8px; flex: 1; font-size: 14px; font-weight: 300; color: var(--pdb-heading); cursor: pointer; }
.ws-checklist input { accent-color: var(--pdb-blue); width: 16px; height: 16px; }
.ws-checklist input:checked + .ws-check-text { text-decoration: line-through; color: var(--pdb-text); }
.ws-modal .ws-rm, .ws-modal .ws-rm:focus { padding: 0 4px; background: transparent; border: 0; box-shadow: none; font-size: 18px; line-height: 1; color: var(--pdb-text); cursor: pointer; }
.ws-modal .ws-rm:hover { background: transparent; color: var(--pdb-failure); }
.ws-check-add { display: flex; gap: 8px; margin-top: 6px; }
.ws-check-add input { flex: 1; min-width: 0; }
.ws-dialog-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--pdb-light); }
.ws-dialog-msg { margin-right: auto; font-size: 13px; color: var(--pdb-failure); }
.ws-modal .ws-delete, .ws-modal .ws-delete:focus, .ws-modal .ws-delete:hover { padding: 0; background: transparent; border: 0; box-shadow: none; font-family: "Poppins", sans-serif; font-size: 14px; color: var(--pdb-failure); cursor: pointer; text-decoration: underline; }
.ws-modal .pdb-btn { display: inline-flex; align-items: center; justify-content: center; font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 500; line-height: 1; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--pdb-blue); cursor: pointer; text-decoration: none; }
.ws-modal .pdb-btn-primary { background: var(--pdb-blue); color: #fff; }
.ws-modal .pdb-btn-primary:hover { background: #1C244B; border-color: #1C244B; color: #fff; }
.ws-modal .pdb-btn-ghost { background: #fff; color: var(--pdb-blue); }
.ws-modal .pdb-btn-ghost:hover { background: var(--pdb-light); color: var(--pdb-blue); }
.ws-modal .pdb-btn-small { padding: 8px 12px; font-size: 13px; }
.ws-modal .pdb-btn:disabled { opacity: .55; }

/* ---------- Milestones ---------- */
.ws-ms-list { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; display: flex; flex-direction: column; gap: 14px; }
.ws-ms-list::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; background: var(--pdb-border); }
.ws-ms { position: relative; padding: 16px 18px; background: #fff; border: 1px solid var(--pdb-border); border-radius: 10px; }
.ws-ms-dot { position: absolute; left: -19px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--pdb-accent); }
.ws-ms.is-done .ws-ms-dot { background: #12CE90; border-color: #12CE90; }
.ws-ms-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pdb .ws-ms-head h3 { margin: 0 auto 0 0; font-family: "Poppins", sans-serif; font-size: 17px; font-weight: 600; color: var(--pdb-heading); }
.ws-ms-due { font-size: 13px; }
.ws-ms-desc { margin: 8px 0 0; font-size: 14px; line-height: 1.5; }
.ws-ms-progress { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; }
.ws-ms-progress .pdb-bar { flex: 1; margin: 0; }
.ws-ms-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.pdb .ws-linkbtn, .pdb .ws-linkbtn:focus { padding: 0; background: transparent; border: 0; box-shadow: none; font-family: "Poppins", sans-serif; font-size: 13px; font-weight: 500; color: var(--pdb-accent); cursor: pointer; }
.pdb .ws-linkbtn:hover { background: transparent; color: var(--pdb-blue); text-decoration: underline; }
.pdb .ws-linkbtn.is-danger { color: var(--pdb-failure); }
.ws-ms-form { display: flex; flex-direction: column; gap: 12px; }
.pdb .ws-ms-form h3 { margin: 0; font-family: "Poppins", sans-serif; font-size: 17px; font-weight: 600; color: var(--pdb-heading); }
.ws-ms-form .ws-dialog-foot { padding: 0; border: 0; }

/* ---------- My tasks (dashboards list) ---------- */
.pdb-mytasks ul { list-style: none; margin: 0; padding: 0; }
.pdb-mytasks li a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-top: 1px solid var(--pdb-light); text-decoration: none; color: var(--pdb-text); font-size: 14px; }
.pdb-mytasks li:first-child a { border-top: 0; padding-top: 0; }
.pdb-mytasks li a:hover .pdb-mytask-title { color: var(--pdb-blue); text-decoration: underline; }
.pdb-mytask-title { flex: 1 1 220px; font-weight: 500; color: var(--pdb-heading); }
.pdb-mytask-project { font-size: 13px; }

@media (max-width: 767px) {
    .ws-board { grid-template-columns: repeat(4, 82%); scroll-snap-type: x mandatory; }
    .ws-col { scroll-snap-align: start; }
    .ws-fields { grid-template-columns: 1fr; }
    .ws-bar .ws-new { margin-left: 0; width: 100%; }
    .ws-bar select { flex: 1 1 140px; }
    .ws-modal { padding: 0; }
    .ws-dialog { min-height: 100%; border-radius: 0; }
}
.pdb-tile-value.pdb-tile-text { font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }

.pdb .ws-bar select { width: auto; min-width: 150px; }
@media (max-width: 767px) { .pdb .ws-bar select { flex: 1 1 140px; width: auto; min-width: 0; } }

/* ---------- Chat tab ---------- */
.pdb-chat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.pdb-chat-head p { margin: 0; font-size: 14px; }
.pdb-chat-box { border: 1px solid var(--pdb-border); border-radius: 10px; overflow: hidden; background: #fff; min-height: 420px; }
.pdb-chat-box .bp-messages-wrap { border: 0 !important; }

/* ---------- Files tab ---------- */
.ws-upload-btn { cursor: pointer; }
.fl-storage { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 13px; min-width: 220px; }
.fl-storage .pdb-bar { flex: 1; margin: 0; }
.fl-storage.is-full .pdb-bar span { background: var(--pdb-failure); }
.fl-folders { display: flex; flex-wrap: wrap; gap: 8px; }
.fl-chip-wrap { display: inline-flex; align-items: center; }
.pdb .fl-chip, .pdb .fl-chip:focus { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; background: #fff; border: 1px solid var(--pdb-border); border-radius: 999px; box-shadow: none; font-family: "Poppins", sans-serif; font-size: 13px; font-weight: 400; color: var(--pdb-text); cursor: pointer; }
.pdb .fl-chip:hover { background: var(--pdb-light); color: var(--pdb-blue); }
.pdb .fl-chip.is-on { background: var(--pdb-blue); border-color: var(--pdb-blue); color: #fff; }
.fl-chip span { font-size: 11px; opacity: .8; }
.pdb .fl-chip-x, .pdb .fl-chip-x:focus { margin-left: -4px; padding: 0 6px; background: transparent; border: 0; box-shadow: none; font-size: 16px; color: var(--pdb-text); cursor: pointer; }
.pdb .fl-chip-x:hover { background: transparent; color: var(--pdb-failure); }
[data-panel="files"].is-dropping .fl-drop { outline: 2px dashed var(--pdb-accent); outline-offset: 4px; background: var(--pdb-light); }
.fl-uploads { display: flex; flex-direction: column; gap: 6px; }
.fl-uploads:empty { display: none; }
.fl-up { display: grid; grid-template-columns: minmax(0, 1fr) 160px auto; align-items: center; gap: 12px; padding: 8px 12px; background: #fff; border: 1px solid var(--pdb-border); border-radius: 8px; font-size: 13px; }
.fl-up .pdb-bar { margin: 0; }
.fl-up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pdb-heading); }
.fl-up.is-done .fl-up-state { color: #0E9F6E; }
.fl-up.is-error { border-color: #C0695D60; }
.fl-up.is-error .fl-up-state { color: var(--pdb-failure); }
.pdb .fl-name, .pdb .fl-name:focus { display: flex; align-items: center; gap: 10px; padding: 0; background: transparent; border: 0; box-shadow: none; text-align: left; font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 500; color: var(--pdb-heading); cursor: pointer; }
.pdb .fl-name:hover { background: transparent; color: var(--pdb-blue); }
.fl-name-text { display: flex; flex-direction: column; min-width: 0; word-break: break-word; }
.fl-name-text small { font-size: 12px; font-weight: 300; color: var(--pdb-text); }
.fl-v { font-style: normal; font-size: 11px; font-weight: 500; padding: 0 6px; border-radius: 8px; background: var(--pdb-light); color: var(--pdb-blue); }
.fl-thumb { flex: 0 0 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #F3F6F8; border: 1px solid var(--pdb-light); overflow: hidden; font-size: 10px; font-weight: 600; color: var(--pdb-text); }
.fl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fl-nowrap { white-space: nowrap; font-size: 13px; }
.fl-task { color: var(--pdb-accent); font-size: 13px; text-decoration: none; }
.fl-task:hover { text-decoration: underline; }
.fl-actions { white-space: nowrap; text-align: right; }
.fl-actions a { color: var(--pdb-accent); font-size: 13px; font-weight: 500; text-decoration: none; margin-left: 14px; }
.pdb .fl-actions .ws-linkbtn { margin-left: 14px; }
.fl-actions a:hover { text-decoration: underline; }
.fl-preview { display: block; max-width: 100%; max-height: 260px; margin: 0 auto; border-radius: 8px; border: 1px solid var(--pdb-light); }
.fl-versions { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.fl-versions li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 8px 10px; border: 1px solid var(--pdb-light); border-radius: 8px; font-size: 13px; font-weight: 300; }
.fl-versions li span:first-child { font-weight: 500; color: var(--pdb-heading); }
.fl-versions a { color: var(--pdb-blue); font-weight: 500; text-decoration: none; }
.fl-newver { align-self: flex-start; margin-top: 8px; cursor: pointer; }
.ws-files { margin: 0; padding-left: 18px; font-size: 14px; }
.ws-files a { color: var(--pdb-blue); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* ---------- Docs tab ---------- */
.dc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.dc-side { position: sticky; top: 110px; padding: 14px; background: #F5F8FA; border: 1px solid var(--pdb-border); border-radius: 10px; }
.dc-side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 600; color: var(--pdb-heading); font-size: 14px; }
.dc-tree { list-style: none; margin: 0; padding: 0; }
.dc-tree.is-sub { padding-left: 14px; border-left: 1px solid var(--pdb-border); margin-left: 8px; }
.pdb .dc-link, .pdb .dc-link:focus { display: block; width: 100%; padding: 6px 8px; background: transparent; border: 0; border-radius: 6px; box-shadow: none; text-align: left; font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 400; color: var(--pdb-text); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdb .dc-link:hover { background: #fff; color: var(--pdb-blue); }
.pdb .dc-link.is-on { background: #fff; color: var(--pdb-blue); font-weight: 500; box-shadow: inset 3px 0 0 var(--pdb-blue); }
.dc-none { margin: 0; font-size: 13px; }
.dc-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pdb .dc-title { width: 100%; padding: 6px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; font-family: "Poppins", sans-serif; font-size: 26px; font-weight: 600; color: var(--pdb-heading); }
.pdb .dc-title:hover:not([readonly]), .pdb .dc-title:focus { border-color: var(--pdb-border); background: #fff; outline: none; }
.dc-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: #F5F8FA; border: 1px solid var(--pdb-border); border-radius: 10px; position: sticky; top: 100px; z-index: 2; }
.pdb .dc-toolbar button, .pdb .dc-toolbar button:focus { min-width: 34px; height: 32px; padding: 0 8px; background: #fff; border: 1px solid var(--pdb-border); border-radius: 6px; box-shadow: none; font-family: "Poppins", sans-serif; font-size: 13px; color: var(--pdb-heading); cursor: pointer; }
.pdb .dc-toolbar button:hover { background: var(--pdb-light); color: var(--pdb-blue); border-color: var(--pdb-accent); }
.dc-body { min-height: 320px; padding: 18px 20px; background: #fff; border: 1px solid var(--pdb-border); border-radius: 10px; font-size: 15px; line-height: 1.7; color: var(--pdb-heading); overflow-wrap: anywhere; }
.dc-body[contenteditable]:focus { outline: 2px solid #B8E1FF; border-color: var(--pdb-accent); }
.pdb .dc-body h2 { font-size: 21px; margin: 18px 0 8px; }
.pdb .dc-body h3 { font-size: 17px; margin: 16px 0 6px; }
.dc-body p { margin: 0 0 10px; }
.dc-body ul, .dc-body ol { margin: 0 0 10px; padding-left: 22px; }
.dc-body blockquote { margin: 0 0 10px; padding: 8px 14px; border-left: 3px solid var(--pdb-accent); background: var(--pdb-light); border-radius: 0 8px 8px 0; }
.dc-body pre { margin: 0 0 10px; padding: 10px 12px; background: #1C244B; color: #E3F3FF; border-radius: 8px; font-size: 13px; white-space: pre-wrap; }
.dc-body a { color: var(--pdb-blue); }
.dc-body hr { border: 0; border-top: 1px solid var(--pdb-border); margin: 16px 0; }
.dc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dc-meta { font-size: 13px; margin-right: auto; }
.dc-foot .ws-dialog-msg { margin-right: 0; }
.ws-dialog-msg.is-pending { color: #8A6100; }
.ws-dialog-msg.is-ok { color: #0E9F6E; }
.pdb .ws-delete, .pdb .ws-delete:focus, .pdb .ws-delete:hover { padding: 0; background: transparent; border: 0; box-shadow: none; font-family: "Poppins", sans-serif; font-size: 14px; color: var(--pdb-failure); cursor: pointer; text-decoration: underline; }
.dc-start { padding: 24px; background: #fff; border: 1px solid var(--pdb-border); border-radius: 10px; }
.pdb .dc-start h3 { margin: 0 0 6px; font-family: "Poppins", sans-serif; font-size: 20px; font-weight: 600; color: var(--pdb-heading); }
.dc-start p { margin: 0 0 16px; }
.dc-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pdb .dc-tpl, .pdb .dc-tpl:focus { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: #F5F8FA; border: 1px solid var(--pdb-border); border-radius: 10px; box-shadow: none; text-align: left; font-family: "Poppins", sans-serif; cursor: pointer; }
.pdb .dc-tpl:hover { background: var(--pdb-light); border-color: var(--pdb-accent); }
.dc-tpl strong { font-size: 14px; font-weight: 600; color: var(--pdb-heading); }
.dc-tpl span { font-size: 12px; font-weight: 300; color: var(--pdb-text); }

@media (max-width: 767px) {
    .fl-storage { margin-left: 0; width: 100%; min-width: 0; }
    .fl-up { grid-template-columns: minmax(0, 1fr) 80px; }
    .fl-up-state { grid-column: 1 / -1; }
    .fl-table th:nth-child(3), .fl-table td:nth-child(3), .fl-table th:nth-child(4), .fl-table td:nth-child(4) { display: none; }
    .fl-actions a, .pdb .fl-actions .ws-linkbtn { margin-left: 10px; }
    .dc { grid-template-columns: 1fr; }
    .dc-side { position: static; }
    .dc-toolbar { top: 70px; }
    .pdb .dc-title { font-size: 22px; }
}
/* ---------- Comments ---------- */
.cm { display: flex; flex-direction: column; gap: 10px; }
.cm .ws-block-label { display: inline-flex; align-items: center; gap: 6px; }
.cm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cm-list:empty { display: none; }
.cm-item { display: flex; gap: 10px; }
.cm-item > img { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.cm-body { flex: 1; min-width: 0; }
.cm-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; }
.cm-head strong { font-weight: 600; color: var(--pdb-heading, #1C244B); }
.cm-head span { color: #7A8CA0; }
.cm-text { margin-top: 2px; font-size: 14px; line-height: 1.55; color: var(--pdb-heading, #1C244B); font-weight: 300; overflow-wrap: anywhere; }
.cm-text a { color: var(--pdb-blue, #1D4ED8); }
.cm-mention { color: var(--pdb-blue, #1D4ED8); background: #E3F3FF; border-radius: 4px; padding: 0 3px; font-weight: 500; }
.cm-loading { margin: 0; font-size: 13px; }
.cm-new { display: flex; flex-direction: column; gap: 8px; }
.cm-input-wrap { position: relative; }
.cm textarea { width: 100%; border: 1px solid var(--pdb-border, #C8D5DC); border-radius: 10px; padding: 9px 12px; font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 300; color: var(--pdb-heading, #1C244B); resize: vertical; background: #fff; }
.cm textarea:focus { outline: 2px solid #B8E1FF; border-color: #467FF7; }
.cm-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.cm-actions .ws-dialog-msg { margin-right: auto; }
.cm-suggest { position: absolute; left: 8px; bottom: calc(100% + 4px); z-index: 5; min-width: 220px; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--pdb-border, #C8D5DC); border-radius: 10px; box-shadow: 0 8px 24px rgba(28, 36, 75, .15); }
.cm-suggest[hidden] { display: none; }
.cm-suggest button, .cm-suggest button:focus { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; background: transparent; border: 0; border-radius: 6px; box-shadow: none; font-family: "Poppins", sans-serif; font-size: 13px; font-weight: 400; color: var(--pdb-heading, #1C244B); text-align: left; cursor: pointer; }
.cm-suggest button.is-on, .cm-suggest button:hover { background: #E3F3FF; color: var(--pdb-blue, #1D4ED8); }
.cm-suggest img { width: 22px; height: 22px; border-radius: 50%; }
.cm-suggest small { margin-left: auto; font-size: 11px; color: #7A8CA0; }
.ws-modal .ws-linkbtn, .ws-modal .ws-linkbtn:focus { padding: 0; background: transparent; border: 0; box-shadow: none; font-family: "Poppins", sans-serif; font-size: 12px; font-weight: 500; color: #467FF7; cursor: pointer; }
.ws-modal .ws-linkbtn:hover { background: transparent; text-decoration: underline; }
.ws-modal .ws-linkbtn.is-danger { color: #C0695D; }
.ws-comments-slot { border-top: 1px solid var(--pdb-light, #E3F3FF); padding-top: 14px; }
.dc-comments { margin-top: 10px; padding: 16px 18px; background: #fff; border: 1px solid var(--pdb-border); border-radius: 10px; }
.ws-card-meta .ws-comments-n { font-size: 12px; }

/* ---------- Calendar ---------- */
.cal-bar { align-items: center; }
.pdb .cal-month { margin: 0; font-family: "Poppins", sans-serif; font-size: 20px; font-weight: 600; color: var(--pdb-heading); text-transform: capitalize; }
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12px; }
.cal-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: -8px; }
.cal-legend .cal-dot { margin-right: 4px; }
.cal-dot-meeting { background: var(--pdb-blue); }
.cal-dot-task { background: #E0A100; }
.cal-dot-milestone { background: #12CE90; }
.cal-grid { border: 1px solid var(--pdb-border); border-radius: 10px; overflow: hidden; background: #fff; }
.cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-row + .cal-row { border-top: 1px solid var(--pdb-light); }
.cal-head div { padding: 8px 10px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; background: #F5F8FA; color: var(--pdb-text); }
.cal-day { min-height: 112px; padding: 6px; border-left: 1px solid var(--pdb-light); cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day:first-child { border-left: 0; }
.cal-day:hover { background: #FAFCFF; }
.cal-day.is-out { background: #FAFBFC; }
.cal-day.is-out .cal-num { opacity: .45; }
.cal-num { font-size: 13px; font-weight: 500; color: var(--pdb-heading); width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.cal-day.is-today .cal-num { background: var(--pdb-blue); color: #fff; }
.cal-items { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-dots { display: none; }
.pdb .cal-chip, .pdb .cal-chip:focus, .ws-modal .cal-chip, .ws-modal .cal-chip:focus { display: block; width: 100%; padding: 2px 6px; border: 0; border-radius: 4px; box-shadow: none; text-align: left; font-family: "Poppins", sans-serif; font-size: 12px; font-weight: 400; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; background: #E3F3FF; color: #1D4ED8; }
.pdb .cal-chip:hover, .ws-modal .cal-chip:hover { filter: brightness(.96); }
.pdb .cal-chip.cal-t-deadline, .ws-modal .cal-chip.cal-t-deadline { background: #C0695D18; color: #A04A3F; }
.pdb .cal-chip.cal-t-other, .ws-modal .cal-chip.cal-t-other { background: #F3F6F8; color: #324A6D; }
.pdb .cal-chip.cal-task, .ws-modal .cal-chip.cal-task { background: #FFF4D6; color: #7A5600; }
.pdb .cal-chip.cal-task.is-late, .ws-modal .cal-chip.cal-task.is-late { background: #C0695D18; color: #A04A3F; }
.pdb .cal-chip.cal-milestone, .ws-modal .cal-chip.cal-milestone { background: #12CE9018; color: #0B7A55; }
.pdb .cal-chip.is-done, .ws-modal .cal-chip.is-done { opacity: .6; text-decoration: line-through; }
.pdb .cal-more, .pdb .cal-more:focus { padding: 0 6px; background: transparent; border: 0; box-shadow: none; font-family: "Poppins", sans-serif; font-size: 11px; color: var(--pdb-accent); text-align: left; cursor: pointer; }
.cal-agenda { display: flex; flex-direction: column; gap: 10px; }
.pdb .cal-agenda h2 { margin-bottom: 4px; }
.cal-agenda-day { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding-top: 10px; border-top: 1px solid var(--pdb-light); }
.cal-agenda-day:first-of-type { border-top: 0; padding-top: 0; }
.cal-agenda-day > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-agenda-date { font-size: 13px; font-weight: 500; color: var(--pdb-heading); }
.cal-agenda-date.is-today { color: var(--pdb-blue); }
.cal-day-title { margin: 0; font-family: "Poppins", sans-serif; font-size: 18px; font-weight: 600; color: #1C244B; }
.cal-day-list { gap: 6px; }
.cal-event-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-fields .ws-inline { flex-direction: row; align-items: center; gap: 8px; padding-top: 22px; }
.ws-fields .ws-inline input { width: 16px; height: 16px; accent-color: #1D4ED8; }
.ws-dialog input[type="time"], .ws-dialog input[type="url"] { border: 1px solid #C8D5DC; border-radius: 10px; padding: 9px 12px; background: #fff; font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 300; color: #1C244B; }
.cal-time[hidden] { display: none; }

/* ---------- Overview: activity and coming up ---------- */
.pdb-activity ul, .pdb-upcoming ul { list-style: none; margin: 0; padding: 0; }
.pdb-activity li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--pdb-light); font-size: 14px; line-height: 1.45; }
.pdb-activity li:first-child { border-top: 0; padding-top: 0; }
.pdb-activity img { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.pdb-activity strong { font-weight: 600; color: var(--pdb-heading); }
.pdb-activity time { display: block; font-size: 12px; color: #7A8CA0; }
.pdb-upcoming li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--pdb-light); font-size: 14px; }
.pdb-upcoming li:first-child { border-top: 0; padding-top: 0; }
.pdb-upcoming .pdb-up-date { font-size: 13px; font-weight: 500; color: var(--pdb-heading); }
.pdb-upcoming .pdb-up-date.is-today { color: var(--pdb-blue); }
.pdb-upcoming a { color: var(--pdb-heading); text-decoration: none; }
.pdb-upcoming a:hover { color: var(--pdb-blue); text-decoration: underline; }
.pdb-up-kind { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

@media (max-width: 767px) {
    .cal-day { min-height: 54px; padding: 4px; align-items: center; }
    .cal-items { display: none; }
    .cal-dots { display: flex; gap: 3px; justify-content: center; }
    .cal-dots .cal-dot { margin: 0; width: 6px; height: 6px; }
    .cal-head div { padding: 6px 2px; text-align: center; font-size: 10px; }
    .cal-agenda-day { grid-template-columns: 1fr; gap: 4px; }
    .ws-fields .ws-inline { padding-top: 0; }
}
/* ---------- Phase 5: Time, Analytics, Team, Timeline ---------- */
.pro-upsell { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px; background: linear-gradient(135deg, #E3F3FF, #fff); border: 1px solid #467FF740; border-radius: 10px; }
.pdb .pro-upsell h3 { margin: 0; font-family: "Poppins", sans-serif; font-size: 20px; font-weight: 600; color: var(--pdb-heading); }
.pro-upsell p { margin: 0; max-width: 560px; }
.pro-badge { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 2px 10px; border-radius: 10px; background: var(--pdb-blue); color: #fff; }
.pro-locked { font-size: 13px; }
.pro-locked a { color: var(--pdb-accent); font-weight: 500; }
.pro-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.pdb .pro-card-head h2 { margin: 0; }
.pro-log { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.pro-log label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; color: var(--pdb-heading, #1C244B); }
.pro-log .pro-num input { width: 76px; }
.pro-log .pro-wide { flex: 1 1 200px; }
.pro-log input, .pro-log select { border: 1px solid var(--pdb-border, #C8D5DC); border-radius: 10px; padding: 8px 10px; background: #fff; font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 300; color: var(--pdb-heading, #1C244B); max-width: 100%; }
.pro-log .ws-dialog-msg { flex-basis: 100%; margin: 0; color: #0E9F6E; }
.pro-task-time { margin: 6px 0 10px; padding-left: 18px; font-size: 13px; }
.ws-time-slot { border-top: 1px solid var(--pdb-light, #E3F3FF); padding-top: 14px; }
.pro-person { display: inline-flex; align-items: center; gap: 8px; }
.pro-person img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.pro-person span { display: flex; flex-direction: column; line-height: 1.25; }
.pro-person small { font-size: 12px; color: var(--pdb-text); font-weight: 300; }
.pro-team select { border: 1px solid var(--pdb-border); border-radius: 8px; padding: 6px 8px; font-family: "Poppins", sans-serif; font-size: 13px; background: #fff; color: var(--pdb-heading); }
.pro-help { margin: 12px 0 0; font-size: 13px; line-height: 1.6; }
.pro-team-msg { display: block; margin-top: 8px; color: #0E9F6E; }
.an-bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-items: end; height: 180px; padding-top: 10px; }
.an-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.an-fill { width: 100%; max-width: 34px; min-height: 2px; background: var(--pdb-blue); border-radius: 6px 6px 2px 2px; }
.an-val { font-size: 12px; font-weight: 600; color: var(--pdb-heading); }
.an-lab { font-size: 11px; color: var(--pdb-text); white-space: nowrap; }
.an-line { width: 100%; height: 160px; background: linear-gradient(#E3F3FF55 1px, transparent 1px) 0 0 / 100% 40px; border-bottom: 1px solid var(--pdb-border); }
.an-line-axis { display: flex; justify-content: space-between; font-size: 12px; margin-top: 6px; }
.tl { display: flex; flex-direction: column; gap: 10px; }
.tl-scroll { overflow-x: auto; border: 1px solid var(--pdb-border); border-radius: 10px; background: #fff; }
.tl-inner { position: relative; }
.tl-row { display: flex; min-height: 36px; border-top: 1px solid var(--pdb-light); }
.tl-row:first-child { border-top: 0; }
.tl-label { position: sticky; left: 0; z-index: 2; flex: 0 0 220px; display: flex; align-items: center; padding: 6px 12px; background: #fff; border-right: 1px solid var(--pdb-light); font-size: 13px; overflow: hidden; }
.tl-group .tl-label { font-weight: 600; color: var(--pdb-heading); background: #F5F8FA; }
.tl-group .tl-track { background: #F5F8FA; }
.tl-track { position: relative; flex: 1; }
.tl-head { min-height: 30px; }
.tl-head .tl-track span { position: absolute; top: 7px; font-size: 11px; color: var(--pdb-text); padding-left: 4px; border-left: 1px solid var(--pdb-light); height: 100%; }
.tl-head .tl-track .tl-today { border: 0; }
.tl-today { position: absolute; top: 0; width: 2px; height: 9999px; background: #C0695D; opacity: .55; z-index: 1; pointer-events: none; }
.tl-bar { position: absolute; top: 9px; height: 18px; border-radius: 9px; background: #8FA3B5; cursor: pointer; }
.tl-bar.tl-doing { background: var(--pdb-accent); }
.tl-bar.tl-review { background: #E0A100; }
.tl-bar.tl-done { background: #12CE90; }
.tl-bar.is-late { background: var(--pdb-failure); }
.tl-ms { position: absolute; top: 11px; width: 14px; height: 14px; background: #fff; border: 2px solid #12CE90; transform: rotate(45deg); }
.tl-ms.is-done { background: #12CE90; }
.pdb .tl-task-link, .pdb .tl-task-link:focus { padding: 0; background: transparent; border: 0; box-shadow: none; font-family: "Poppins", sans-serif; font-size: 13px; font-weight: 400; color: var(--pdb-heading); text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pdb .tl-task-link:hover { background: transparent; color: var(--pdb-blue); }
.tl-k-todo { background: #8FA3B5; } .tl-k-doing { background: #467FF7; } .tl-k-review { background: #E0A100; } .tl-k-done { background: #12CE90; } .tl-k-late { background: #C0695D; }
@media (max-width: 767px) {
    .tl-label { flex-basis: 130px; }
    .an-bars { height: 140px; gap: 4px; }
    .an-lab { font-size: 9px; }
}
/* Discuss in chat */
.ws-discuss { display: flex; flex-direction: column; gap: 8px; }
.ws-discuss .pdb-btn { align-self: flex-start; }
.ws-discuss-box textarea { width: 100%; border: 1px solid #C8D5DC; border-radius: 10px; padding: 9px 12px; font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 300; color: #1C244B; resize: vertical; }
.ws-discuss-box textarea:focus { outline: 2px solid #B8E1FF; border-color: #467FF7; }
.ws-discuss-box[hidden] { display: none; }
.ws-discuss-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 6px; }
.ws-discuss-actions .ws-dialog-msg { margin-right: auto; }
.pdb-chat-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pdb-heading); cursor: pointer; }
.pdb-chat-toggle input { width: 16px; height: 16px; accent-color: var(--pdb-blue); }

.pdb-picker-list { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pdb-picker-list label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--pdb-border); border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--pdb-heading); }
.pdb-picker-list label:has(input:checked) { border-color: var(--pdb-blue); background: var(--pdb-light); }
.pdb-picker-list label:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.pdb-picker-list input { width: 16px; height: 16px; accent-color: var(--pdb-blue); }
.pdb-picker-list small { color: var(--pdb-text); font-size: 12px; }
.pdb-picker-count { font-size: 13px; font-weight: 500; color: var(--pdb-blue); }

/* Discussions */
.pdb-chat-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; align-items: start; }
.pdb-channels { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: #F5F8FA; border: 1px solid var(--pdb-border); border-radius: 10px; }
.pdb-channels-title { font-size: 13px; font-weight: 600; color: var(--pdb-heading); }
.pdb-channels ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pdb-channels li { display: flex; align-items: center; gap: 4px; border-radius: 6px; }
.pdb-channels li a { flex: 1; min-width: 0; padding: 6px 8px; border-radius: 6px; color: var(--pdb-text); text-decoration: none; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdb-channels li a:hover { background: #fff; color: var(--pdb-blue); }
.pdb-channels li.is-on a { background: #fff; color: var(--pdb-blue); font-weight: 500; box-shadow: inset 3px 0 0 var(--pdb-blue); }
.pdb-channel-tools { display: none; gap: 6px; padding-right: 6px; }
.pdb-channels li:hover .pdb-channel-tools, .pdb-channels li.is-on .pdb-channel-tools { display: inline-flex; }
.pdb .pdb-channel-add { align-self: flex-start; }
.pdb-channel-open { font-size: 13px; }
@media (max-width: 767px) { .pdb-chat-layout { grid-template-columns: 1fr; } .pdb-channels ul { flex-direction: row; flex-wrap: wrap; } .pdb-channel-tools { display: inline-flex; } }

.ws-modal .pro-danger { background: #C0695D; border-color: #C0695D; }
.ws-modal .pro-danger:hover { background: #A04A3F; border-color: #A04A3F; }
.ws-modal .pro-help { margin: 0; font-size: 13px; color: #324A6D; }
.pro-help a { color: var(--pdb-accent); font-weight: 500; }

/* ---------- Deliverables ---------- */
.dv-review { display: flex; flex-direction: column; gap: 8px; }
.pdb .dv-jump, .pdb .dv-jump:focus { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; width: 100%; padding: 10px 12px; background: #FFF7E6; border: 1px solid #F5D48A; border-radius: 10px; box-shadow: none; text-align: left; font-family: "Poppins", sans-serif; font-size: 14px; color: var(--pdb-heading); cursor: pointer; }
.pdb .dv-jump:hover { background: #FFF1D1; color: var(--pdb-heading); }
.dv-jump span { font-size: 13px; color: var(--pdb-text); }
.dv-member.is-mine { border-color: var(--pdb-accent); }
.dv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 12px; }
.dv-progress { display: flex; align-items: center; gap: 10px; min-width: 240px; font-size: 13px; }
.dv-progress .pdb-bar { flex: 1; margin: 0; min-width: 100px; }
.dv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dv-item { border: 1px solid var(--pdb-border); border-left: 3px solid #8FA3B5; border-radius: 8px; background: #fff; }
.dv-item.dv-submitted, .dv-item.dv-disputed { border-left-color: #E0A100; }
.dv-item.dv-changes { border-left-color: var(--pdb-failure); }
.dv-item.dv-accepted { border-left-color: #12CE90; }
.dv-item.dv-proposed { border-left-style: dashed; border-left-color: var(--pdb-accent); }
.dv-item.dv-declined { opacity: .55; }
.pdb .dv-row, .pdb .dv-row:focus { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; width: 100%; padding: 10px 12px; background: transparent; border: 0; box-shadow: none; text-align: left; font-family: "Poppins", sans-serif; cursor: pointer; color: var(--pdb-heading); }
.pdb .dv-row:hover { background: #F7FAFF; color: var(--pdb-heading); }
.pdb .dv-row:disabled { cursor: default; background: transparent; }
.dv-title { flex: 1 1 200px; font-size: 14px; font-weight: 500; }
.dv-due, .dv-share { font-size: 12px; color: var(--pdb-text); }
.dv-status { font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 10px; background: #F3F6F8; color: var(--pdb-text); }
.dv-submitted .dv-status, .dv-disputed .dv-status { background: #FFF4D6; color: #8A6100; }
.dv-changes .dv-status { background: #C0695D18; color: var(--pdb-failure); }
.dv-accepted .dv-status { background: #12CE9018; color: #0E9F6E; }
.dv-proposed .dv-status { background: var(--pdb-light); color: var(--pdb-blue); }
.dv-body { display: flex; flex-direction: column; gap: 10px; padding: 0 12px 12px; font-size: 14px; }
.dv-body p { margin: 0; }
.dv-meta { font-size: 12px; color: #7A8CA0; }
.dv-history { margin: 0; padding: 10px 12px 10px 28px; background: #F5F8FA; border-radius: 8px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.dv-when { color: #7A8CA0; font-size: 12px; }
.dv-note { margin-top: 2px; padding: 6px 10px; background: #fff; border-radius: 6px; color: var(--pdb-heading); }
.dv-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.dv-links a { color: var(--pdb-blue); font-size: 13px; word-break: break-all; }
.dv-form { display: flex; flex-direction: column; gap: 8px; }
.dv-form[hidden] { display: none; }
.dv-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; color: var(--pdb-heading); }
.dv-form textarea, .dv-form input[type="text"], .dv-form input[type="date"], .dv-form input[type="number"] { border: 1px solid var(--pdb-border); border-radius: 10px; padding: 8px 10px; font-family: "Poppins", sans-serif; font-size: 14px; font-weight: 300; color: var(--pdb-heading); background: #fff; }
.dv-files { margin: 0; padding: 8px 10px; border: 1px solid var(--pdb-light); border-radius: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; max-height: 140px; overflow: auto; }
.dv-files legend { font-size: 13px; font-weight: 500; padding: 0 4px; }
.dv-files label { flex-direction: row; align-items: center; gap: 6px; font-weight: 300; }
.dv-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.dv-actions .ws-dialog-msg { margin-right: auto; }
.dv-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pdb-heading); }
.dv-toggle input { accent-color: var(--pdb-blue); }
.pdb .dv-propose { margin-top: 10px; }
.dv-member .dv-form[data-propose-form] { margin-top: 10px; padding: 12px; border: 1px dashed var(--pdb-accent); border-radius: 10px; }
.pro-deliv { display: block; font-size: 12px; color: #0E9F6E; }
.pdb .cal-chip.cal-deliv, .ws-modal .cal-chip.cal-deliv { background: #F1E9FF; color: #5B3DB5; }
.cal-dot-deliv { background: #8B6CE0; }
/* ---------- My calendar (dashboards page) ---------- */
.mc { display: flex; flex-direction: column; gap: 12px; }
.pdb .mc h2 { margin-bottom: 0; }
.mc-bar select { min-width: 180px; }
.mc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; }
.mc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.mc-agenda { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.mc-group { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--pdb-border); border-radius: 10px; background: #fff; }
.mc-group > strong { font-size: 14px; color: var(--pdb-heading); }
.mc-group.is-late { border-color: #C0695D55; background: #C0695D08; }
.mc-group.is-late > strong { color: var(--pdb-failure); }
.mc-line { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.mc-date { font-size: 12px; font-weight: 500; color: var(--pdb-text); }
.mc-date.is-today { color: var(--pdb-blue); }
.mc-chip { display: block; padding: 3px 8px; border-left: 3px solid var(--mc); border-radius: 4px; background: #F5F8FA; color: var(--pdb-heading); font-size: 12px; line-height: 1.45; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-chip:hover { background: var(--pdb-light); color: var(--pdb-blue); }
.mc-chip.is-late { background: #C0695D12; }
.mc-chip.mc-review { background: #FFF4D6; }
.mc-join { font-size: 12px; font-weight: 500; color: var(--pdb-blue); }
.mc-grid .cal-day { cursor: default; min-height: 96px; }
.mc-progress .mc-proj { display: block; font-weight: 600; color: var(--pdb-heading); text-decoration: none; }
.mc-progress .mc-proj:hover { color: var(--pdb-blue); text-decoration: underline; }
.mc-progress small { font-size: 12px; color: var(--pdb-text); }
.mc-pct { min-width: 150px; font-size: 13px; }
.mc-pct .pdb-bar { margin: 0 0 4px; }
.mc-review { display: block; font-size: 12px; font-weight: 500; color: #8A6100; }
td.is-over { color: var(--pdb-failure); font-weight: 600; }
@media (max-width: 767px) { .mc-line { grid-template-columns: 70px minmax(0, 1fr) auto; } .mc-grid .cal-day { min-height: 50px; } }
/* Private tasks */
.ws-private { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px dashed #467FF7; border-radius: 10px; background: #F7FAFF; font-size: 14px; font-weight: 500; color: #1C244B; cursor: pointer; }
.ws-private input { width: 16px; height: 16px; accent-color: #1D4ED8; }
.ws-assign[hidden] { display: none; }
.ws-lock { font-size: 12px; }

/* ---------- Dashboards page: one card per project ---------- */
.pdc-wrap { display: flex; flex-direction: column; gap: 14px; }
.pdb .pdc-head h2 { margin: 0; }
.pdc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.pdc { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #fff; border: 1px solid var(--pdb-border); border-radius: 12px; text-decoration: none; color: var(--pdb-text); transition: border-color .2s, box-shadow .2s, transform .2s; }
.pdc:hover { border-color: var(--pdb-accent); box-shadow: 0 6px 18px rgba(28, 36, 75, .08); transform: translateY(-2px); color: var(--pdb-text); }
.pdc.needs-you { border-left: 4px solid #E0A100; }
.pdc.is-locked { background: #FAFBFC; }
.pdc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pdc-title { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--pdb-heading); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pdc-role { font-size: 13px; margin-top: -4px; }
.pdc-progress { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.pdc-progress .pdb-bar { margin: 0; }
.pdc-none { color: #7A8CA0; font-style: italic; }
.pdc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pdc-chip { font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px; background: #F3F6F8; color: var(--pdb-text); }
.pdc-review { background: #FFF4D6; color: #8A6100; }
.pdc-late { background: #C0695D18; color: var(--pdb-failure); }
.pdc-task { background: var(--pdb-light); color: var(--pdb-blue); }
.pdc-deliv { background: #F1E9FF; color: #5B3DB5; }
.pdc-ms { background: #12CE9014; color: #0B7A55; }
.pdc-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--pdb-light); font-size: 13px; font-weight: 500; }
.pdc-open { color: var(--pdb-accent); }
.pdc-state { color: #7A8CA0; }
@media (max-width: 767px) { .pdc-grid { grid-template-columns: 1fr; } }
.pdb-upgrade-list { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.pdb-upgrade-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--pdb-border); border-radius: 10px; background: #fff; }
.pdb-upgrade-list li.is-on { border-color: #12CE9060; background: #12CE900A; }
.pdb-upgrade-name { font-size: 14px; font-weight: 500; color: var(--pdb-heading); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pdb-upgrade-name small { font-weight: 300; color: var(--pdb-text); }
.pdb-upgrade-state { font-size: 13px; font-weight: 600; color: #0E9F6E; white-space: nowrap; }
.pdb-upgrade-none { font-size: 12px; color: #7A8CA0; white-space: nowrap; }
.pdb-banner .pdb-btn { flex-shrink: 0; }

/* Project cards: whole card is a link; the Upgrade button sits above it */
.pdc { position: relative; cursor: pointer; }
.pdc-cover { position: absolute; inset: 0; z-index: 1; border-radius: 12px; }
.pdc-cover:focus-visible { outline: 2px solid #467FF7; outline-offset: 2px; }
.pdc .pdc-upgrade { position: relative; z-index: 2; }
.pdc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.pdc-open { margin-left: auto; }
.pdc-upgraded { font-size: 12px; font-weight: 600; color: #0E9F6E; }
.pdc-foot .pdb-msg { flex-basis: 100%; margin: 0; font-size: 12px; }
.pdc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.pdc-upgrades { font-size: 13px; font-weight: 500; color: var(--pdb-blue); }

/* Discussion groups (dashboard Chat tab and Messages) */
.pdb-channels li a { display: flex; align-items: center; gap: 6px; }
.pdb-ch-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdb-ch-unread { flex: none; min-width: 18px; padding: 0 6px; border-radius: 9px; background: var(--pdb-blue); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.pdb-ch-group { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.pdb-ch-group-name { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 22px; padding: 2px 0 2px 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6B7C93; }
.pdb-ch-group-name:hover .pdb-channel-tools { display: inline-flex; }
.pdb-ch-empty { padding: 4px 8px; font-size: 12px; font-style: italic; color: #8A99AD; }
.pdb-ch-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.pdb-ch-form { display: flex; flex-direction: column; gap: 8px; padding: 10px; background: #fff; border: 1px solid var(--pdb-border); border-radius: 8px; font-size: 13px; }
.pdb-ch-form strong { color: var(--pdb-heading); font-weight: 600; }
.pdb-ch-form label { display: flex; flex-direction: column; gap: 4px; }
.pdb-ch-form input, .pdb-ch-form select { width: 100%; padding: 6px 8px; border: 1px solid var(--pdb-border); border-radius: 6px; font: inherit; color: var(--pdb-text); background: #fff; }
.pdb-ch-form-btns { display: flex; align-items: center; gap: 12px; }
.pdb .pdb-ch-save { padding: 6px 14px; border: 0; border-radius: 6px; background: var(--pdb-blue); color: #fff; font: inherit; font-weight: 500; cursor: pointer; }
/* ---------- Messages page (Messages Hub widget) ---------- */
.pdb.mh { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 20px; align-items: start; }
.mh-side { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #F5F8FA; border: 1px solid var(--pdb-border); border-radius: 12px; max-height: calc(100vh - 140px); overflow-y: auto; position: sticky; top: 110px; }
.mh-side-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mh-side-head .pdb-link { font-size: 12px; }
.mh-section-title { margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6B7C93; }
.mh-side-head .mh-section-title { margin-top: 0; }
.mh-project { background: #fff; border: 1px solid var(--pdb-border); border-radius: 10px; }
.mh-project > summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 500; color: var(--pdb-heading); }
.mh-project > summary::-webkit-details-marker { display: none; }
.mh-project > summary::before { content: '\203A'; flex: none; width: 10px; color: #6B7C93; font-size: 18px; line-height: 1; transition: transform .15s; }
.mh-project[open] > summary { border-bottom: 1px solid #E6EDF2; }
.mh-project[open] > summary::before { transform: rotate(90deg); }
.mh-project-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdb-channels.mh-channels { padding: 8px; background: transparent; border: 0; border-radius: 0; }
.mh-channels ul { flex-direction: column; }
.mh-channels li a:hover, .mh-channels li.is-on a { background: #EEF4FF; }
.mh-dash { display: block; padding: 0 12px 10px 16px; font-size: 12px; }
.mh-dm { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mh-dm a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--pdb-text); text-decoration: none; font-size: 14px; }
.mh-dm a:hover, .mh-dm li.is-on a { background: #fff; color: var(--pdb-blue); }
.mh-dm li.is-on a { box-shadow: inset 3px 0 0 var(--pdb-blue); font-weight: 500; }
.mh-dm img { width: 28px; height: 28px; border-radius: 50%; flex: none; object-fit: cover; }
.mh-none { margin: 0; font-size: 13px; color: #6B7C93; }
.mh-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mh-main-head { display: flex; align-items: center; gap: 12px; }
.mh-kicker { display: block; font-size: 12px; color: #6B7C93; }
.mh-main-head h3 { margin: 0; font-size: 20px; font-weight: 600; color: var(--pdb-heading); }
.mh-back { display: none; }
.mh-box { min-height: 560px; }
.pdb.mh-classic { gap: 12px; }
@media (max-width: 900px) {
 .pdb.mh { grid-template-columns: 1fr; }
 .mh-side { position: static; max-height: none; }
 .pdb.mh.is-reading .mh-side { display: none; }
 .pdb.mh:not(.is-reading) .mh-main { display: none; }
 .mh-back { display: inline-block; font-size: 13px; }
 .mh-main-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}
/* Project chats with fewer than 3 people are shown as groups; their member count isn't real */
.pdb-chat-box.is-small-team .bm-thread-header__members { display: none; }

/* ---------- Project panel beside a chat (dashboard Chat tab and Messages) ---------- */
.pdb-chat-layout.has-tools { grid-template-columns: 210px minmax(0, 1fr) 250px; }
.mh-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.mh-body.has-tools { grid-template-columns: minmax(0, 1fr) 250px; }
.ct { display: flex; flex-direction: column; gap: 16px; padding: 14px; background: #F5F8FA; border: 1px solid var(--pdb-border); border-radius: 10px; font-size: 13px; }
.ct-sec h4 { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6B7C93; }
.ct-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ct-list li { display: flex; align-items: flex-start; gap: 8px; padding: 8px; background: #fff; border: 1px solid #E6EDF2; border-radius: 8px; }
.ct-ico { flex: none; width: 18px; line-height: 20px; text-align: center; }
.ct-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ct-title { color: var(--pdb-heading); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
a.ct-title:hover { color: var(--pdb-blue); }
.ct-sub { font-size: 12px; color: #6B7C93; }
.ct-sub.is-over { color: var(--pdb-failure); }
.ct-acts { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; }
.ct-acts:empty { display: none; }
.ct .ct-acts .pdb-link, .ct .ct-acts .ws-linkbtn { font-size: 12px; }
.ct-none { margin: 0; color: #6B7C93; }
.ct-more { display: inline-block; margin-top: 8px; font-size: 12px; }
.ct-add { display: flex; gap: 8px; }
.ct-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 6px; }
.pdb-ch-form label.ct-check { flex-direction: row; align-items: center; gap: 6px; }
.pdb-ch-form .ct-check input { width: auto; }
.ct-dialog .ws-dialog-head strong { font-size: 16px; color: var(--pdb-heading); }
@media (max-width: 1199px) {
 .pdb-chat-layout.has-tools { grid-template-columns: 210px minmax(0, 1fr); }
 .pdb-chat-layout.has-tools .ct { grid-column: 1 / -1; }
 .mh-body.has-tools { grid-template-columns: minmax(0, 1fr); }
 .ct { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 767px) { .pdb-chat-layout.has-tools { grid-template-columns: 1fr; } }
/* ---------- Guest links (Team tab) ---------- */
.gl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gl-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px; border: 1px solid var(--pdb-border); border-radius: 10px; background: #fff; }
.gl-list li.is-expired { background: #F5F8FA; opacity: .8; }
.gl-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gl-main strong { color: var(--pdb-heading); font-weight: 600; }
.gl-sub { font-size: 13px; color: #6B7C93; }
.gl-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.gl-empty { margin: 0; color: #6B7C93; }
.gl-form { margin-bottom: 14px; padding: 14px; border: 1px solid var(--pdb-border); border-radius: 10px; background: #F5F8FA; }
.gl-sections { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; padding: 0; border: 0; }
.gl-sections legend { width: 100%; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--pdb-heading); }
.gl-sections label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }

/* ---------- Guest project view (/project-view/) ---------- */
.pdb.gv { max-width: 1000px; margin: 0 auto; }
.gv-msg { text-align: center; }
.gv-msg h2 { margin: 0 0 8px; color: var(--pdb-heading); font-size: 22px; font-weight: 600; }
.gv-head { display: flex; flex-direction: column; gap: 8px; }
.gv-kicker { font-size: 13px; color: #6B7C93; }
.gv-head h1 { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 600; color: var(--pdb-heading); }
.gv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; }
.gv-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.gv-nav a { padding: 4px 12px; border: 1px solid var(--pdb-border); border-radius: 999px; font-size: 13px; color: var(--pdb-text); text-decoration: none; }
.gv-nav a:hover { border-color: var(--pdb-blue); color: var(--pdb-blue); }
.gv .pdb-card h2 { margin: 0 0 14px; }
.gv-sub { display: block; font-size: 13px; color: #6B7C93; }
.gv-ms { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.gv-ms li { display: flex; flex-direction: column; gap: 6px; }
.gv-ms-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.gv-ms-head strong { color: var(--pdb-heading); font-weight: 500; }
.gv-ms-head .gv-sub { margin-left: auto; }
.gv-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gv-col { padding: 10px; background: #F5F8FA; border-radius: 10px; }
.gv-col h3 { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--pdb-heading); }
.gv-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gv-col li { padding: 8px 10px; background: #fff; border: 1px solid #E6EDF2; border-radius: 8px; font-size: 14px; color: var(--pdb-heading); overflow-wrap: anywhere; }
.gv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.gv-list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid #E6EDF2; }
.gv-list li:last-child { border-bottom: 0; }
.gv-list li > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.gv-list strong { color: var(--pdb-heading); font-weight: 500; }
.gv-date { display: flex; flex-direction: column; align-items: center; flex: none; width: 46px; padding: 4px 0; border-radius: 8px; background: var(--pdb-light); color: var(--pdb-blue); font-size: 11px; text-transform: uppercase; }
.gv-date strong { font-size: 18px; line-height: 1.1; color: var(--pdb-blue); }
.gv-ext { flex: none; width: 46px; padding: 6px 0; border-radius: 8px; background: #F5F8FA; font-size: 11px; font-weight: 600; text-align: center; color: #6B7C93; }
.gv-docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
.gv-doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.gv-doc-list a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--pdb-text); text-decoration: none; font-size: 14px; }
.gv-doc-list li.is-child a { padding-left: 24px; }
.gv-doc-list li.is-on a, .gv-doc-list a:hover { background: var(--pdb-light); color: var(--pdb-blue); }
.gv-doc { min-width: 0; overflow-wrap: anywhere; }
.gv-doc h3 { margin-top: 0; color: var(--pdb-heading); }
.gv-foot { margin: 0; text-align: center; font-size: 13px; color: #6B7C93; }
@media (max-width: 767px) {
 .gv-board { grid-template-columns: 1fr; }
 .gv-docs { grid-template-columns: 1fr; }
 .gv-head h1 { font-size: 24px; }
}
/* ---------- Storage meter in the plan bar ---------- */
.pdb-plan-storage { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; max-width: 420px; }
.pdb-plan-storage .pdb-bar { flex: 1; min-width: 80px; margin: 0; background: #fff; }
.pdb-plan-storage.is-full .pdb-bar span { background: var(--pdb-failure); }

/* ---------- Tabs wrap onto more lines instead of running off narrow screens ---------- */
.pdb-tabs { flex-wrap: wrap; overflow: visible; }
@media (max-width: 1024px) {
 .pdb-tabs { gap: 6px; padding-bottom: 12px; }
 .pdb .pdb-tabs button, .pdb .pdb-tabs button:focus { padding: 7px 14px; margin: 0; border: 1px solid var(--pdb-border); border-radius: 999px; font-size: 14px; }
 .pdb .pdb-tabs button.is-active { background: var(--pdb-light); border-color: var(--pdb-blue); }
}

/* ---------- Tasks linked to deliverables ---------- */
.ws-deliv-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 1px 8px; border-radius: 10px; background: #F5F8FA; border: 1px solid #E6EDF2; font-size: 12px; color: var(--pdb-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-tasks-n { font-size: 12px; color: #6B7C93; white-space: nowrap; }
.dv-tasks-n.is-done { color: #0E9F6E; }
.dv-tasks { margin: 0 0 12px; font-size: 14px; }
.dv-tasks > strong { display: block; margin-bottom: 4px; color: var(--pdb-heading); font-weight: 500; }
.dv-tasks ul { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.dv-tasks li.is-done .ws-linkbtn { color: #0E9F6E; }
.dv-tasks .pdb-none { margin: 0 0 6px; }

/* Proposed change to a deliverable */
.dv-change { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #F3D9A4; border-radius: 8px; background: #FFF7E6; font-size: 14px; }
.dv-change p { margin: 0 0 6px; }
.dv-change-open { margin: 0 0 10px; }

/* Team tab: profile links and agreements; head link; board on medium screens */
.pro-person-link { color: var(--pdb-heading); font-weight: 500; text-decoration: none; }
.pro-person-link:hover { color: var(--pdb-blue); text-decoration: underline; }
.pro-agreement-dialog { max-width: 720px; }
.pro-agreement-text { max-height: 60vh; overflow: auto; padding: 12px 14px; border: 1px solid var(--pdb-border); border-radius: 10px; background: #F5F8FA; font-size: 14px; line-height: 1.6; white-space: normal; }
.pdb-head-link { margin-left: auto; }
@media (min-width: 768px) and (max-width: 1199px) {
 .ws-board { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
}

/* ---------- Files: delete from the list ---------- */
.fl-actions .fl-del:hover, .fl-actions .fl-del:focus-visible { color: var(--pdb-failure); }

/* Work delivered: projects where the member's part is done */
.pdc-delivered-note { margin: 0 0 10px; font-size: 14px; color: #6B7C93; }
.pdc-dlist { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pdc-dlist li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 16px; border: 1px solid var(--pdb-border); border-radius: 10px; background: #FAFBFD; font-size: 14px; }
.pdc-dlist a { font-weight: 500; color: var(--pdb-heading); text-decoration: none; }
.pdc-dlist a:hover { color: var(--pdb-blue); text-decoration: underline; }

/* Deliverable offered after the member's work was delivered */
.dv-offer { margin: 10px 0 0; padding: 10px 12px; border: 1px solid #F5B50040; border-radius: 10px; background: #F5B5000D; font-size: 14px; }
.dv-offer p { margin: 0 0 6px; }
.dv-offer p:last-child { margin: 0; }
.dv-offer-agr { color: #4A5D78; }
