/* ogpaver — base styling. Vanilla CSS, BEM-let. */

:root {
    --c-bg: #f7f7f8;
    --c-surface: #ffffff;
    --c-text: #1d1f24;
    --c-muted: #6a7180;
    --c-border: #e3e5ea;
    --c-primary: #2c5cb8;
    --c-primary-strong: #1f4795;
    --c-error: #b3261e;
    --c-success: #1f7a3e;

    --prio-low: #6a7180;
    --prio-normal: #4d6fb3;
    --prio-high: #d97706;
    --prio-critical: #b3261e;

    --radius: 6px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 2px 6px rgba(0,0,0,.10);
    --pad: 16px;

    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    color: var(--c-text);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--c-bg);
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

button, .btn {
    background: var(--c-primary);
    color: #fff;
    border: 0;
    padding: 8px 14px;
    border-radius: var(--radius);
    cursor: pointer;
    font: inherit;
}
button:hover, .btn:hover { background: var(--c-primary-strong); }
button[disabled] { opacity: .5; cursor: not-allowed; }

.topbar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
}
.topbar__brand { font-weight: 700; font-size: 18px; color: var(--c-text); }
.topbar__nav { display: flex; gap: 16px; flex: 1; }
.topbar__user { display: flex; align-items: center; gap: 14px; }
.topbar__logout { margin: 0; }

.content { padding: 24px; max-width: 1300px; margin: 0 auto; }

.auth { max-width: 360px; margin: 80px auto; background: var(--c-surface); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.auth h1 { margin: 0 0 16px 0; }
.auth__form { display: flex; flex-direction: column; gap: 12px; }
.auth__form label { display: flex; flex-direction: column; gap: 4px; }
.auth__form input { padding: 8px; border: 1px solid var(--c-border); border-radius: var(--radius); font: inherit; }
.auth__error { background: #fde8e6; color: var(--c-error); padding: 8px 10px; border-radius: var(--radius); }

.muted { color: var(--c-muted); }

.flash { background: #e6f4ec; color: var(--c-success); padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; }
.flash--error { background: #fde8e6; color: var(--c-error); }

.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }

.table { width: 100%; border-collapse: collapse; background: var(--c-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-border); }
.table th { background: #f0f1f4; font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.inline { display: inline; margin: 0; }

.form { display: grid; gap: 12px; max-width: 480px; background: var(--c-surface); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.form label { display: flex; flex-direction: column; gap: 4px; }
.form input, .form select, .form textarea { padding: 8px; border: 1px solid var(--c-border); border-radius: var(--radius); font: inherit; }

.dashboard { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
@media (max-width: 800px) { .dashboard { grid-template-columns: 1fr; } }

.task-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.task-list__item { background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); border-left: 4px solid var(--prio-normal); }
.task-list__item.prio--low      { border-left-color: var(--prio-low); }
.task-list__item.prio--high     { border-left-color: var(--prio-high); }
.task-list__item.prio--critical { border-left-color: var(--prio-critical); }
.task-list__item a { display: block; padding: 10px 14px; color: var(--c-text); }
.task-list__item a:hover { text-decoration: none; background: #fafbfc; }
.task-list__title { font-weight: 600; display: block; }
.task-list__meta { color: var(--c-muted); font-size: 13px; }

.project-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }

/* Subnav (projekt + admin) */
.subnav { display: flex; gap: 4px; margin: -8px 0 18px 0; border-bottom: 1px solid var(--c-border); }
.subnav__item { padding: 8px 14px; color: var(--c-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav__item:hover { color: var(--c-text); text-decoration: none; }
.subnav__item.is-active { color: var(--c-primary); border-bottom-color: var(--c-primary); font-weight: 600; }

/* Filtre */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--c-border); border-radius: 999px; background: var(--c-surface); color: var(--c-text); font-size: 13px; }
.filter:hover { background: #f0f1f4; text-decoration: none; }
.filter.is-active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.filter__swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--tag-color, var(--c-muted)); }

/* Tag chip */
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; color: #fff; font-weight: 500; }

/* Projekt-kort grid */
.project-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.project-card { background: var(--c-surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; }
.project-card.is-archived { opacity: .6; }
.project-card h3 { margin: 0; }
.project-card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.project-card__desc { margin: 0; color: var(--c-muted); font-size: 14px; }
.project-card__links { display: flex; gap: 12px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--c-border); font-size: 14px; }

/* Projekt-show */
.project-show { background: var(--c-surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.project-show__tags { display: flex; gap: 6px; margin-bottom: 12px; }
.project-show__desc { color: var(--c-text); }
.project-show__actions { display: flex; gap: 10px; margin-top: 16px; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; vertical-align: middle; text-transform: uppercase; letter-spacing: .03em; }
.badge--archived { background: #e3e5ea; color: var(--c-muted); }

/* Form-detaljer */
.form fieldset { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.form fieldset legend { padding: 0 6px; font-weight: 600; }
.checkbox { display: flex; align-items: center; gap: 8px; }
.form--inline { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 16px; max-width: none; }

.btn-danger { background: var(--c-error); }
.btn-danger:hover { background: #8a1b15; }

.table-form { display: contents; }

/* Form-detaljer: wide + row */
.form--wide { max-width: 760px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }

/* Type-, prioritets- og statusbadges (badge--prefix kombineret med type--/prio--/status--) */
.type--bug      { background: #b3261e; color: #fff; }
.type--feature  { background: #1f7a3e; color: #fff; }
.type--task     { background: #4d6fb3; color: #fff; }
.type--support  { background: #d97706; color: #fff; }

.prio--low      { background: #6a7180; color: #fff; }
.prio--normal   { background: #4d6fb3; color: #fff; }
.prio--high     { background: #d97706; color: #fff; }
.prio--critical { background: #b3261e; color: #fff; }

.status--backlog     { background: #e3e5ea; color: var(--c-text); }
.status--ready       { background: #cfd8e8; color: var(--c-text); }
.status--in_progress { background: #4d6fb3; color: #fff; }
.status--review      { background: #d97706; color: #fff; }
.status--done        { background: #1f7a3e; color: #fff; }
.badge--version      { background: #ede7f6; color: #4527a0; }

/* Kanban board */
.kanban { display: flex; flex-direction: column; gap: 14px; }
.kanban-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 10px; background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.kanban-filters select { padding: 6px 10px; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); font: inherit; }

.kanban-cols { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 1100px) { .kanban-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .kanban-cols { grid-template-columns: 1fr; } }

.kanban-col { background: #eef0f4; border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 200px; }
.kanban-col__head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.kanban-col__label { font-weight: 600; font-size: 14px; color: var(--c-text); }
.kanban-col__count { background: rgba(0,0,0,.08); color: var(--c-text); padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.kanban-col__list { display: flex; flex-direction: column; gap: 8px; min-height: 80px; }

.kanban-card {
    display: flex; flex-direction: column; gap: 6px;
    background: var(--c-surface);
    border-radius: var(--radius);
    padding: 10px 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--prio-normal);
    color: var(--c-text);
    cursor: grab;
    text-decoration: none;
}
.kanban-card:hover { box-shadow: var(--shadow-md); text-decoration: none; }
.kanban-card.prio--low      { border-left-color: var(--prio-low); }
.kanban-card.prio--high     { border-left-color: var(--prio-high); }
.kanban-card.prio--critical { border-left-color: var(--prio-critical); }

.kanban-card__id { font-size: 11px; color: var(--c-muted); font-family: ui-monospace, SFMono-Regular, monospace; }
.kanban-card__title { font-weight: 600; font-size: 14px; line-height: 1.3; }
.kanban-card__meta { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 12px; color: var(--c-muted); }
.kanban-card__assignee { background: #eef0f4; padding: 2px 8px; border-radius: 999px; color: var(--c-text); }
.kanban-card__version  { background: #ede7f6; color: #4527a0; padding: 2px 8px; border-radius: 999px; }
.kanban-card__due      { background: #fde8e6; color: var(--c-error); padding: 2px 8px; border-radius: 999px; }
.kanban-card .badge    { font-size: 11px; padding: 1px 6px; }

.kanban-card--ghost    { opacity: .4; }
.kanban-card--chosen   { box-shadow: var(--shadow-md); }
.kanban-card--dragging { cursor: grabbing; }

/* Opgave-detalje */
.task-detail {
    display: grid;
    grid-template-columns: 1fr 280px;
    grid-template-areas: "head head" "meta meta" "body side";
    gap: 16px;
    background: var(--c-surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
@media (max-width: 800px) { .task-detail { grid-template-columns: 1fr; grid-template-areas: "head" "meta" "body" "side"; } }
.task-detail__head { grid-area: head; display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.task-detail__title { display: flex; align-items: baseline; gap: 10px; }
.task-detail__title h1 { margin: 0; font-size: 22px; }
.task-detail__id { font-family: ui-monospace, SFMono-Regular, monospace; color: var(--c-muted); }
.task-detail__actions { display: flex; gap: 8px; }
.task-detail__meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 6px; }
.task-detail__body { grid-area: body; }
.task-detail__desc { white-space: pre-wrap; font: inherit; margin: 0; }
.task-detail__side dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 10px; margin: 0; font-size: 13px; }
.task-detail__side dt { color: var(--c-muted); }
.task-detail__side dd { margin: 0; }

/* Renderet markdown */
.markdown { line-height: 1.55; }
.markdown > :first-child { margin-top: 0; }
.markdown > :last-child  { margin-bottom: 0; }
.markdown h1, .markdown h2, .markdown h3 { margin: 1.2em 0 .4em; }
.markdown h1 { font-size: 22px; } .markdown h2 { font-size: 18px; } .markdown h3 { font-size: 16px; }
.markdown p, .markdown ul, .markdown ol { margin: .6em 0; }
.markdown code { background: #f0f1f4; padding: 1px 5px; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, monospace; font-size: 13px; }
.markdown pre { background: #f0f1f4; padding: 12px; border-radius: var(--radius); overflow-x: auto; }
.markdown pre code { background: none; padding: 0; }
.markdown blockquote { border-left: 3px solid var(--c-border); padding: 4px 12px; color: var(--c-muted); margin: .6em 0; }
.markdown table { border-collapse: collapse; margin: .6em 0; }
.markdown th, .markdown td { border: 1px solid var(--c-border); padding: 4px 10px; }
.markdown th { background: #f0f1f4; }
.markdown a { color: var(--c-primary); }

/* Sektioner under task-detail */
.task-section { background: var(--c-surface); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow-sm); margin-top: 16px; }
.task-section h2 { margin: 0 0 12px 0; font-size: 18px; }
.task-section__count { color: var(--c-muted); font-weight: normal; font-size: 14px; }

/* Upload-form */
.upload-form { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.upload-form input[type="file"] { font: inherit; }

/* Vedhæftninger */
.attachment-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.attachment-list__item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #fafbfc; border-radius: var(--radius); }
.attachment-list__name { font-weight: 600; }
.attachment-list__meta { color: var(--c-muted); font-size: 12px; flex: 1; }

.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-text { background: none; color: var(--c-muted); padding: 0; font: inherit; cursor: pointer; text-decoration: underline; border: 0; }
.btn-text:hover { color: var(--c-error); }

/* Kommentarer */
.comment-list { list-style: none; padding: 0; margin: 0 0 16px 0; display: flex; flex-direction: column; gap: 12px; }
.comment { background: #fafbfc; border-radius: var(--radius); padding: 12px 14px; border-left: 3px solid var(--c-border); }
.comment__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; font-size: 13px; }
.comment__date { color: var(--c-muted); }
.comment__body { font-size: 14px; }

.comment-form { display: flex; flex-direction: column; gap: 8px; }
.comment-form textarea { padding: 8px; border: 1px solid var(--c-border); border-radius: var(--radius); font: inherit; resize: vertical; }
.comment-form button { align-self: flex-start; }

/* Roadmap + versioner */
.roadmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.version-card { background: var(--c-surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; border-left: 4px solid var(--c-primary); }
.version-card.status--locked { border-left-color: #d97706; }
.version-card.status--closed { border-left-color: var(--c-muted); opacity: .8; }
.version-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.version-card__head h3 { margin: 0; font-size: 16px; }
.version-card__desc { margin: 0; color: var(--c-muted); font-size: 13px; }
.version-card__foot { display: flex; gap: 10px; font-size: 12px; color: var(--c-muted); margin-top: auto; }

.progress { position: relative; height: 22px; background: #eef0f4; border-radius: 999px; overflow: hidden; }
.progress__bar { height: 100%; background: linear-gradient(90deg, #2c5cb8 0%, #4a90e2 100%); transition: width .3s ease; }
.progress__label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--c-text); font-weight: 600; mix-blend-mode: difference; color: #fff; }
.progress--lg { height: 30px; }
.progress--lg .progress__label { font-size: 13px; }

/* Version detail */
.version-detail { background: var(--c-surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 16px; display: flex; flex-direction: column; gap: 14px; }
.version-detail__head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.version-detail__head h1 { margin: 0 0 8px 0; }
.version-detail__meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--c-muted); align-items: center; }
.version-detail__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.version-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.version-board__col { background: var(--c-surface); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-sm); }
.version-board__col h3 { margin: 0 0 8px 0; font-size: 14px; }
.version-board__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.version-board__item { background: #fafbfc; border-radius: var(--radius); border-left: 3px solid var(--prio-normal); }
.version-board__item.prio--low      { border-left-color: var(--prio-low); }
.version-board__item.prio--high     { border-left-color: var(--prio-high); }
.version-board__item.prio--critical { border-left-color: var(--prio-critical); }
.version-board__item a { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; padding: 8px 10px; color: var(--c-text); align-items: baseline; }
.version-board__item a:hover { text-decoration: none; background: #f4f6fa; }
.version-board__id { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 11px; color: var(--c-muted); }
.version-board__title { font-weight: 500; font-size: 13px; }
.version-board__assignee { font-size: 12px; color: var(--c-muted); }

/* Wiki */
.wiki-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.wiki-list__item { background: var(--c-surface); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px; }
.wiki-list__title { font-weight: 600; font-size: 16px; color: var(--c-text); }
.wiki-list__meta { color: var(--c-muted); font-size: 13px; }

.wiki-page { background: var(--c-surface); border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow-sm); }
.wiki-page__head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 6px; }
.wiki-page__head h1 { margin: 0; }
.wiki-page__actions { display: flex; gap: 8px; align-items: center; }
.wiki-page__meta { color: var(--c-muted); font-size: 13px; margin-bottom: 18px; }
.wiki-page__body { font-size: 15px; }

.wiki-missing { background: var(--c-surface); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); text-align: center; }
.wiki-missing h1 { font-size: 22px; }

/* Wiki edit form */
.wiki-edit { display: flex; flex-direction: column; gap: 12px; }
.wiki-edit__head { display: flex; gap: 12px; align-items: center; }
.wiki-edit__title { flex: 1; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: var(--radius); font-size: 18px; font-weight: 600; font-family: inherit; }
.wiki-edit__actions { display: flex; gap: 8px; align-items: center; }

/* Wiki editor (Vue island) */
.wiki-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: calc(100vh - 280px); min-height: 400px; }
@media (max-width: 900px) { .wiki-editor { grid-template-columns: 1fr; height: auto; } }
.wiki-editor__pane { display: flex; flex-direction: column; background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.wiki-editor__label { background: #f0f1f4; padding: 8px 14px; font-size: 12px; font-weight: 600; color: var(--c-muted); text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--c-border); }
.wiki-editor__loading { color: var(--c-primary); font-weight: 400; }
.wiki-editor__textarea { flex: 1; border: 0; padding: 14px 16px; font-family: ui-monospace, SFMono-Regular, monospace; font-size: 14px; resize: none; outline: none; line-height: 1.55; }
.wiki-editor__preview { flex: 1; padding: 14px 18px; overflow-y: auto; font-size: 14px; }

.wiki-revision__meta { background: #ede7f6; color: #4527a0; padding: 8px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13px; }

/* Notif-klokke */
.notif { position: relative; }
.notif__btn { background: none; color: var(--c-text); padding: 4px 8px; border: 0; cursor: pointer; font-size: 18px; position: relative; line-height: 1; }
.notif__btn:hover { background: #f0f1f4; }
.notif__btn.has-unread { color: var(--c-primary); }
.notif__count { position: absolute; top: -4px; right: -4px; background: var(--c-error); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 600; padding: 1px 6px; min-width: 16px; text-align: center; }

.notif__dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 340px; background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--c-border); z-index: 100; max-height: 480px; overflow-y: auto; }
.notif__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--c-border); font-weight: 600; font-size: 14px; }
.notif__empty { padding: 20px; text-align: center; color: var(--c-muted); font-size: 14px; }
.notif__list { list-style: none; padding: 0; margin: 0; }
.notif__item a { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; color: var(--c-text); border-bottom: 1px solid var(--c-border); font-size: 13px; }
.notif__item a:hover { background: #f4f6fa; text-decoration: none; }
.notif__item:last-child a { border-bottom: 0; }
.notif__msg { line-height: 1.35; }
.notif__date { color: var(--c-muted); font-size: 11px; }

/* Søgning */
.search-form { display: flex; gap: 10px; margin-bottom: 24px; background: var(--c-surface); padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.search-form input[type="search"] { flex: 1; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: var(--radius); font: inherit; font-size: 15px; }
.search-form input[type="search"]:focus { border-color: var(--c-primary); outline: 2px solid rgba(44,92,184,.15); outline-offset: 0; }

.search-total { color: var(--c-muted); margin: 0 0 18px 0; }
.search-group { margin-bottom: 28px; }
.search-group h2 { font-size: 16px; margin: 0 0 12px 0; }
.search-results { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }

.search-result { background: var(--c-surface); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.search-result__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; color: var(--c-text); }
.search-result__head:hover { text-decoration: none; }
.search-result__id { font-family: ui-monospace, SFMono-Regular, monospace; color: var(--c-muted); font-size: 12px; }
.search-result__title { font-weight: 600; font-size: 15px; flex: 1; min-width: 200px; }
.search-result__project { color: var(--c-muted); font-size: 13px; }
.search-result__meta { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.search-result__snippet { color: var(--c-muted); font-size: 13px; line-height: 1.5; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--c-border); }
.search-result mark { background: #fff3a3; color: var(--c-text); padding: 1px 3px; border-radius: 2px; }
