.team-timeline {
    --tl-ink: #202c3c;
    --tl-muted: #5f6d80;
    --tl-line: #d5deea;
    --tl-paper: #fff;
    --tl-soft: #f3f6f9;
    --tl-tray: #edf1f5;
    --tl-accent: #3448c5;
    --tl-accent-soft: #e8eeff;
    --tl-violet: #5940a4;
    --tl-violet-soft: #eee9fb;
    --tl-blue: #285b83;
    --tl-blue-soft: #e7f1fb;
    --tl-activity: #286043;
    --tl-activity-soft: #e8f4ec;
    --tl-popover-shadow: 0 10px 30px #243b5729;
    max-width: 1000px;
    margin: 0 auto;
    color: var(--tl-ink);
    font-family: Inter, system-ui, sans-serif;
}

.team-timeline [hidden] { display: none !important; }

.team-timeline :is(button, a, summary, .form-check-input):focus-visible {
    outline: 2px solid var(--tl-accent);
    outline-offset: 3px;
}

.team-timeline .btn {
    border: 0 !important;
    border-radius: 7px;
    font-family: inherit !important;
    text-transform: none !important;
    letter-spacing: 0;
    box-shadow: none !important;
}

.team-timeline .btn-outline-secondary {
    --bs-btn-bg: #e7edf4;
    --app-btn-hover: #dde6f0;
    --app-btn-active: #d3dfec;
    --app-btn-ink: #415571;
}

.tl-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .7rem 1.5rem;
    margin-bottom: 1.15rem;
    padding: .4rem 0 .55rem;
}

.tl-hero-copy {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.tl-hero h1 {
    margin: 0;
    color: var(--tl-ink);
    font: 650 clamp(1.65rem, 3vw, 1.875rem)/1.2 Inter, system-ui, sans-serif;
    letter-spacing: -.8px;
}

.tl-hero-mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(145deg, #3e38ad, #3d66db 75%, #437ee6);
    font-size: 1.3rem;
}

.tl-hero-trace {
    position: absolute;
    z-index: -1;
    inset: 0 9.5rem 0 25%;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(ellipse at 71% 55%, #b2bdf64f, transparent 60%);
    mask-image: linear-gradient(90deg, transparent, black 23% 86%, transparent);
}

.tl-hero-trace::before {
    content: "";
    position: absolute;
    top: 65%;
    left: 0;
    right: 0;
    height: 1px;
    transform: rotate(-3deg);
    background: linear-gradient(90deg, #8bb3e0, #7179d5 60%, #af93da);
}

.tl-hero-trace i {
    position: absolute;
    width: .34rem;
    height: .34rem;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #626ed5;
    box-shadow: 0 0 0 .22rem #818cdb28;
}

.tl-hero-trace i:nth-of-type(1) { left: 26%; top: 76%; }
.tl-hero-trace i:nth-of-type(2) { left: 51%; top: 65%; }
.tl-hero-trace i:nth-of-type(3) { left: 76%; top: 54%; }

.tl-hero-action {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .8rem;
    border: 0;
    border-radius: 7px;
    background: #e7edf4;
    color: #415571;
    font-size: .84rem;
    font-weight: 600;
}

.tl-hero-action:hover { background: #dbe5f0; color: var(--tl-ink); }

.tl-panel {
    border-radius: 10px;
    background: var(--tl-paper);
}

.tl-composer { padding: clamp(.9rem, 2.5vw, 1.35rem); }

.tl-composer-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .85rem;
}

.tl-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 8px;
    background: var(--tl-accent-soft);
    color: var(--tl-accent);
    font-weight: 700;
    font-size: .75rem;
}

.tl-avatar--your { width: 2.55rem; height: 2.55rem; }
.tl-avatar--comment { width: 1.85rem; height: 1.85rem; border-radius: 8px; font-size: .66rem; }
.tl-composer-person { flex: 1; min-width: 0; }
.tl-composer-person h2 { margin: 0; font: 650 1.05rem/1.25 Inter, system-ui, sans-serif; }
.tl-composer-person span { color: var(--tl-muted); font-size: .76rem; overflow-wrap: anywhere; }

.tl-compose-kinds {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .2rem;
    margin: 0;
    padding: .25rem;
    border: 0;
    border-radius: 9px;
    background: var(--tl-tray);
}

.tl-compose-kinds label { position: relative; }
.tl-compose-kinds span {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .35rem .55rem;
    border-radius: 6px;
    color: var(--tl-muted);
    cursor: pointer;
    font-size: .78rem;
    font-weight: 600;
}

.tl-compose-kinds input:checked + span {
    color: var(--tl-accent);
    background: var(--tl-paper);
    box-shadow: 0 1px 4px #243b5714;
}

.tl-compose-kinds input:focus-visible + span { outline: 2px solid var(--tl-accent); }
.tl-compose-kinds input[value="announcement"]:checked + span { color: var(--tl-violet); }
.tl-title-field { margin-bottom: .7rem; }
.tl-broadcast {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-bottom: .7rem;
    padding: .6rem .75rem;
    border-radius: 7px;
    background: var(--tl-violet-soft);
    color: var(--tl-violet);
    cursor: pointer;
    font-size: .86rem;
}
.tl-broadcast small { display: block; color: #574e72; }
.tl-broadcast .form-check-input { margin-right: 0 !important; }

.tl-poll-composer { margin: .75rem 1rem; padding: .75rem; border: 1px solid var(--tl-line); border-radius: 8px; }
.tl-poll-composer legend { float: none; width: auto; margin-bottom: .25rem; font-size: .9rem; font-weight: 650; }
.tl-poll-composer p, .tl-poll-summary { color: var(--tl-muted); font-size: .8rem; }
.tl-poll-option-row { display: flex; gap: .5rem; align-items: end; margin-bottom: .5rem; }
.tl-poll-option-row label { flex: 1; }
.tl-poll { margin-top: 1rem; }
.tl-report { margin-top: .85rem; padding: .75rem; border: 1px solid var(--tl-line); border-radius: 8px; }
.tl-report figure { margin: 0 0 .75rem; }
.tl-report img { display: block; max-width: 100%; height: auto; }
.tl-report-caption { color: var(--tl-muted); font-size: .85rem; margin: .4rem 0; }
.tl-report summary { cursor: pointer; font-weight: 600; }
.tl-report-scroll { overflow: auto; max-height: 24rem; }
.tl-report-scroll :is(th, td) { min-width: 7rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.tl-poll fieldset { display: grid; gap: .5rem; border: 0; padding: 0; margin: 0 0 .65rem; }
.tl-poll-choice { position: relative; isolation: isolate; display: flex; align-items: center; gap: .6rem; padding: .7rem; border: 1px solid var(--tl-line); border-radius: 6px; overflow: hidden; cursor: pointer; }
.tl-poll-label { flex: 1; overflow-wrap: anywhere; min-width: 0; }
.tl-poll-result { font-size: .8rem; white-space: nowrap; }
.tl-poll-bar { position: absolute; z-index: -1; inset: 0 auto 0 0; background: var(--tl-blue-soft); }
.tl-kind-tag--poll { color: var(--tl-blue); background: var(--tl-blue-soft); }
.tl-compose-kinds { flex-wrap: wrap; }
.tl-filters { flex-wrap: wrap; }
.team-timeline .form-check-input {
    flex-shrink: 0;
    border-color: #78859b;
}
.team-timeline .form-check-input:checked {
    border-color: var(--tl-accent);
    background-color: var(--tl-accent);
}

.tl-input-label {
    display: grid;
    gap: .3rem;
    min-width: 0;
    color: var(--tl-ink);
    font-size: .8rem;
    font-weight: 600;
}

.tl-input-label :is(input, select) { font-size: .875rem; font-weight: 400; }
.team-timeline :is(.form-control, .form-select) {
    border: 0 !important;
    border-radius: 7px !important;
    background-color: var(--tl-soft);
    color: var(--tl-ink);
}
.team-timeline :is(.form-control, .form-select):focus {
    background-color: var(--tl-soft);
    outline: 2px solid var(--tl-accent);
    outline-offset: 1px;
    box-shadow: none !important;
}
.team-timeline .form-control::placeholder { color: var(--tl-muted); font-style: normal; }
.tl-editor-input { position: relative; }

.tl-editor textarea {
    display: block;
    min-height: 4.75rem;
    padding: .72rem .85rem !important;
    color: var(--tl-ink);
    font-size: .92rem;
    line-height: 1.5;
    resize: vertical;
}

.tl-thread textarea { min-height: 3.1rem; }

.tl-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .65rem;
}

.tl-editor-tools, .tl-chip-row, .tl-reaction-row, .tl-entry-actions, .tl-comment-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
}

.tl-tool, .tl-icon-button, .tl-filters button, .tl-reaction, .tl-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 2rem;
    padding: .28rem .55rem;
    border: 0;
    border-radius: 7px;
    color: var(--tl-muted);
    background: transparent;
    font-size: .8rem;
    font-weight: 600;
}

.tl-tool:hover, .tl-icon-button:hover, .tl-action:hover {
    background: var(--tl-tray);
    color: var(--tl-accent);
}

.tl-tool i { font-size: 1rem; }
.tl-publish { min-width: 5.75rem; margin-left: auto; font-size: .86rem; font-weight: 650; }
.tl-chip-row { margin-top: .65rem; }

.tl-chip {
    display: inline-flex;
    align-items: baseline;
    min-width: 0;
    gap: .35rem;
    padding: .24rem .5rem;
    border-radius: 6px;
    color: var(--tl-blue);
    background: var(--tl-blue-soft);
    overflow-wrap: anywhere;
    font-size: .76rem;
    font-weight: 600;
    text-decoration: none;
}

a.tl-chip:hover { color: #193f60; background: #d9eaf9; text-decoration: underline; }
.tl-chip .tl-icon-button { min-height: unset; padding: 0 .1rem; font-size: .69rem; }

.tl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem 1.25rem;
    margin: 1rem 0 .95rem;
}

.tl-filters button {
    min-height: 2.6rem;
    padding: .55rem .1rem;
    border-radius: 0;
    font-size: .88rem;
    font-weight: 550;
}
.tl-filters button:hover { color: var(--tl-accent); }
.tl-filters button[aria-pressed="true"] {
    color: var(--tl-accent);
    box-shadow: inset 0 -3px var(--tl-accent);
    font-weight: 650;
}

.tl-back {
    display: inline-flex;
    gap: .35rem;
    margin: 0 0 1rem;
    color: var(--tl-accent);
    font-size: .86rem;
    font-weight: 650;
}

.tl-stream { --tl-rail-axis: .54rem; position: relative; }
.tl-day { margin: 0; padding-bottom: .9rem; }
.tl-day:last-child { padding-bottom: 0; }

.tl-day-heading {
    display: flex;
    align-items: center;
    gap: .66rem;
    margin: 0 0 .55rem;
    color: var(--tl-muted);
    font-size: .74rem;
    font-weight: 700;
}

.tl-day-heading::before {
    content: "";
    flex: 0 0 1.15rem;
    height: 1px;
    background: var(--tl-line);
}

.tl-day-items {
    display: grid;
    position: relative;
    margin-left: var(--tl-rail-axis);
    padding-left: 1.15rem;
    gap: .8rem;
    background: linear-gradient(var(--tl-line), var(--tl-line)) left top / 1px 100% no-repeat;
}

.tl-entry { position: relative; min-width: 0; scroll-margin-top: 5rem; }
.tl-entry:target, .tl-comment:target { outline: 2px solid var(--tl-accent); outline-offset: 2px; }

.tl-entry::before {
    content: "";
    position: absolute;
    top: 1.7rem;
    left: -1.15rem;
    width: .45rem;
    height: .45rem;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #6b7ed4;
}

.tl-entry--announcement {
    background: radial-gradient(ellipse at top left, #f1edfd, transparent 65%) var(--tl-paper);
}
.tl-entry--announcement::before { background: #8255c8; }
.tl-entry--activity::before { background: #4e8865; }

.tl-entry-heading {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .8rem .95rem 0;
}

.tl-avatar--announcement { color: var(--tl-violet); background: var(--tl-violet-soft); }
.tl-avatar--activity { color: var(--tl-activity); background: var(--tl-activity-soft); }
.tl-entry-heading-content { flex: 1; min-width: 0; display: grid; gap: .07rem; }
.tl-entry-author { overflow-wrap: anywhere; color: var(--tl-ink); font-size: .86rem; line-height: 1.25; }
.tl-entry-meta { color: var(--tl-muted); font-size: .73rem; }
.tl-entry-time { text-decoration: none; color: inherit; }
.tl-entry-time:hover { color: var(--tl-accent); text-decoration: underline; }

.tl-kind-tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    align-self: flex-start;
    padding: .22rem .45rem;
    border-radius: 5px;
    background: var(--tl-violet-soft);
    color: var(--tl-violet);
    font-size: .68rem;
    font-weight: 700;
}

.tl-kind-tag--activity { color: var(--tl-activity); background: var(--tl-activity-soft); }
.tl-entry-content { padding: .68rem .95rem .72rem; }
.tl-entry-content h3 { margin: 0 0 .3rem; overflow-wrap: anywhere; font: 650 1.125rem/1.35 Inter, system-ui, sans-serif; }
.tl-event-link { color: var(--tl-blue); text-decoration: underline; text-decoration-color: #a8c6d5; text-underline-offset: .13em; }
.tl-event-link:hover { color: var(--tl-blue); text-decoration-color: currentColor; }
.tl-entry-copy { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: .91rem; line-height: 1.55; }
.tl-mention { color: var(--tl-accent); background: var(--tl-accent-soft); border-radius: 3px; font-weight: 600; }

.tl-entry-actions {
    justify-content: space-between;
    padding: .15rem .6rem .55rem;
}

.tl-reaction-row { min-width: 0; }
.tl-reaction { background: var(--tl-tray); font-size: .75rem; min-height: 1.8rem; }
.tl-reaction[aria-pressed="true"], .tl-reaction:hover:not(:disabled) { background: var(--tl-accent-soft); color: var(--tl-accent); }
.tl-reaction:disabled { opacity: 1; cursor: default; }
.tl-reaction-emoji { font-size: 1rem; line-height: 1; }
.tl-action[aria-expanded="true"] { background: var(--tl-accent-soft); color: var(--tl-accent); }
.tl-permalink { margin-left: auto; font-size: 1rem; color: var(--tl-muted); text-decoration: none; }

.tl-reaction-menu { position: relative; }
.tl-reaction-menu summary { list-style: none; cursor: pointer; }
.tl-reaction-menu summary::-webkit-details-marker { display: none; }
.tl-reaction-menu > div {
    position: absolute;
    z-index: 5;
    top: calc(100% + .3rem);
    left: 0;
    display: grid;
    gap: .15rem;
    width: max-content;
    max-width: min(15rem, calc(100vw - 5rem));
    max-height: 15rem;
    overflow-y: auto;
    padding: .35rem;
    border-radius: 9px;
    background: var(--tl-paper);
    box-shadow: var(--tl-popover-shadow);
}

.tl-reaction-menu button { justify-content: flex-start; text-align: left; overflow-wrap: anywhere; }

.tl-thread { padding: .8rem .95rem; background: var(--tl-soft); border-radius: 0 0 10px 10px; }
.team-timeline .tl-thread textarea { background-color: var(--tl-paper); }
.tl-thread-status { margin: 0; color: var(--tl-muted); font-size: .8rem; }
.tl-thread-status:not(:empty) { margin-bottom: .65rem; }
.tl-comment-list { display: grid; gap: .7rem; }
.tl-comment-list:not(:empty) { margin-bottom: .85rem; }
.tl-comment {
    display: flex;
    gap: .5rem;
    padding: .65rem;
    border-radius: 8px;
    background: var(--tl-paper);
    scroll-margin-top: 5rem;
}

.tl-comment-content { min-width: 0; }
.tl-comment-info { margin: 0 0 .14rem; gap: .4rem; font-size: .8rem; }
.tl-comment-info time { color: var(--tl-muted); font-size: .7rem; }
.tl-comment .tl-entry-copy { font-size: .84rem; }
.tl-earlier-comments { margin-bottom: .45rem; }
.tl-feed-state { text-align: center; padding: 1.75rem 1rem; }
.tl-state-icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 10px; background: var(--tl-accent-soft); color: var(--tl-accent); font-size: 1.3rem; }
.tl-state-title { margin: .6rem 0 0; color: var(--tl-muted); font-size: .91rem; }
.tl-feed-state button { margin-top: .65rem; }
.tl-load-more { text-align: center; margin-top: .85rem; }
.tl-inline-error { margin: .5rem 0 0; color: #a12a31; font-size: .8rem; overflow-wrap: anywhere; }
.tl-reaction-error { margin: 0 0 .65rem .95rem; }

.tl-mention-picker {
    position: absolute;
    z-index: 5;
    top: calc(100% + .3rem);
    left: 0;
    width: min(23rem, 100%);
    max-height: 15rem;
    overflow-y: auto;
    padding: .35rem;
    border-radius: 9px;
    background: var(--tl-paper);
    box-shadow: var(--tl-popover-shadow);
}

.tl-picker-option {
    display: flex;
    gap: .55rem;
    align-items: center;
    width: 100%;
    padding: .45rem .5rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--tl-ink);
    text-align: left;
    font-size: .85rem;
}

.tl-picker-option[aria-selected="true"], .tl-picker-option:hover { background: var(--tl-blue-soft); }
.tl-picker-option:disabled { opacity: .55; }
.tl-picker-option strong, .tl-picker-option small { display: block; overflow-wrap: anywhere; }
.tl-picker-option small { color: var(--tl-muted); }
.tl-picker-message { margin: 0; padding: .4rem .45rem; color: var(--tl-muted); font-size: .8rem; }

.tl-dialog {
    width: min(35rem, calc(100vw - 1.25rem));
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: var(--tl-paper);
    color: var(--tl-ink);
    box-shadow: 0 18px 60px #16223845;
}

.tl-dialog::backdrop { background: #16223870; }
.tl-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .75rem .95rem; background: var(--tl-soft); }
.tl-dialog h2 { margin: 0; font: 650 1.18rem/1.25 Inter, system-ui, sans-serif; }
.tl-dialog h2 i { color: var(--tl-accent); }
.tl-dialog-body { padding: .9rem .95rem 1rem; }
.tl-record-fields { display: grid; grid-template-columns: minmax(9rem, 2fr) minmax(0, 3fr); gap: .6rem; }
.tl-record-results { display: grid; gap: .25rem; max-height: 19rem; overflow-y: auto; }
.tl-record-results .tl-picker-option i { color: var(--tl-blue); font-size: 1rem; }
.tl-picker-status { margin: .5rem 0; min-height: 1.1em; color: var(--tl-muted); font-size: .8rem; }
.tl-picker-status.is-error { color: #a12a31; }
.tl-reaction-settings { display: grid; gap: .55rem; }
.tl-reaction-settings-row { display: grid; grid-template-columns: minmax(3rem, 4rem) minmax(5rem, 1fr) auto auto; gap: .35rem .55rem; align-items: end; }
.tl-reaction-settings-row .btn { min-height: 2.1rem; font-size: .8rem; }
.tl-reaction-settings-row .form-control { min-width: 0; padding-inline: .5rem; }
.tl-emoji-input { text-align: center; }
.tl-reaction-enabled { display: flex; align-items: center; gap: .3rem; min-height: 2.1rem; margin: 0; color: var(--tl-muted); font-size: .76rem; cursor: pointer; }
.tl-new-reaction { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--tl-line); }
.tl-new-reaction h3 { margin: 0 0 .45rem; font: 650 1rem/1.25 Inter, system-ui, sans-serif; }
.tl-new-reaction .tl-reaction-settings-row { grid-template-columns: minmax(3rem, 4rem) minmax(5rem, 1fr) auto; }

@media (max-width: 575px) {
    .tl-hero { margin-bottom: .8rem; }
    .tl-hero-copy { gap: .65rem; }
    .tl-hero-trace { display: none; }
    .tl-composer-head { flex-wrap: wrap; }
    .tl-compose-kinds { width: 100%; }
    .tl-compose-kinds label { flex: 1; }
    .tl-compose-kinds span { display: flex; justify-content: center; }
    .tl-filters { gap: .25rem .5rem; justify-content: space-between; }
    .tl-filters button { padding: .45rem 0; font-size: .77rem; }
    .tl-filters button i { display: none; }
    .tl-day-items { padding-left: .65rem; }
    .tl-entry::before { left: -.65rem; }
    .tl-entry-heading, .tl-entry-content, .tl-thread { padding-left: .7rem; padding-right: .7rem; }
    .tl-record-fields { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 355px) {
    .tl-filters button { font-size: .73rem; }
    .tl-reaction-settings-row { grid-template-columns: 3rem minmax(0, 1fr); }
}
