:root {
  --col-name: 17rem;
  --col-place: 14rem;
  --col-updated: 7.5rem;
  --col-action: 4.5rem;
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1d2330;
  --muted: #6b7280;
  --line: #e3e6eb;
  --accent: #1f5fa8;
  --accent-soft: #e8f0fa;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171c;
    --card: #1c2027;
    --text: #e6e8eb;
    --muted: #9aa1ab;
    --line: #2c323b;
    --accent: #7fb0ec;
    --accent-soft: #22344a;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
main { max-width: 1040px; margin: 0 auto; padding: 24px 16px 64px; }


/* ---------- list page ---------- */
.list-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.list-head h1 { margin: 0; font-size: 1.6rem; }
.count { font-size: .9rem; color: var(--muted); font-weight: 400; margin-left: 6px; }
#filter {
  flex: 1 1 260px; max-width: 360px; padding: 9px 12px; font: inherit;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text);
}
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 18px 0 8px; }
.letters a, .letters span {
  width: 28px; text-align: center; padding: 3px 0; border-radius: 5px; font-size: .9rem; text-decoration: none;
}
.letters a { background: var(--accent-soft); font-weight: 600; }
.letters span { color: var(--line); }

.group h2 { font-size: 1rem; color: var(--muted); margin: 22px 0 6px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.people { list-style: none; margin: 0; padding: 0; }
.people a {
  display: grid; grid-template-columns: var(--col-name) minmax(0, 1fr) var(--col-place) var(--col-updated); gap: 16px; align-items: baseline;
  padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text);
}
.people a:hover { background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.people .meta, .people .place { color: var(--muted); font-size: .92rem; }
@media (max-width: 640px) {
  .people a { grid-template-columns: 1fr; gap: 2px; }
  .people .name, .people .meta, .people .place { white-space: normal; }
  .people-head { display: none; }
}

/* ---------- CV page ---------- */
.back { display: flex; justify-content: space-between; align-items: center; margin: 0 0 16px; }
.cv { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.cv-head h1 { margin: 0; font-size: 2rem; }
.headline { margin: 4px 0 18px; color: var(--muted); font-size: 1.05rem; }
.details { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 24px; margin: 0; }
.details dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }

.cv section { margin-top: 30px; }
.cv h2 {
  font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent);
  border-bottom: 2px solid var(--accent-soft); padding-bottom: 6px; margin: 0 0 14px;
}
.entry { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.entry:first-of-type { border-top: 0; }
.when { color: var(--muted); font-size: .9rem; padding-top: 2px; }
.what h3 { margin: 0; font-size: 1.05rem; }
.what p { margin: 4px 0 0; }
.org { color: var(--muted); }
.result { font-style: italic; }
@media (max-width: 640px) {
  .cv { padding: 20px 16px; }
  .entry { grid-template-columns: 1fr; gap: 2px; }
}

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--accent-soft); color: var(--accent); padding: 4px 10px; border-radius: 999px; font-size: .88rem; }

.label { font-weight: 600; }
.langs { border-collapse: collapse; margin-top: 8px; min-width: 60%; }
.langs th, .langs td { text-align: left; padding: 7px 14px 7px 0; border-bottom: 1px solid var(--line); }
.langs th { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.lvl { display: inline-block; min-width: 32px; text-align: center; border-radius: 5px; padding: 1px 6px; font-weight: 600; font-size: .88rem; }
.lvl-A { background: #fdecea; color: #a23b2c; }
.lvl-B { background: #fff4de; color: #8a5a00; }
.lvl-C { background: #e3f4e8; color: #1e6b3a; }
@media (prefers-color-scheme: dark) {
  .lvl-A { background: #3d2320; color: #f1a79b; }
  .lvl-B { background: #3a3019; color: #f0cd7a; }
  .lvl-C { background: #1d3526; color: #8fd6a6; }
}

.interests { margin: 0; padding-left: 20px; }
.interests li { margin-bottom: 6px; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .85rem; margin-top: 8px; }
.source { margin-top: 32px; }
.notice { background: var(--card); border: 1px solid var(--line); padding: 16px; border-radius: 8px; }

@media print {
  body { background: #fff; color: #000; }
  .topbar, .back { display: none; }
  .cv { border: 0; padding: 0; }
  main { padding: 0; }
}

/* ---------- navigation ---------- */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1040px; margin: 0 auto; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.brand { font-weight: 700; text-decoration: none; color: var(--text); }
.mainnav { display: flex; flex-wrap: wrap; gap: 4px; }
.mainnav a { text-decoration: none; color: var(--muted); padding: 5px 10px; border-radius: 6px; font-size: .95rem; }
.mainnav a:hover { color: var(--text); background: var(--bg); }
.mainnav a.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

/* ---------- buttons, messages ---------- */
.btn {
  display: inline-block; font: inherit; font-size: .92rem; padding: 7px 14px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; line-height: 1.3;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #10151c; } }
.btn.danger { color: #b3261e; border-color: #e7b4ae; }
.btn.small { padding: 3px 10px; font-size: .82rem; }
.back .actions { display: flex; gap: 8px; }
.flash { background: #e3f4e8; color: #1e6b3a; border: 1px solid #b9e0c6; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.error-box { background: #fdecea; color: #8c2a1f; border: 1px solid #f2c0b8; padding: 10px 14px; border-radius: 8px; margin: 12px 0 16px; }
.error-box ul { margin: 6px 0 0; padding-left: 20px; }
@media (prefers-color-scheme: dark) {
  .flash { background: #1d3526; color: #8fd6a6; border-color: #2d5a3c; }
  .error-box { background: #3d2320; color: #f1a79b; border-color: #6b3a33; }
  .btn.danger { color: #f1a79b; border-color: #6b3a33; }
}
.tags a { color: inherit; text-decoration: none; }
.tags a:hover { text-decoration: underline; }

/* ---------- forms ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.card.narrow { max-width: 380px; margin: 40px auto; }
.card h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 0 0 14px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); font-weight: 600; min-width: 0; }
label.inline { flex-direction: row; align-items: center; gap: 8px; margin-top: 10px; }
input, select, textarea {
  font: inherit; font-size: .95rem; font-weight: 400; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; width: 100%; min-width: 0;
}
input[type=checkbox], input[type=radio] { width: auto; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 12px 16px; }
.grid-lang { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 2fr 2fr; gap: 12px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: 1 / -1; }
.inline-fields { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 10px; }
.checkbox { display: flex; gap: 6px; align-items: center; font-weight: 400; margin-top: 4px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: .9rem; color: var(--muted); }
.radio-group label { flex-direction: row; align-items: center; gap: 5px; font-weight: 400; color: var(--text); font-size: .9rem; }
.form-actions { display: flex; gap: 10px; margin-top: 16px; align-items: center; }
.form-actions.sticky { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--line); margin-top: 0; }
.hint { font-weight: 400; }
@media (max-width: 700px) {
  .form-grid, .grid-3 { grid-template-columns: 1fr; }
  .grid-lang { grid-template-columns: 1fr 1fr 1fr; }
  .span-2 { grid-column: auto; }
}

/* keyword chips (search) */
.kw-tools { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin-bottom: 10px; }
.kw-tools input { max-width: 260px; }
.chip-select { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow-y: auto; padding: 2px; }
.chip { flex-direction: row; font-weight: 400; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-size: .88rem; cursor: pointer; background: var(--card); }
.chip span small { color: var(--muted); margin-left: 3px; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:checked + span small { color: rgba(255,255,255,.8); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* keyword picker (edit) */
.chip-select.compact { margin-top: 10px; max-height: 160px; }
.chip-btn { font: inherit; font-size: .82rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.chip-btn.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

/* repeating rows (edit) */
.row-item { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 12px; background: var(--bg); }
.row-item input, .row-item select, .row-item textarea { background: var(--card); }
.row-tools { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.add-row { margin-top: 2px; }
.delete-form { margin: 28px 0 0; padding-top: 18px; border-top: 1px dashed var(--line); }

/* search results */
.results-title { font-size: 1.1rem; margin: 26px 0 12px; }
.results { list-style: none; padding: 0; margin: 0; }
.results li.card { padding: 14px 18px; margin-bottom: 10px; }
.result-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.result-head .name { text-decoration: none; color: var(--text); font-size: 1.05rem; }
.result-head .name:hover { color: var(--accent); }
.score { font-size: .82rem; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.results .meta { color: var(--muted); font-size: .92rem; margin: 2px 0 8px; }
.tags.small li { font-size: .78rem; padding: 2px 8px; background: var(--bg); color: var(--muted); }
.tags.small li.hit { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

@media print { .mainnav { display: none; } }

/* ---------- upload ---------- */
.lead { color: var(--muted); max-width: 640px; margin-top: -6px; }
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 220px; padding: 28px; text-align: center; cursor: pointer; font-weight: 400;
  border: 2px dashed var(--line); border-radius: 12px; background: var(--bg); color: var(--muted);
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.dropzone.busy { opacity: .6; pointer-events: none; }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-icon { color: var(--accent); }
.dz-title { font-size: 1.15rem; font-weight: 600; color: var(--text); }
.dz-sub { font-size: .9rem; }
.ai-option { margin-top: 14px; color: var(--text); font-size: .92rem; }
.upload-status { margin-top: 14px; padding: 10px 14px; border-radius: 8px; background: var(--accent-soft); color: var(--text); font-size: .95rem; }
.upload-status.error { background: #fdecea; color: #8c2a1f; }
@media (prefers-color-scheme: dark) { .upload-status.error { background: #3d2320; color: #f1a79b; } }
.spinner { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px;
  border: 2px solid var(--accent); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.import-box { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; }
.import-box p { margin: 0 0 8px; }
.import-box .warn { color: #8a5a00; font-weight: 600; }
@media (prefers-color-scheme: dark) { .import-box .warn { color: #f0cd7a; } }
.import-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 8px; }
.import-actions form { margin: 0; }
.import-box summary { cursor: pointer; font-size: .9rem; color: var(--accent); }
.import-text { white-space: pre-wrap; max-height: 360px; overflow: auto; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px; font-size: .82rem; margin: 8px 0 0; }

.swap-wrap { display: flex; gap: 6px; }
.swap-wrap input { flex: 1; }
.swap { font: inherit; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--card); color: var(--accent); cursor: pointer; }
.swap:hover { border-color: var(--accent); }

/* delete buttons */
.people li { display: flex; align-items: center; gap: 8px; }
.people li > a { flex: 1; min-width: 0; }
.row-delete { margin: 0; flex: none; }
.row-delete .btn { opacity: .55; }
.people li:hover .row-delete .btn, .row-delete .btn:focus-visible { opacity: 1; }
@media (hover: none) { .row-delete .btn { opacity: 1; } }
.btn.danger-solid { background: #b3261e; border-color: #b3261e; color: #fff; font-weight: 600; }
.delete-confirm { border: 1px solid #e7b4ae; background: #fdecea; color: #5c1a14; border-radius: 10px; padding: 14px 18px; margin: 0 0 16px; }
.delete-confirm p { margin: 0 0 8px; }
.delete-confirm .checkbox { color: inherit; font-weight: 400; font-size: .92rem; }
.delete-confirm .form-actions { margin-top: 10px; }
@media (prefers-color-scheme: dark) {
  .delete-confirm { background: #3d2320; color: #f6d5cf; border-color: #6b3a33; }
}
label.checkbox { flex-direction: row; align-items: center; gap: 8px; }

/* list columns: identical widths on every row */
.people li { display: grid; grid-template-columns: minmax(0, 1fr) var(--col-action); gap: 8px; align-items: center; }
.people li > a { min-width: 0; }
.people .name, .people .meta, .people .place, .people .updated { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-delete { justify-self: end; }
.people-head {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--col-action); gap: 8px;
  margin-top: 14px; padding: 0 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
}
.people-head .cols { display: grid; grid-template-columns: var(--col-name) minmax(0, 1fr) var(--col-place) var(--col-updated); gap: 16px; padding: 0 12px; }
@media (max-width: 640px) {
  .people-head { display: none; }
  .people .name, .people .meta, .people .place { white-space: normal; }
}
@media (max-width: 900px) and (min-width: 641px) {
  :root { --col-name: 12rem; --col-place: 10rem; }
}

.people .updated { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.updated-line { margin: -12px 0 16px; font-size: .85rem; color: var(--muted); }
.record-dates { margin-top: 32px; }
.record-dates + .hint { margin-top: 2px; }
@media (max-width: 900px) and (min-width: 641px) { :root { --col-name: 11rem; --col-place: 9rem; --col-updated: 6.5rem; } }
@media (max-width: 640px) { .people .updated::before { content: 'Updated '; } }

/* ---------- profile photos ---------- */
.avatar { display: inline-block; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; vertical-align: middle;
  margin-right: 10px; flex: none; background: var(--accent-soft); }
.avatar.initials { color: var(--accent); font-size: .72rem; font-weight: 700; line-height: 30px; text-align: center; letter-spacing: .02em; }
.people a { align-items: center; }
.people .name { display: flex; align-items: center; }
.people .name .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .people .name .nm { white-space: normal; } }
.cv-title { display: flex; gap: 22px; align-items: center; margin-bottom: 18px; }
.cv-title .updated-line { margin: 2px 0 0; }
.cv-title .headline { margin: 4px 0 0; }
.cv-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; display: block; border: 3px solid var(--card);
  box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 640px) { .cv-title { flex-direction: column; align-items: flex-start; } .cv-photo { width: 96px; height: 96px; } }
@media print { .cv-photo { box-shadow: none; } }

.person-edit { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: start; }
@media (max-width: 700px) { .person-edit { grid-template-columns: 1fr; } }
.photo-edit { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.photo-drop { width: 130px; height: 130px; border-radius: 50%; border: 2px dashed var(--line); background: var(--bg);
  display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
.photo-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.photo-drop img { width: 100%; height: 100%; object-fit: cover; }
.photo-empty { color: var(--muted); font-size: .85rem; line-height: 1.3; }
.photo-buttons { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

/* photo on the CV page */
.cv-photo-box { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cv-photo-empty { display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent);
  font-size: 2.2rem; font-weight: 700; letter-spacing: .03em; }
.cv-photo-box.editable .cv-photo { cursor: pointer; }
.cv-photo-box.over .cv-photo { outline: 3px dashed var(--accent); outline-offset: 3px; }
.cv-photo-box.busy { opacity: .5; pointer-events: none; }
.cv-photo-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; width: 150px; }
@media print { .cv-photo-actions, .cv-photo-empty { display: none; } }

/* logos at the top of the CV */
.cv-logos { display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.cv-logos.single { justify-content: flex-start; }
.cv-logos img { height: 44px; width: auto; max-width: 45%; object-fit: contain; }
.logo-hint { margin: 0 0 18px; }
@media (prefers-color-scheme: dark) { .cv-logos img { background: #fff; padding: 6px 10px; border-radius: 6px; } }
@media (max-width: 640px) { .cv-logos img { height: 32px; } }
@media print { .logo-hint { display: none; } .cv-logos img { background: none; padding: 0; } }

/* extract photos page */
.list-tools { display: flex; gap: 10px; align-items: center; flex: 1 1 320px; justify-content: flex-end; }
.list-tools #filter { max-width: 320px; }
.avatar.medium { width: 64px; height: 64px; margin: 0; }
.avatar.medium.initials { line-height: 64px; font-size: 1.1rem; }
.photo-run .form-actions { flex-wrap: wrap; }
.photo-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.photo-item { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.pi-images { display: flex; align-items: center; gap: 8px; flex: none; }
.pi-found img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 2px var(--accent); }
.pi-arrow { color: var(--muted); }
.pi-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pi-name { color: var(--text); text-decoration: none; }
.pi-file { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi-status { font-size: .85rem; color: var(--muted); }
.pi-status.ok { color: #1e6b3a; font-weight: 600; }
.pi-status.err { color: #b3261e; }
@media (prefers-color-scheme: dark) { .pi-status.ok { color: #8fd6a6; } .pi-status.err { color: #f1a79b; } }
.pi-select { font-size: .85rem; color: var(--text); font-weight: 400; margin-top: 2px; }
[hidden] { display: none !important; }
.photo-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

/* user administration */
.nav-user { display: flex; gap: 4px; margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--line); }
.login-card { max-width: 380px; }
.login-card h1 { margin-top: 0; }
.table-wrap { overflow-x: auto; }
table.users { width: 100%; border-collapse: collapse; }
table.users th, table.users td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.users th { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
table.users tr.inactive td { color: var(--muted); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions form { margin: 0; }
.role { font-size: .82rem; padding: 2px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); white-space: nowrap; }
.role-admin { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 600; }
.tag-you { font-size: .72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; margin-left: 4px; }
