.entry {
    scroll-margin-top: 1rem;
    border-radius: 2px;
}

.entry:target,
.entry.highlight {
    outline: 2px solid #c9a961;
    outline-offset: 6px;
}

.entry-title {
    color: #1a1a1a;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.98rem;
    line-height: 1.45;
}

.entry-title:hover span {
    color: #1e3a5f;
    text-decoration: underline;
}

.entry-title img.favicon,
.entry-title .emoji-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 0.2rem;
    font-size: 14px;
    line-height: 16px;
}

.resource-subtitle {
    color: #5f5f5f;
    font-size: 0.85rem;
    padding-left: 1.5rem;
    margin-top: 0.15rem;
    line-height: 1.45;
    font-style: italic;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding-left: 1.5rem;
    margin-top: 0.4rem;
}

.badge {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    padding: 0.05rem 0.5rem;
    border-radius: 3px;
    background: #eef1f5;
    color: #33415a;
    white-space: nowrap;
}

.badge-outlet {
    background: #f6ecd6;
    color: #5c430d;
    border: 1px solid #e3cf9f;
}

.badge-type {
    background: #1e3a5f;
    color: white;
}

.level-intro { background: #e3f1e6; color: #1f5130; }
.level-intermediate { background: #f6ecd6; color: #6a4b0e; }
.level-advanced { background: #f6e1e1; color: #7a2323; }

.similar-links {
    font-size: 0.84rem;
    color: #555;
    line-height: 1.55;
}

.similar a {
    color: #1e3a5f;
}

.suggest-note {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.76rem;
    line-height: 1.4;
    margin: 0.35rem 0 0 1.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    background: #eef1f5;
    color: #33415a;
}

.entry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding-left: 1.5rem;
    margin-top: 0.45rem;
}

.act.star[aria-pressed="true"] {
    background: #f6ecd6;
    border-color: #c9a961;
    color: #5c430d;
}

.act.opened-btn[aria-pressed="true"] {
    background: #e5f2e8;
    border-color: #9cc7a8;
    color: #1f5130;
}

.entry.is-opened .entry-title span {
    color: #4a4a6a;
}

.entry.is-starred .entry-title span::after {
    content: " ★";
    color: #a8842f;
}

.reflect-count {
    color: #555;
}

.rq {
    margin: 0.4rem 0 0 1.2rem;
    display: grid;
    gap: 0.55rem;
}

.rq li {
    line-height: 1.45;
}

.rq textarea {
    display: block;
    width: 100%;
    margin-top: 0.3rem;
    font: inherit;
    font-size: 0.86rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid #c4ccd8;
    border-radius: 3px;
    resize: vertical;
    min-height: 2.6rem;
    background: #fcfcfd;
    color: #1a1a1a;
}

.status {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.78rem;
    line-height: 1.4;
    margin: 0.4rem 0 0 1.5rem;
    padding: 0.3rem 0.55rem;
    border-radius: 3px;
}

.status-ok { background: #edf6ef; color: #1f5130; }
.status-warn { background: #fdf3e1; color: #6a4b0e; }

.entry details {
    margin: 0.35rem 0 0 1.5rem;
    font-size: 0.88rem;
}

.entry summary {
    cursor: pointer;
    color: #1e3a5f;
    font-size: 0.82rem;
    width: fit-content;
}

.entry details p {
    margin-top: 0.35rem;
    line-height: 1.55;
    color: #2b2b2b;
}

.entry details p.review {
    margin-top: 0.5rem;
    padding-left: 0.7rem;
    border-left: 2px solid #c9a961;
    font-style: italic;
    color: #3a3a3a;
}

.review-label {
    font-style: normal;
    font-weight: 600;
    color: #1e3a5f;
}

.earlier {
    font-size: 0.8rem;
    color: #555;
    margin: 0.3rem 0 0 1.5rem;
}

.earlier a {
    color: #1e3a5f;
}
