/* Player timeline — a read-only shared modal over the activity rows.
   Time leads each row, the day is cut into Morning / Training / Afternoon,
   and the state tokens are the Daily Board's own family so the modal and
   the board teach each other. Module rules only; the overlay and modal
   shells are the shared classes. */

/* The player name on the board is the door to the timeline: a text button
   that reads as the plain name it replaces. */
.db-player-link {
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.db-player-link:hover {
    color: var(--accent);
}

.pt-modal {
    display: flex;
    flex-direction: column;
    max-width: 720px;
    overflow: hidden;
}

.pt-head {
    flex: 0 0 auto;
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--ink-line);
}

.pt-head-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pt-name {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 700;
}

.pt-pos {
    color: var(--text-tertiary);
    font-size: 0.65rem;
    font-weight: 650;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.pt-avail {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.pt-head-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.pt-head-sub {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.76rem;
}

.pt-head-sub b {
    color: var(--text-primary);
    font-weight: 700;
}

.pt-open b {
    color: var(--accent);
}

.pt-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 6px 20px 18px;
    overflow-y: auto;
}

.pt-day-head {
    margin: 14px 0 0;
    color: var(--text-tertiary);
    font-size: 0.6rem;
    font-weight: 750;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

/* The parts of the day. The rule after the heading carries the eye across
   to the entries under it. */
.pt-part {
    margin-top: 14px;
}

.pt-part-hd {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 6px;
    color: var(--text-tertiary);
    font-size: 0.62rem;
    font-weight: 650;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.pt-part-hd::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ink-line);
}

/* Time leads: the row's first column, and the only one that is bold. */
.pt-entry {
    display: grid;
    grid-template-columns: 58px 15px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 11px 0;
}

.pt-entry + .pt-entry {
    border-top: 1px solid var(--ink-line);
}

.pt-entry:hover {
    background: var(--ink-wash);
}

.pt-t {
    padding-top: 1px;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pt-t small {
    display: block;
    margin-top: 2px;
    color: var(--text-tertiary);
    font-size: 0.6rem;
    font-weight: 650;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.pt-mark {
    margin-top: 3px;
}

.pt-main {
    min-width: 0;
}

.pt-what {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.pt-task {
    color: var(--text-primary);
    font-size: 0.86rem;
    font-weight: 650;
}

.pt-area {
    color: var(--text-tertiary);
    font-size: 0.62rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pt-state {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 0.75rem;
    white-space: nowrap;
}

.pt-state-wait {
    color: var(--accent);
    font-weight: 650;
}

/* Closed without work, and the draft that is not yet the day's plan. */
.pt-state-void {
    color: var(--text-tertiary);
}

.pt-line {
    display: block;
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.5;
}

.pt-line em {
    color: var(--text-tertiary);
    font-style: normal;
}

/* Nobody named is the gap the reader is looking for. */
.pt-nobody {
    color: var(--accent);
    font-weight: 650;
}

/* The done token is filled: a timeline row states its time in the first
   column, so the board's time pill would say it twice. */
.pt-tok-done {
    border: 0;
    background: var(--accent);
}

/* The team session is context, not an activity record, so its token is an
   outline in the neutral line colour and its state says so. */
.pt-tok-session {
    border: 1.5px solid var(--ink-line-strong);
    background: transparent;
}

.pt-entry-context .pt-task {
    color: var(--text-secondary);
}

/* An activity nobody has tied to a block: named, with why it matters. */
.pt-unsched {
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid var(--ink-line);
    border-radius: var(--radius-md);
    background: var(--surface-raised);
}

.pt-unsched-hd {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
}

.pt-unsched-hd h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 650;
}

.pt-unsched-hd span {
    color: var(--text-tertiary);
    font-size: 0.71rem;
}

.pt-unsched .pt-entry:first-of-type {
    margin-top: 8px;
    border-top: 1px solid var(--ink-line);
}

.pt-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    padding: 12px 20px;
    border-top: 1px solid var(--ink-line);
    background: var(--surface-raised);
}

.pt-foot-note {
    color: var(--text-tertiary);
    font-size: 0.72rem;
}

.pt-none {
    margin: 4px 0;
    color: var(--text-tertiary);
    font-size: 0.74rem;
}
