/* Nevents (web/js/nevents): the app's palette; each institution's colour (--org) is its accent */
.grow { flex: 1; min-width: 0; }
.sub { color: var(--muted); font-size: 13px; }
.nev-body { padding-bottom: 28px; }
.nev-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.nev-title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nev-title small { font-size: 13px; font-weight: 500; color: var(--muted); }
.nev-header .header-title { gap: 12px; }
.nev-header-action { margin-left: auto; flex: none; }
.nev-header-action svg { width: 16px; height: 16px; }
.nev-eyebrow { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.nev-note { color: var(--muted); font-size: 14px; padding: 12px 16px; }
.nev-note.center { text-align: center; padding: 32px 16px; }
.nev-muted { color: var(--muted); }
.nev-verified { width: 15px; height: 15px; color: var(--primary); vertical-align: -2px; flex: none; }
body.nevents-mode .mobile-fab { display: none !important; }

/* ---------------------------------------------------------------- the institution's mark */
.nev-mark {
  --org: var(--primary);
  display: inline-grid; place-items: center; flex: none; border-radius: 6px; color: #fff; font-weight: 800;
  background: var(--org); letter-spacing: -.01em;
}
.nev-mark.xs { width: 18px; height: 18px; border-radius: 4px; font-size: 8px; }
.nev-mark.sm { width: 28px; height: 28px; border-radius: 5px; font-size: 11px; }
.nev-mark.md { width: 38px; height: 38px; border-radius: 6px; font-size: 14px; }
.nev-mark.lg { width: 56px; height: 56px; border-radius: 8px; font-size: 20px; }
.nev-mark.xl { width: 76px; height: 76px; border-radius: 10px; font-size: 26px; }
.nev-mark.long.xs { font-size: 5.5px; }
.nev-mark.long.sm { font-size: 8px; }
.nev-mark.long.md { font-size: 10px; }
.nev-mark.long.lg { font-size: 14px; }
.nev-mark.long.xl { font-size: 19px; }

/* ---------------------------------------------------------------- covers: the picture whole in its frame, on a quiet ground */
.nev-cover { position: relative; overflow: hidden; background: var(--surface-2); }
.nev-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* no picture: a plain poster in the host's colour, its mark on top, its title under it */
.nev-cover.empty { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 9%; background: var(--org); color: #fff; }
.nev-cover.empty b { font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.nev-cover.empty span { font-size: 18px; font-weight: 750; line-height: 1.15; display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; overflow: hidden; }
.nev-cover.hero { aspect-ratio: 16 / 9; max-height: 400px; width: 100%; }
.nev-cover.wide { aspect-ratio: 16 / 8; }
.nev-cover.empty small { display: none; }
/* the plain poster in full (the wall, the event page): its mark, its title, its date */
.nev-cover.poster { aspect-ratio: 4 / 5; }
.nev-cover.poster span { font-size: 22px; font-weight: 800; line-height: 1.08; letter-spacing: -.01em; }
.nev-cover.poster small { display: block; font-size: 12.5px; opacity: .85; }
.nev-cover.thumb { width: 100%; height: 100%; border-radius: 6px; }
.nev-cover.thumb.empty { padding: 10px; }
.nev-cover.thumb.empty span { display: none; }

/* ---------------------------------------------------------------- badges and people */
.nev-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600;
  line-height: 18px; background: var(--surface-2); color: var(--text-2); white-space: nowrap;
}
.nev-badge svg { width: 12px; height: 12px; }
.nev-badge.good { color: #73d13d; background: rgba(115, 209, 61, .12); }
.nev-badge.bad { color: #ff7875; background: var(--danger-soft); }
.nev-badge.mine { color: var(--primary-hover); background: var(--primary-soft); }
.nev-badge.live { color: #36cfc9; background: rgba(54, 207, 201, .12); }
.nev-badge.live i { width: 6px; height: 6px; border-radius: 999px; background: currentColor; animation: pulse 1.4s infinite; }
.nev-people { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.nev-people b { color: var(--text); }
.nev-people .avatar.sm { width: 24px; height: 24px; font-size: 10px; border-color: var(--bg); }
.nev-people-none { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- the lists */
.nev-section { display: flex; align-items: baseline; justify-content: space-between; padding: 32px 16px 12px; font-size: 17px; font-weight: 700; color: var(--text); }
.nev-section span { font-size: 13px; font-weight: 500; color: var(--muted); }
.nev-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0 16px; }
.nev-row {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) 104px; gap: 14px; align-items: stretch; padding: 12px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .15s;
}
.nev-row:hover { border-color: var(--border-strong); }
.nev-row:hover .nev-row-title { text-decoration: underline; text-underline-offset: 3px; }
.nev-row.past { opacity: .78; }
.nev-row.cancelled .nev-row-title { text-decoration: line-through; text-decoration-color: rgba(255, 120, 117, .7); }
.nev-date {
  --org: var(--primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; align-self: start;
  padding: 8px 0 7px; border-radius: 6px; background: var(--surface-2);
}
.nev-date b { font-size: 22px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.nev-date span { font-size: 12px; font-weight: 650; color: var(--text-2); }
.nev-date em { font-style: normal; font-size: 11px; color: var(--muted); }
.nev-date.sm { width: 44px; padding: 5px 0; flex: none; }
.nev-date.sm b { font-size: 16px; }
.nev-date.sm span { font-size: 10px; }
.nev-row-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.nev-row-org { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); min-width: 0; }
.nev-row-org i { color: var(--faint); font-style: normal; }
.nev-row-topic { color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nev-row-title { font-size: 16px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.nev-row-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.nev-row-meta > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.nev-row-meta svg { width: 14px; height: 14px; flex: none; }
.nev-row-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: auto; padding-top: 4px; }
.nev-row-thumb { display: block; min-height: 104px; }

.nev-featured { display: block; border-radius: 8px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .15s; }
.nev-featured:hover { border-color: var(--border-strong); }
.nev-featured-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.nev-featured-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.nev-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--primary-hover); margin-right: auto; }
.nev-kicker svg { width: 14px; height: 14px; }
.nev-featured-title { font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.nev-featured-summary { font-size: 14px; color: var(--text-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.nev-featured-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); margin-top: 2px; }
.nev-featured-foot .nev-row-org { font-size: 13px; color: var(--text); }

.nev-empty { padding: 56px 32px; text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 6px; }
.nev-empty h3 { margin: 8px 0 0; color: var(--text); font-size: 20px; }
.nev-empty p { margin: 0 0 12px; max-width: 42ch; }
.nev-empty .nev-header-action { margin: 0; }
.nev-empty-ico { width: 54px; height: 54px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); color: var(--text-2); }
.nev-empty-ico svg { width: 26px; height: 26px; }

/* ---------------------------------------------------------------- the right column */
.nev-aside .widget h4 { padding-bottom: 8px; }
.nev-aside-list { display: grid; gap: 2px; padding: 0 8px 10px; }
.nev-mini { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; color: var(--text); }
.nev-mini:hover { background: var(--surface-hover); }
.nev-mini .grow { display: grid; min-width: 0; }
.nev-mini-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nev-mini-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- an institution's page */
.nev-org-hero { --org: var(--primary); position: relative; margin: 24px 16px 16px; padding: 0 18px 18px; border-radius: 8px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.nev-org-band { height: 4px; margin: 0 -18px; background: var(--org); }
.nev-org-id { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.nev-org-id h1 { margin: 0; font-size: 24px; display: flex; align-items: center; gap: 6px; }
.nev-org-full { color: var(--muted); font-size: 14px; }
.nev-org-tagline { margin-top: 12px; font-weight: 700; color: var(--text); }
.nev-org-about { margin: 6px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.nev-org-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0; font-size: 13px; color: var(--muted); }
.nev-org-links > * { display: inline-flex; align-items: center; gap: 6px; }
.nev-org-links svg { width: 15px; height: 15px; flex: none; }

/* ---------------------------------------------------------------- one event */
.nev-event { display: grid; grid-template-columns: minmax(0, 1fr); }
.nev-banner { display: flex; align-items: flex-start; gap: 10px; margin: 14px 16px 0; padding: 10px 14px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); font-size: 14px; }
.nev-banner svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.nev-banner.bad { background: var(--danger-soft); color: #ffb3b0; }
.nev-banner.bad b { color: #ff7875; }
.nev-banner.live { background: rgba(54, 207, 201, .1); color: #8ee8e4; }
.nev-banner.warn { background: rgba(250, 173, 20, .1); color: #ffd591; }
.nev-banner.warn b { color: #ffc53d; }
.nev-banner.live i { width: 8px; height: 8px; border-radius: 999px; background: #36cfc9; margin-top: 6px; animation: pulse 1.4s infinite; flex: none; }
.nev-event-head { padding: 16px 16px 4px; display: grid; gap: 10px; }
.nev-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nev-topic { font-size: 13px; font-weight: 600; color: var(--muted); }
.nev-topic::before { content: "·"; margin-right: 8px; color: var(--faint); }
.nev-rel { font-size: 13px; color: var(--muted); font-weight: 600; }
.nev-rel::before { content: "·"; margin-right: 8px; color: var(--faint); }
.nev-cat { font-size: 13px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.nev-cat:hover, .nev-cat:focus-visible { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 3px; }
.nev-event-head h1 { margin: 0; font-size: 32px; line-height: 1.14; letter-spacing: -.02em; }
.nev-host { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; margin: 0 -8px; border-radius: 8px; color: var(--text); }
.nev-host:hover { background: var(--surface); }
.nev-host .grow { display: grid; line-height: 1.3; }
.nev-host b { display: inline-flex; align-items: center; gap: 5px; }
.nev-host .grow span { font-size: 13px; color: var(--muted); }
.nev-host > svg { width: 16px; height: 16px; color: var(--faint); }

.nev-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px 4px; }
.nev-actions-main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nev-actions-main .btn { padding: 11px 18px; }
.nev-actions-main .btn svg { width: 16px; height: 16px; }
.nev-actions-tools { display: flex; gap: 4px; }
.nev-actions-tools .icon-btn { width: 40px; height: 40px; border: 1px solid var(--border-strong); }
.nev-going { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 6px; background: rgba(115, 209, 61, .1); color: #95de64; font-weight: 700; font-size: 14px; }
.nev-going svg { width: 16px; height: 16px; }
.nev-going .link-btn { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 4px; }
.nev-hint { display: flex; gap: 8px; margin: 6px 16px 0; font-size: 13px; color: var(--muted); }
.nev-hint svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.nev-manage { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 16px 0; padding: 8px 10px 8px 14px; border-radius: 8px; border: 1px dashed var(--border-strong); }
.nev-manage .nev-eyebrow { margin-right: auto; }
.nev-manage .btn svg { width: 15px; height: 15px; }
.btn-ghost.danger { color: #ff7875; }
.btn-ghost.danger:hover:not(:disabled) { background: var(--danger-soft); }
.btn-danger-solid { background: var(--danger); color: #fff; }
.btn-danger-solid:hover:not(:disabled) { background: #ff4d4f; }

.nev-facts { display: grid; grid-template-columns: minmax(0, 1fr); margin: 18px 16px 0; border-top: 1px solid var(--border); }
.nev-fact { display: flex; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--border); }
.nev-fact > svg { width: 19px; height: 19px; flex: none; color: var(--muted); margin-top: 1px; }
.nev-fact > div { display: grid; gap: 2px; min-width: 0; font-size: 14.5px; }
.nev-fact-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.nev-fact > div > span:not(.nev-fact-label) { color: var(--text-2); }
.nev-fact a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; margin-top: 2px; }
.nev-fact a svg { width: 13px; height: 13px; }

.nev-about-ev { padding: 22px 16px 4px; }
.nev-about-ev h2, .nev-chat-head h2 { margin: 0 0 10px; font-size: 18px; }
.nev-lead { margin: 0 0 12px; font-size: 16px; line-height: 1.55; color: var(--text); font-weight: 500; }
.nev-prose { font-size: 15px; line-height: 1.7; color: var(--text-2); }
.nev-prose p { margin: 0 0 12px; }
.nev-prose ul { margin: 0 0 12px; padding-left: 22px; }
.nev-prose li { margin: 3px 0; }
.nev-prose li::marker { color: var(--primary-hover); }
.nev-prose a { overflow-wrap: anywhere; }

/* the chat */
.nev-chat { margin: 22px 16px 0; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; scroll-margin-top: 70px; }
.nev-chat-locked { display: grid; justify-items: center; gap: 4px; padding: 30px 24px; text-align: center; }
.nev-chat-locked h3 { margin: 6px 0 0; font-size: 17px; }
.nev-chat-locked p { margin: 0 0 10px; color: var(--muted); font-size: 14px; max-width: 46ch; }
.nev-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.nev-chat-head h2 { margin: 0; font-size: 16px; }
.nev-chat-head > div > span { font-size: 12px; color: var(--muted); }
.nev-switch-row { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.nev-switch { appearance: none; flex: none; width: 40px; height: 24px; margin: 0; border-radius: 999px; position: relative; cursor: pointer; background: var(--border-strong); transition: background-color .15s; }
.nev-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .15s; }
.nev-switch:checked { background: var(--primary); }
.nev-switch:checked::after { transform: translateX(16px); }
.nev-switch:focus-visible { outline: 2px solid var(--primary-hover); outline-offset: 2px; }
.nev-chat-list { display: flex; flex-direction: column; gap: 2px; max-height: min(520px, 60vh); min-height: 160px; overflow-y: auto; padding: 10px 10px 12px; }
.nev-msg { position: relative; display: flex; gap: 10px; padding: 6px 8px; border-radius: 6px; }
.nev-msg:hover { background: var(--surface-hover); }
.nev-msg.cont { padding-top: 0; }
.nev-msg .avatar.sm { border-color: var(--surface); }
.nev-msg-gap { width: 28px; flex: none; }
.nev-msg-body { min-width: 0; flex: 1; }
.nev-msg-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.nev-msg-meta time { color: var(--muted); font-size: 12px; margin-left: 2px; }
.nev-msg-tag { font-size: 12px; font-weight: 650; color: var(--muted); }
.nev-msg-you { font-size: 11px; color: var(--muted); }
.nev-msg-text { font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; white-space: pre-wrap; position: relative; }
.nev-msg.org { margin: 6px 0; padding: 10px 12px; background: var(--surface-2); border-left: 3px solid var(--org); border-radius: 4px; }
.nev-msg.org .nev-msg-text { color: var(--text); }
.nev-msg.mine .nev-msg-meta b { color: var(--primary-hover); }
.nev-msg-del { margin-left: auto; width: 26px; height: 26px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .12s; }
.nev-msg-text .nev-msg-del { position: absolute; right: 0; top: -4px; }
.nev-msg-del svg { width: 15px; height: 15px; }
.nev-msg:hover .nev-msg-del, .nev-msg-del:focus-visible { opacity: 1; }
.nev-msg-del:hover { color: #ff7875; background: var(--danger-soft); }
.nev-msg-del[data-ne=msg-tools]:hover { color: var(--text); background: var(--surface-2); }
.nev-msg-del[aria-expanded=true] { opacity: 1; }
@media (hover: none) { .nev-msg-del { opacity: .7; } }
.nev-chat-foot { border-top: 1px solid var(--border); }
.nev-composer { display: flex; gap: 8px; padding: 10px 12px; }
.nev-composer .input { padding: 10px 14px; font-size: 14px; border-radius: 6px; background: var(--bg); border-color: var(--border); }
.nev-composer .btn { width: 42px; height: 42px; padding: 0; flex: none; }
.nev-chat-closed { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 13px; color: var(--muted); }
.nev-chat-closed svg { width: 18px; height: 18px; flex: none; }

/* ---------------------------------------------------------------- dialogs */
.nev-dlg { width: min(440px, calc(100% - 32px)); padding: 0; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg); color: var(--text); box-shadow: 0 24px 70px rgba(0, 0, 0, .55); }
.nev-dlg[open] { animation: cdlg-in .14s ease-out; }
.nev-dlg::backdrop { background: rgba(91, 112, 131, .4); }
.nev-dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 4px 20px; }
.nev-dlg-head h2 { margin: 0; font-size: 17px; }
.nev-dlg-body { padding: 6px 20px 20px; }
.nev-form-dlg { display: grid; gap: 14px; }
.nev-form-dlg p { margin: 0; color: var(--text-2); font-size: 14px; }
.nev-dlg-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------------------------------------------------------------- the organizers' form */
.nev-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; }
.nev-fs { border-radius: 8px; background: var(--surface); border: 1px solid var(--border); padding: 16px; }
.nev-fs-head { display: flex; gap: 12px; margin-bottom: 14px; }
.nev-fs-head b { flex: none; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-size: 13px; background: var(--primary-soft); color: var(--primary-hover); }
.nev-fs-head h3 { margin: 2px 0 2px; font-size: 16px; }
.nev-fs-head p { margin: 0; font-size: 13px; color: var(--muted); }
.nev-fs-body { display: grid; gap: 12px; }
.nev-field { display: grid; gap: 6px; }
.nev-field > span { display: flex; align-items: baseline; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.nev-field > span small { font-weight: 500; color: var(--muted); }
.nev-field > span em, .nev-format-hint em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.nev-form .input { font-size: 15px; padding: 11px 12px; border-radius: 6px; }
.nev-form .input.invalid, .nev-drop.invalid { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.nev-err { font-size: 13px; color: #ff7875; min-height: 0; }
.nev-err:empty { display: none; }
.nev-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nev-two.wide-first { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.nev-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nev-chips-label { font-size: 13px; color: var(--muted); margin-right: 2px; }
.nev-chip { padding: 5px 11px; border-radius: 6px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; transition: background-color .15s, border-color .15s; }
.nev-chip:hover { background: var(--surface-hover); border-color: var(--primary); color: var(--text); }
.nev-duration { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nev-seg { display: inline-grid; grid-auto-flow: column; padding: 3px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); justify-self: start; }
.nev-seg button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.nev-seg button svg { width: 16px; height: 16px; }
.nev-seg button[aria-checked="true"], .nev-seg button[aria-selected="true"] { background: var(--surface-2); color: var(--text); }
[data-group] { display: grid; gap: 12px; }
[data-group][hidden] { display: none; }
.nev-tabs-mini { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); justify-self: start; }
.nev-tabs-mini button { padding: 5px 12px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.nev-tabs-mini button[aria-selected="true"] { background: var(--surface-2); color: var(--text); }
.nev-desc { resize: vertical; min-height: 180px; line-height: 1.55; }
.nev-desc-preview { min-height: 180px; padding: 12px 14px; border-radius: 6px; border: 1px dashed var(--border-strong); }
.nev-format-hint { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 12px; color: var(--muted); }
.nev-format-hint svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.nev-submit { position: sticky; bottom: 0; z-index: 4; display: flex; justify-content: flex-end; gap: 8px; margin: 0 -16px -16px; padding: 12px 16px; background: var(--bg); border-top: 1px solid var(--border); }
.nev-submit .btn { padding: 11px 20px; }
.nev-submit .btn svg { width: 16px; height: 16px; }

.nev-drop { position: relative; border-radius: 8px; border: 1.5px dashed var(--border-strong); background: var(--bg); cursor: pointer; overflow: hidden; transition: border-color .15s, background-color .15s; }
.nev-drop:hover, .nev-drop.over, .nev-drop:focus-visible { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, var(--bg)); outline: none; }
.nev-drop.has { border-style: solid; }
.nev-drop-empty { display: grid; justify-items: center; gap: 6px; padding: 34px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.nev-drop-empty svg { width: 30px; height: 30px; color: var(--text-2); }
.nev-drop-empty b { color: var(--text); font-size: 14px; }
.nev-drop-busy { display: grid; justify-items: center; gap: 4px; padding: 20px; color: var(--muted); font-size: 13px; }
.nev-drop-busy .spinner { margin: 10px auto; }
.nev-drop-tools { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.nev-drop-tools .btn { background: rgba(14, 17, 30, .86); color: #fff; }
.nev-drop-tools .btn svg { width: 15px; height: 15px; }
.nev-cover-make { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.nev-cover-make .btn { flex: none; }
.nev-cover-make .btn svg { width: 16px; height: 16px; color: var(--primary); }
.nev-cover-make small { flex: 1 1 220px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.nev-cover-stale { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 9px 12px; border-radius: 6px;
  background: color-mix(in srgb, var(--warning) 12%, transparent); color: var(--warning); font-size: 12.5px; line-height: 1.45; }
.nev-cover-stale[hidden] { display: none; }
.nev-badge.nod { background: color-mix(in srgb, #7c3aed 18%, transparent); color: #b794f6; }
.nev-pin-input { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.nev-vis { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.nev-vis svg { width: 15px; height: 15px; }
.nev-vis b { color: var(--text-2); }
.nev-radio span small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.nev-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 14px; cursor: pointer; }
.nev-check input { margin-top: 3px; accent-color: var(--primary); }
.nev-check small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.nev-person-head { display: flex; gap: 14px; align-items: center; padding: 18px 16px 6px; }
.nev-person-head h2 { margin: 0; font-size: 20px; }
.nev-person-head span { color: var(--muted); font-size: 13.5px; }
.nev-person-empty { padding: 4px 16px 10px; }
.nev-share .nev-share-link { display: flex; gap: 8px; }
.nev-share .nev-share-link .input { flex: 1; min-width: 0; font-size: 13.5px; }
.nev-share-apps { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.nev-share-apps .btn { padding: 7px 14px; font-size: 13.5px; }
.nev-share h3 { margin: 18px 0 10px; font-size: 15px; }
.nev-share-tabs { width: 100%; grid-auto-columns: 1fr; }
.nev-share-tabs [role=tab] { justify-content: center; }
.nev-share-card { margin: 12px 0 0; display: grid; justify-items: center; gap: 8px; padding: 14px; border-radius: 8px;
  background: var(--surface-2); }
.nev-share-card img { max-height: 420px; max-width: 100%; width: auto; border-radius: 4px; }
.nev-share-card img.wide { max-height: none; width: 100%; }
.nev-share-card figcaption { font-size: 12.5px; color: var(--muted); }
.nev-cover-stale svg { flex: none; width: 15px; height: 15px; margin-top: 1px; }

/* the live preview */
.nev-preview-aside { position: sticky; top: 16px; }
.nev-preview-head { display: flex; align-items: center; gap: 6px; margin: 2px 0 10px; font-size: 13px; font-weight: 650; color: var(--muted); }
.nev-preview-head svg { width: 14px; height: 14px; color: var(--primary-hover); }
.nev-preview-head.small { margin-top: 16px; }
.nev-preview-card .nev-featured, .nev-preview-row .nev-row { pointer-events: none; }
.nev-preview-row .nev-row { grid-template-columns: 50px minmax(0, 1fr) 72px; gap: 10px; }
.nev-preview-row .nev-row-thumb { min-height: 72px; }
.nev-checklist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.nev-checklist span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 4px; font-size: 12px; color: var(--muted); background: var(--surface); }
.nev-checklist span.ok { color: #95de64; background: rgba(115, 209, 61, .1); }
.nev-checklist svg { width: 12px; height: 12px; }
.nev-checklist i { width: 8px; height: 8px; border-radius: 999px; border: 1.5px solid var(--faint); }
.nev-preview-inline { margin: 16px 16px 0; padding: 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.nev-preview-inline .nev-preview-card { display: none; }
.nev-preview-inline .nev-preview-head.small { margin-top: 0; }

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 640px) {
  .nev-row { grid-template-columns: 48px minmax(0, 1fr); }
  .nev-row-thumb { display: none; }
  .nev-date b { font-size: 18px; }
  .nev-featured-title { font-size: 19px; }
  .nev-event-head h1 { font-size: 23px; }
  .nev-two, .nev-two.wide-first { grid-template-columns: minmax(0, 1fr); }
  .nev-header-action span { display: none; }
  .nev-actions { flex-direction: column; align-items: stretch; }
  .nev-actions-main { flex-direction: column; align-items: stretch; }
  .nev-actions-tools { justify-content: flex-end; }
}

/* ---- personal events: a person hosts (round mark, no verified badge), the "Kimin adına" choice */
.nev-mark.person { border-radius: 50% !important; }
.nev-msg.host { --org: var(--primary); }
.nev-as { display: grid; gap: 8px; }
.nev-as-label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.nev-as-seg .nev-mark { flex: none; }

/* ---- lists: search and filters (kept in the link), a page at a time */
.nev-filters { display: grid; gap: 10px; padding: 12px 16px 4px; border-bottom: 1px solid var(--border); }
.nev-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.nev-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.nev-search svg { width: 17px; height: 17px; flex: none; color: var(--muted); }
.nev-search input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; outline: none; }
.nev-filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nev-filter-row select.input { width: auto; flex: 0 1 auto; min-width: 0; padding: 7px 30px 7px 10px; font-size: 13.5px; }
.nev-filter-row .btn svg { width: 15px; height: 15px; }
.nev-room { position: relative; padding: 7px 13px; font-size: 13px; cursor: pointer; user-select: none; }
.nev-room input { position: absolute; opacity: 0; pointer-events: none; }
.nev-room:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.nev-topic-chips { padding: 2px 0 8px; border-bottom: 0; }
.nev-topic-chips .chip { padding: 6px 13px; font-size: 13px; }
.nev-more { display: flex; justify-content: center; padding: 16px; }

/* ---- capacity and the line */
.nev-badge.wait { color: #ffc53d; background: rgba(255, 197, 61, .12); }
.nev-badge.full { color: var(--text-2); background: var(--surface-2); }
.nev-going.wait { background: rgba(255, 197, 61, .1); color: #ffd666; }
.nev-places { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.nev-places.full { color: #ffd666; }
.nev-capacity input { max-width: 180px; }
.nev-field-hint { font-size: 12.5px; line-height: 1.45; color: var(--muted); font-weight: 400; }

/* ---- the host's and the admins' tools on an event */
.nev-manage.admin { border-color: color-mix(in srgb, #ff7875 45%, var(--border-strong)); }
.nev-manage.admin .nev-eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.nev-manage.admin .nev-eyebrow svg { width: 14px; height: 14px; }
.nev-reports { color: #ff7875; letter-spacing: 0; text-transform: none; }
.nev-older { display: flex; justify-content: center; padding: 4px 0 10px; }

/* ---- dialogs: who is coming, reporting */
.nev-dlg-sub { font-size: 13px; color: var(--muted); }
.nev-attendees h3 { margin: 4px 0 -6px; font-size: 14px; font-weight: 700; color: var(--text-2); }
.nev-people-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 300px; overflow-y: auto; }
.nev-person { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 6px; }
.nev-person:hover { background: var(--surface); }
.nev-person .grow { display: grid; line-height: 1.3; }
.nev-person .sub { font-size: 12.5px; }
.nev-muted-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12px; font-weight: 600; color: #ffc53d; }
.nev-muted-tag svg { width: 13px; height: 13px; }
.nev-person select.input { width: auto; padding: 5px 26px 5px 8px; font-size: 13px; }
.nev-radios { display: grid; gap: 6px; }
.nev-radio { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--border); cursor: pointer; font-size: 14px; }
.nev-radio:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.nev-radio input { accent-color: var(--primary); margin: 0; }

/* ---- the admins' page, the institutions' management */
.nev-case { margin: 14px 16px 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.nev-case .nev-rows { margin: 0; }
.nev-case-reports { list-style: none; margin: 0; padding: 4px 14px; display: grid; gap: 4px; border-top: 1px solid var(--border); }
.nev-case-reports li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14px; }
.nev-case-reports .grow { display: grid; gap: 2px; }
.nev-case-note { margin: 0; padding: 0 14px; font-size: 13.5px; color: var(--text-2); }
.nev-case-reports .nev-case-note { padding: 0; }
.nev-case-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px 12px; }
.nev-case-actions .nev-badge { margin-right: auto; }
.nev-case-actions .btn svg { width: 15px; height: 15px; }
.nev-org-preview { display: flex; align-items: center; gap: 12px; }
.nev-org-preview > div { display: grid; }
.nev-color { height: 42px; padding: 4px; cursor: pointer; }
.nev-add-member { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.nev-add-member input { flex: 1 1 180px; }
.nev-add-member select.input { width: auto; }
.nev-members { margin: 16px 16px 0; }

/* ---- Bildirimler: a Nevents notification's mark */
.note-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); }
.note-ico svg { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .nev-filter-row select.input { flex: 1 1 140px; }
  .nev-case { margin: 12px 8px 0; }
  .nev-case-actions .nev-badge { width: 100%; justify-content: flex-start; }
}

/* Alarmlarım (alerts-view.js) */
.nev-alarm { display: grid; gap: 10px; margin: 14px 16px 4px; padding: 12px; border-radius: 8px; background: var(--surface);
  border: 1px solid var(--border); }
.nev-alarm:focus-within { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); }
.nev-alarm-line { display: flex; align-items: center; gap: 8px; }
.nev-alarm-line .input { flex: 1; min-width: 0; border-color: transparent; background: transparent; font-size: 15px; padding: 8px 6px; }
.nev-alarm-line .input:focus { box-shadow: none; }
.nev-alarm-ico, .nev-alert-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 6px;
  color: var(--primary-hover); background: var(--primary-soft); }
.nev-alarm-ico svg, .nev-alert-ico svg { width: 17px; height: 17px; }
.nev-alarm-opts, .nev-alarm-more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-left: 42px; }
.nev-alarm-more[hidden] { display: none; }
.nev-alarm-opts select.input, .nev-alarm-more select.input { width: auto; flex: 0 1 auto; min-width: 0; padding: 6px 28px 6px 10px; font-size: 13px;
  border-radius: 6px; background-color: var(--bg); }
.nev-alarm-opts .link-btn { font-size: 13px; margin-left: 4px; }
.nev-alarm-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.nev-alarm-date .input { width: auto; padding: 5px 8px; font-size: 13px; border-radius: 6px; }
.nev-alarm-hint { padding-left: 42px; font-size: 12px; color: var(--faint); }
.nev-alarm .nev-err { padding-left: 42px; }
.nev-alerts { display: grid; gap: 8px; padding: 4px 16px 18px; }
.nev-alert { display: grid; gap: 8px; padding: 10px 10px 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.nev-alert.off { opacity: .6; }
.nev-alert.off .nev-alert-ico { background: var(--surface-2); color: var(--muted); }
.nev-alert-head { display: flex; align-items: center; gap: 10px; }
.nev-alert-head .grow { display: grid; line-height: 1.35; }
.nev-alert-head b { font-size: 14.5px; }
.nev-alert .sub { color: var(--muted); font-size: 12.5px; }
.nev-alert-hits { display: grid; gap: 2px; padding-left: 44px; }
.nev-alert-hits a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: 13.5px; color: var(--text); }
.nev-alert-hits a:hover { background: var(--surface-hover); }
.nev-alert-hits a.cancelled .grow { text-decoration: line-through; color: var(--muted); }
.nev-alert-hits a svg { width: 14px; height: 14px; flex: none; color: var(--primary-hover); }
.nev-alert-hits a small { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* After an event: reviews (event-detail.js feedback) */
.nev-feedback { display: grid; gap: 12px; padding: 18px 16px 8px; }
.nev-feedback h2 { margin: 6px 0 0; font-size: 18px; }
.nev-stars { color: #f5b301; letter-spacing: 1px; white-space: nowrap; }
.nev-stars i { font-style: normal; color: var(--border-strong); }
.nev-rating { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.nev-rating b { font-size: 30px; line-height: 1; }
.nev-rating .nev-stars { font-size: 18px; }
.nev-rating span:last-child { color: var(--muted); font-size: 13.5px; }
.nev-chip.static { cursor: default; }
.nev-review { display: grid; gap: 4px; padding: 12px 14px; border-radius: 6px; background: var(--surface-2); }
.nev-review.hidden-review { opacity: .55; }
.nev-review-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nev-review-head .sub, .nev-review .sub { color: var(--muted); font-size: 12.5px; }
.nev-review p { margin: 2px 0 0; line-height: 1.5; }
.nev-my-review { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 6px; border: 1px solid var(--border); }
.nev-review-form { display: grid; gap: 10px; padding: 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
.nev-star-pick { display: flex; gap: 2px; }
.nev-star-pick .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nev-star-pick input { position: absolute; opacity: 0; pointer-events: none; }
.nev-star-pick span { font-size: 30px; line-height: 1; color: var(--border-strong); cursor: pointer; transition: color .12s, transform .12s; }
/* the stars up to the one chosen (or pointed at) light up: 1 to 5, left to right */
.nev-star-pick:has(label:nth-child(1) input:checked) label:nth-child(-n+1) span,
.nev-star-pick:has(label:nth-child(2) input:checked) label:nth-child(-n+2) span,
.nev-star-pick:has(label:nth-child(3) input:checked) label:nth-child(-n+3) span,
.nev-star-pick:has(label:nth-child(4) input:checked) label:nth-child(-n+4) span,
.nev-star-pick:has(label:nth-child(5) input:checked) label:nth-child(-n+5) span { color: #f5b301; }
.nev-star-pick:has(label:nth-child(1):hover) label:nth-child(-n+1) span,
.nev-star-pick:has(label:nth-child(2):hover) label:nth-child(-n+2) span,
.nev-star-pick:has(label:nth-child(3):hover) label:nth-child(-n+3) span,
.nev-star-pick:has(label:nth-child(4):hover) label:nth-child(-n+4) span,
.nev-star-pick:has(label:nth-child(5):hover) label:nth-child(-n+5) span { color: #ffd257; }
.nev-star-pick label:has(input:focus-visible) span { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.nev-tag-pick { position: relative; cursor: pointer; }
.nev-tag-pick input { position: absolute; opacity: 0; pointer-events: none; }
.nev-tag-pick:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-hover); }
.nev-host-rating { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.nev-people-pick .nev-radio { align-items: center; }
.nev-people-pick .nev-radio span small { display: block; color: var(--muted); font-size: 12.5px; }
