/* temp/web/css/prvr.css */
.history-river {
    width: 100%;
    max-width: 700px;
    margin: 20px auto 0;
    border-top: 2px solid #ddd;
    padding-top: 20px;}
.annotation-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;}
.annotation-card .card-header {
    display: flex;
    align-items: center;
    padding: 10px 45px 10px 15px;
    background-color: #f8f9fa;
    cursor: pointer;
    position: relative;}
.annotation-card .card-header:hover {background-color: #e9ecef;}
.card-title-text {
    font-weight: bold;
    color: #333;
    flex-grow: 1;
    margin-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;}
.card-meta-info {
    display: inline-flex;
    align-items: center;
    color: #666;
    font-size: 0.9em;
    flex-shrink: 0;
    margin-left: auto;}
.comments-count-badge {
    background-color: #eee;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 0.75em;
    margin-left: 10px;
    color: #555;
    vertical-align: middle;}
.annotation-card > .card-content,
.annotation-card > .card-footer {display: none; padding: 15px;}
.card-content {line-height: 1.6; color: #444;}
.card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #888;
    border-top: 1px solid #eee;}
.annotation-card.is-expanded > .card-header {border-bottom: 1px solid #eee;}
.annotation-card.is-expanded > .card-content,
.annotation-card.is-expanded > .card-footer {display: block;}
.comments-section {display: none; background-color: #fafafa; padding: 15px 15px 5px 30px; border-top: 1px solid #eee;}
.annotation-card.is-expanded > .comments-section {display: block;}
.annotation-card.is-comment {border: 1px solid #ddd; box-shadow: none; margin-bottom: 10px; background-color: #fff;}
.annotation-card.is-comment:last-child {margin-bottom: 0;}
.card-controls {position: absolute; top: 10px; right: 15px; z-index: 10;}
.card-content pre {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-left: 3px solid #2980b9;
    color: #333;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 1.6em;
    padding: 1em 1.5em;
    border-radius: 4px;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
    overflow-x: auto;}
/* Сам код внутри */
.card-content pre code {
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    font-family: inherit;
    font-size: inherit;}
.card-content pre p {margin: 0; padding: 0;}
.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
    cursor: pointer;}
.author-avatar.interactive {cursor: pointer; border-color: #3498db;}
.author-avatar.interactive:hover {box-shadow: 0 0 3px rgba(52, 152, 219, 0.5);}
.author-avatar:hover {box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.4);}
.avatar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 10px;
    flex-shrink: 0;}
.author-popover {
    display: none;
    position: absolute;
    top: 34px;
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 12px;
    border-radius: 6px;
    z-index: 2000;
    min-width: 200px;
    text-align: left;
    cursor: default;}
.author-popover.active {display: block;}
.author-popover::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 7px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-left: 1px solid #ccc;
    border-top: 1px solid #ccc;
    transform: rotate(45deg);}
.popover-name {font-weight: bold; display: block; margin-bottom: 4px; color: #333;}
.popover-link {
    color: #3498db;
    font-size: 0.85em;
    text-decoration: none;
    display: block;
    word-break: break-all;}
.popover-link:hover { text-decoration: underline; }
.popover-label {font-size: 0.75rem; color: #888; margin-bottom: 2px; display: block;}
.popover-name-link {
    font-weight: bold;
    font-size: 1rem;
    color: #3498db;
    text-decoration: none;
    display: block;
    border-bottom: 1px dotted transparent;}
.popover-name-link:hover {color: #2980b9; border-bottom-color: #2980b9;}
.popover-name-text {font-weight: bold; font-size: 1rem; color: #333; display: block;}
.author-list-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;}
.author-list-link:hover {color: #2980b9; border-bottom-color: #2980b9;}