/* Staff portal v2 components. Uses tokens from staff.css. */
:root, [data-theme="dark"] { --coral: #ff7a59; --coral-soft: #3a1c13; }
[data-theme="light"] { --coral: #d2512f; --coral-soft: #fde3da; }
.dot-coral { background: var(--coral); }
.tone-coral { --tone: var(--coral); }
.badge.dept-media { background: var(--coral-soft); color: var(--coral); border-color: transparent; }
.crumbs { color: var(--faint); font-size: 13px; margin-bottom: 6px; }
.crumbs a:hover { color: var(--accent); }
.grid-0 { min-width: 0; }

/* Toasts */
.toasts { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; width: min(440px, 92vw); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 18px 50px rgba(0,0,0,.45); border-left: 4px solid var(--accent); opacity: 0; transform: translateY(-14px); transition: opacity .3s, transform .3s; }
.toast.in { opacity: 1; transform: none; }
.toast .t-ico { font-size: 18px; line-height: 1.2; }
.toast .t-body { flex: 1; min-width: 0; display: grid; }
.toast strong { font-size: 14px; }
.toast small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-x { background: none; border: 0; color: var(--faint); font-size: 18px; cursor: pointer; line-height: 1; }

/* Status dots */
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--faint); flex: none; }
.s-available { background: var(--ok); }
.s-busy { background: var(--crimson); }
.s-away { background: var(--warn); }
.s-offline { background: var(--faint); }
.chip-av { position: relative; display: inline-flex; }
.chip-av .status-dot { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border: 2px solid var(--surface-2); }

/* Form bits */
.form-section { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 12px; }
.form-section:first-child { border-top: 0; padding-top: 0; }
.form-section h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.q-inline { display: flex; gap: 8px; align-items: center; }
.q-inline input { flex: 1; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 14px; }
.people-pick { max-height: 220px; overflow: auto; padding: 4px; border: 1px solid var(--line); border-radius: 10px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle span { position: relative; width: 38px; height: 22px; border-radius: 99px; background: var(--line-strong); transition: background .2s; flex: none; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked + span { background: var(--accent); }
.toggle input:checked + span::after { transform: translateX(16px); }
.toggle input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-glow); }
.toggle.sm span { width: 32px; height: 18px; }
.toggle.sm span::after { width: 12px; height: 12px; }
.toggle.sm input:checked + span::after { transform: translateX(14px); }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented label input { position: absolute; opacity: 0; }
.segmented span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-strong); cursor: pointer; font-weight: 600; font-size: 14px; }
.segmented input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; width: 30px; height: 30px; border-radius: 9px; background: var(--c); border: 2px solid var(--line); cursor: pointer; }
.swatch input:checked + span { outline: 2px solid var(--text); outline-offset: 2px; }
.sticky-save { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 40%); }
.steps-mini { margin: 10px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.cell-input { padding: 6px 8px !important; font-size: 13px !important; min-width: 120px; }

/* Profile preview card and profile hero */
.profile-card { border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pc-banner { height: 84px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 35%, var(--bg))); }
.pc-body { padding: 0 20px 20px; margin-top: -42px; }
.pc-avatar { width: 84px !important; height: 84px !important; border: 4px solid var(--surface) !important; }
.pc-body h3 { font-size: 22px; margin-top: 8px; }
.pc-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin: 8px 0; }
.pc-bio { color: var(--muted); margin: 10px 0; white-space: pre-wrap; font-size: 14px; }
.profile-hero { border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ph-banner { height: 120px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 30%, var(--bg))); }
.ph-body { display: flex; gap: 20px; align-items: flex-end; padding: 0 26px 22px; margin-top: -48px; flex-wrap: wrap; }
.ph-avatar { width: 112px !important; height: 112px !important; border: 5px solid var(--surface) !important; }
.ph-body h1 { font-size: 30px; }
.ph-side { margin-left: auto; text-align: right; display: grid; gap: 4px; justify-items: end; }
.ph-side strong { font-family: var(--font-display); font-size: 28px; }
.ph-side small { color: var(--muted); }
.hero[style*="--banner"] { background: linear-gradient(120deg, var(--surface) 35%, color-mix(in srgb, var(--banner) 30%, var(--surface))); }

/* Notifications */
.notif.is-read { opacity: .6; }

/* Moderation */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.tool-card { display: grid; gap: 6px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.tool-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.tool-card.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.tool-card small { color: var(--muted); font-size: 12px; }
.case-row { border-left: 4px solid var(--line-strong); }
.case-row.sev-high { border-left-color: var(--warn); }
.case-row.sev-critical { border-left-color: var(--crimson); }
.case-row.sev-low { border-left-color: var(--teal); }
.case-id { color: var(--faint); font-size: 13px; min-width: 40px; }
.case-row .badge .ico { width: 12px; height: 12px; }
.timeline { display: grid; gap: 16px; position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; display: flex; gap: 10px; }
.tl-dot { position: absolute; left: -20px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.tl-item p { margin-top: 4px; }
.evidence-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ev-tile { display: grid; gap: 6px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12px; word-break: break-word; }
.ev-tile img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; }
.ev-ico { display: grid; place-items: center; height: 100px; border-radius: 8px; background: var(--surface); color: var(--faint); }
.ev-ico .ico { width: 28px; height: 28px; }

/* Events */
.live-strip { display: flex; gap: 10px; overflow-x: auto; }
.live-card { display: grid; gap: 2px; min-width: 240px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, var(--ok-soft), var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 40%, var(--line)); }
.live-card small { color: var(--muted); }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.event-list { display: grid; gap: 8px; }
.event-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); transition: border-color .15s; }
.event-row:hover { border-color: var(--accent); }
.event-row h4 { font-size: 15px; }
.date-chip { display: grid; place-items: center; width: 50px; height: 54px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: none; }
.date-chip b { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.date-chip strong { font-family: var(--font-display); font-size: 20px; line-height: 1; color: var(--text); }
.check-item { align-items: center; }
.check-item.is-done h4 { text-decoration: line-through; color: var(--faint); }
.tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line-strong); background: transparent; color: var(--accent-ink); cursor: pointer; padding: 0; }
.is-done .tick { background: var(--accent); border-color: var(--accent); }
.tick .ico { width: 14px; height: 14px; }
.tick[disabled] { cursor: default; }

/* Tasks */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 6px; }
.kcol { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-width: 220px; }
.kcol header { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; }
.kcol header h3 { font-size: 14px; }
.kdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--faint); flex: none; }
.k-in_progress { background: var(--accent); }
.k-review { background: var(--teal); }
.k-done { background: var(--ok); }
.col-drop { display: grid; gap: 8px; min-height: 60px; border-radius: 10px; transition: background .15s; }
.col-drop.over { background: var(--accent-soft); }
.kempty { padding: 16px; text-align: center; color: var(--faint); font-size: 13px; border: 1px dashed var(--line-strong); border-radius: 10px; }
.kcard { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line-strong); cursor: pointer; transition: transform .12s, border-color .12s, box-shadow .12s; }
.kcard:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow); }
.kcard.dragging { opacity: .5; }
.kcard.prio-high { border-left-color: var(--warn); }
.kcard.prio-urgent { border-left-color: var(--crimson); }
.kcard.prio-low { border-left-color: var(--teal); }
.kcard h4 { font-size: 14px; line-height: 1.35; }
.kc-top { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.kc-labels { display: flex; flex-wrap: wrap; gap: 4px; }
.kc-labels span { font-size: 11px; padding: 1px 7px; border-radius: 5px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.kc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kc-meta { display: flex; gap: 10px; color: var(--faint); font-size: 12px; align-items: center; }
.kc-meta span { display: inline-flex; align-items: center; gap: 3px; }
.kc-meta .ico { width: 13px; height: 13px; }
.kc-meta .is-overdue { color: var(--crimson); font-weight: 600; }
.kc-img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; }
.avatars { display: flex; }
.avatars .avatar { margin-right: -6px; border: 2px solid var(--surface) !important; }
.prio-tag { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: var(--surface-2); color: var(--muted); }
.p-high { background: var(--warn-soft); color: var(--warn); }
.p-urgent { background: var(--crimson-soft); color: var(--crimson); }
.p-low { background: var(--teal-soft); color: var(--teal); }
.prio { width: 4px; align-self: stretch; border-radius: 4px; background: var(--line-strong); }
.prio.prio-high { background: var(--warn); }
.prio.prio-urgent { background: var(--crimson); }
.bar.thin { height: 5px; }
.status-steps { display: grid; gap: 6px; }
.step-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.step-btn.on { border-color: var(--accent); background: var(--accent-soft); }
.step-btn[disabled] { cursor: default; opacity: .7; }

/* Announcements */
.ann { position: relative; overflow: hidden; }
.ann.is-unread { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.ann.prio-urgent { border-left: 4px solid var(--crimson); }
.ann.prio-important { border-left: 4px solid var(--warn); }
.ann-img { width: calc(100% + 44px); max-height: 280px; object-fit: cover; margin: -22px -22px 16px; }
.ann-body { margin-top: 12px; line-height: 1.65; }
.ann-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ann-foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ack { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 180px; font-size: 13px; }
.ack .bar { flex: 1; max-width: 200px; }

/* Games */
.contrib-head { display: flex; gap: 14px; align-items: center; }
.game-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.game-thumb.fallback, .gt-fallback, .game-hero-thumb.fallback { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.highlights { margin: 12px 0 0; padding-left: 18px; color: var(--muted); display: grid; gap: 4px; }
.contrib-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.contrib-meta > * { display: inline-flex; align-items: center; gap: 5px; }
.contrib-meta .ico { width: 14px; height: 14px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-top: 14px; }
.stat-row > div { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
.stat-row small { display: block; color: var(--faint); font-size: 11px; }
.stat-row strong { font-family: var(--font-display); font-size: 18px; }
.game-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.game-tile { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s; }
.game-tile:hover { border-color: var(--accent); }
.game-tile img, .gt-fallback { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.game-tile div { flex: 1; min-width: 0; display: grid; }
.game-tile small { color: var(--muted); font-size: 12px; }
.game-hero-thumb { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; }

/* Resources */
.res-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.res-side { position: sticky; top: 80px; display: grid; gap: 4px; }
.folder { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; color: var(--muted); font-weight: 500; font-size: 14px; }
.folder span { margin-left: auto; font-size: 12px; color: var(--faint); }
.folder:hover { background: var(--surface-2); color: var(--text); }
.folder.on { background: var(--accent-soft); color: var(--text); }
.folder .ico { width: 16px; height: 16px; color: var(--accent); }
.res-grid { display: grid; gap: 10px; }
.res-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s; }
.res-card:hover { border-color: var(--accent); }
.res-card.is-pinned { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.res-card h4 { display: flex; align-items: center; gap: 6px; }
.res-card h4 .ico { width: 14px; height: 14px; color: var(--accent); }
.res-kind { font-size: 12px; white-space: nowrap; }
.guide { line-height: 1.75; font-size: 15px; }

/* Media */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.asset { border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: grid; }
.asset-thumb { position: relative; display: block; height: 140px; background: var(--surface-2); }
.asset-thumb img, .asset-thumb video { width: 100%; height: 100%; object-fit: cover; }
.asset-thumb .ev-ico { height: 100%; border-radius: 0; }
.asset-ok { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #fff; }
.asset-ok .ico { width: 14px; height: 14px; }
.asset-body { padding: 10px 12px 12px; display: grid; gap: 4px; }
.mini-thumb { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--surface-2); flex: none; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.swatch-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.color-chip { display: grid; gap: 4px; text-align: left; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.color-chip span { height: 54px; border-radius: 8px; background: var(--c); border: 1px solid var(--line); }
.kanban.k4 { grid-template-columns: repeat(4, minmax(200px, 1fr)); }

/* Control Center layout */
.cc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.cc-nav { position: sticky; top: 80px; display: grid; gap: 1px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.cc-title { display: flex; gap: 10px; align-items: center; padding: 4px 6px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.cc-title .ico { width: 26px; height: 26px; color: var(--accent); }
.cc-title strong { display: block; font-family: var(--font-display); }
.cc-title small { color: var(--faint); font-size: 12px; }
.cc-nav .nav-label { padding: 10px 8px 4px; }
.cc-head { margin-bottom: 18px; }
.cc-head h1 { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 800; }
.queue { display: grid; gap: 6px; }
.queue-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); }
.queue-row strong { font-family: var(--font-display); font-size: 18px; color: var(--faint); }
.queue-row.has { color: var(--text); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--accent-soft); }
.queue-row.has strong { color: var(--accent); }
.queue-row:hover { border-color: var(--accent); }

/* Applications */
.app-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.app-card { display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); box-shadow: var(--shadow); }
.app-card-top { display: flex; gap: 6px; flex-wrap: wrap; }
.app-card h3 { font-size: 18px; }
.app-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.app-stats div { padding: 8px; border-radius: 10px; background: var(--surface-2); text-align: center; }
.app-stats strong { display: block; font-family: var(--font-display); font-size: 20px; }
.app-stats small { color: var(--faint); font-size: 11px; }
.q-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface-2); display: grid; gap: 8px; }
.q-top, .q-more { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.q-top .q-label { flex: 1; min-width: 200px; font-weight: 600; }
.q-top select { width: auto; }
.q-more input:first-child { flex: 1; min-width: 160px; }
.q-more select { width: auto; }
.q-move { display: grid; }
.q-move .btn { height: 18px; padding: 0 6px; font-size: 9px; }
.q-options textarea { min-height: 70px; }
.answers { display: grid; gap: 14px; margin: 0; }
.answers dt { font-weight: 600; font-size: 14px; color: var(--muted); }
.answers dd { margin: 4px 0 0; }
.ans-section { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); border-top: 1px solid var(--line); padding-top: 10px; }
.review-box { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Staff & Roles */
.add-staff summary { cursor: pointer; font-weight: 700; display: flex; gap: 8px; align-items: center; list-style: none; }
.add-staff summary::-webkit-details-marker { display: none; }
.staff-table td { vertical-align: middle; }
.staff-table .who { display: flex; align-items: center; gap: 10px; }
.role-picker { position: relative; }
.role-picker summary { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; cursor: pointer; padding: 6px 28px 6px 8px; border-radius: 10px; border: 1px solid var(--line-strong); min-width: 180px; position: relative; }
.role-picker summary::-webkit-details-marker { display: none; }
.role-picker summary .caret { position: absolute; right: 8px; top: 50%; transform: translateY(-50%) rotate(90deg); width: 14px; height: 14px; color: var(--faint); }
.role-picker[open] summary { border-color: var(--accent); }
.rp-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: 280px; max-height: 380px; overflow: auto; display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.rp-group { display: grid; gap: 4px; }

/* Tenure */
.tier-section { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.tier-section header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tier-rows { display: grid; }
.tier-row { display: grid; grid-template-columns: 44px 28px minmax(140px, 1.4fr) 60px minmax(120px, 1fr) minmax(130px, 1fr); gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); transition: background .12s; }
.tier-row:last-child { border-bottom: 0; }
.tier-row:hover { background: var(--surface-2); }
.tier-row.is-me { background: var(--accent-soft); box-shadow: none; }
.tier-row .rank { font-family: var(--font-display); font-weight: 800; color: var(--faint); }
.tr-name, .tr-tenure, .tr-next { display: grid; min-width: 0; }
.tr-name strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-depts { display: flex; gap: 4px; }
.tr-next { gap: 4px; }

/* Org chart with four departments */
.org-depts.d4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.org-branch.b4 { grid-template-columns: repeat(4, 1fr); }
.org-branch.b4::after { left: 12.5%; right: 12.5%; }

@media (max-width: 1100px) {
  .org-depts.d4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-branch.b4 { display: none; }
  .cc { grid-template-columns: 1fr; }
  .cc-nav { position: static; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .cc-nav .nav-label, .cc-title { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .res-layout { grid-template-columns: 1fr; }
  .res-side { position: static; }
  .kanban, .kanban.k4 { grid-template-columns: repeat(4, 80vw); }
  .tier-row { grid-template-columns: 40px 28px 1fr; }
  .tr-depts, .tr-tenure, .tr-next { display: none; }
  .org-depts.d4 { grid-template-columns: 1fr; }
  .ph-side { margin-left: 0; text-align: left; justify-items: start; }
}

.table-wrap.allow-pop { overflow: visible; }
@media (max-width: 1000px) { .table-wrap.allow-pop { overflow-x: auto; } }

/* Discord sync */
.map-row { display: grid; grid-template-columns: 180px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.map-row:last-of-type { border-bottom: 0; }
.map-label { display: grid; gap: 2px; justify-items: start; }
.role-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; flex: none; }
.steps-mini li.done { color: var(--ok); }
@media (max-width: 700px) { .map-row { grid-template-columns: 1fr; } }

/* Control Center menu becomes a swipeable strip on phones */
@media (max-width: 820px) {
  .cc-nav { display: flex; overflow-x: auto; gap: 6px; padding: 8px; position: sticky; top: 60px; z-index: 4; scrollbar-width: none; }
  .cc-nav .nav-label, .cc-title { display: none; }
  .cc-nav .nav-item { flex: none; white-space: nowrap; margin: 0; border: 1px solid var(--line); }
  .cc-nav .nav-item.active { box-shadow: none; border-color: var(--accent); }
  .cc-head h1 { font-size: 22px; }
}
@media (max-width: 820px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .kpi { padding: 12px; } .kpi strong { font-size: 20px; } .kpi .kpi-name { font-size: 15px; } }

/* ---------- Form controls: consistent across browsers and themes ---------- */
:root, [data-theme="dark"] { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }
.field, .row > *, .q-inline > *, .filters > * { min-width: 0; }
input, select, textarea, button { font: inherit; }
input[type="email"], input[type="password"], input[type="tel"], input[type="time"], input[type="month"], input[type="week"] {
  width: 100%; color: var(--text); padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface);
}
input, select, textarea { max-width: 100%; box-sizing: border-box; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px !important; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%) !important;
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55% !important; background-size: 5px 5px, 5px 5px !important; background-repeat: no-repeat !important; }
select option { background: var(--surface); color: var(--text); }
::placeholder { color: var(--faint); opacity: 1; }
textarea { line-height: 1.5; min-height: 90px; }
input:disabled, select:disabled, textarea:disabled, fieldset:disabled input, fieldset:disabled textarea, fieldset:disabled select { opacity: .6; cursor: not-allowed; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 1000px var(--surface) inset; box-shadow: 0 0 0 1000px var(--surface) inset; caret-color: var(--text);
  transition: background-color 9999s ease-out 0s;
}
input[type="file"] { width: 100%; padding: 6px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--surface-2); color: var(--muted); }
input[type="file"]::file-selector-button { font: inherit; font-weight: 600; margin-right: 10px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; }
input[type="color"] { width: 64px; height: 40px; padding: 3px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="datetime-local"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .75; }
input[type="number"] { -moz-appearance: textfield; }
.cell-input { width: 100%; }
.inline-form select, .q-top select, .q-more select { min-width: 120px; }
.find input { min-width: 0; width: 100%; }
.check, .toggle { line-height: 1.35; }
.check input[type="checkbox"], .check input[type="radio"] { flex: none; margin: 0; }

/* Website editor button (site editors only) */
.edit-site { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 12px 10px; width: calc(100% - 24px); background: var(--accent); color: var(--accent-ink); border: 0; font-weight: 600; cursor: pointer; }
.edit-site:hover { filter: brightness(1.08); }
.edit-site svg { width: 16px; height: 16px; }
p.flash { margin-top: 0; }

/* ---------- Control Center: Sidebar & Pages ---------- */
.nav-editor { display: grid; gap: 16px; }
.ne-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: sticky; top: 8px; z-index: 5; padding: 12px 14px; }
.ne-bar .grow { flex: 1; color: var(--muted); font-size: 13px; }
.btn.danger-text { color: var(--crimson); }
.ne-section { display: grid; gap: 12px; }
.ne-sec-head { display: flex; align-items: center; gap: 10px; }
.ne-sec-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ne-name { flex: 1; min-width: 0; font-weight: 600; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; color: var(--text); font: inherit; font-weight: 600; }
.ne-name:hover { border-color: var(--line); }
.ne-name:focus { border-color: var(--accent); background: var(--surface-2); outline: none; }
.ne-dept { border: 1px solid var(--line); border-left: 4px solid var(--dc, var(--accent)); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; background: var(--surface); }
.ne-dept.is-hidden, .ne-item.is-hidden { opacity: .6; }
.ne-dept-head, .ne-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ne-dept-name { font-family: var(--font-display); font-size: 16px; }
.ne-color { width: 32px; height: 32px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; flex: none; }
.ne-items { display: grid; gap: 6px; }
.ne-item { border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.ne-row { padding: 6px 8px; }
.ne-ico-view { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--surface); color: var(--muted); flex: none; }
.ne-ico-view svg { width: 16px; height: 16px; }
.ne-badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.ne-badge { font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.ne-badge.accent { color: var(--accent); border-color: var(--accent); }
.ne-badge.warn { color: var(--warn); border-color: var(--warn); }
.ne-badge.bad { color: var(--crimson); border-color: var(--crimson); }
.ne-btns { display: flex; align-items: center; gap: 4px; flex: none; }
.ne-btns .icon-btn { width: 30px; height: 30px; font-size: 15px; }
.icon-btn.danger { color: var(--crimson); }
.ne-body { border-top: 1px solid var(--line); padding: 12px; display: grid; gap: 12px; }
.ne-dept > .ne-body { border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.ne-field { display: grid; gap: 6px; }
.ne-field > label { font-weight: 600; font-size: 13px; }
.ne-field .hint, .ne-body .hint { font-size: 12px; color: var(--muted); margin: 0; }
.ne-checks { display: grid; gap: 6px; }
.ne-roles { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ne-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 4px; max-height: 120px; overflow: auto; padding: 2px; }
.ne-ico { height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.ne-ico svg { width: 16px; height: 16px; }
.ne-ico:hover { color: var(--text); }
.ne-ico.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.ne-q { display: grid; gap: 6px; padding: 10px; border: 1px dashed var(--line-strong, var(--line)); border-radius: 10px; }
.ne-q-row { display: grid; grid-template-columns: 1fr 150px auto auto; gap: 8px; align-items: center; }
.ne-q-btns { display: flex; gap: 2px; }
.ne-q-btns .icon-btn { width: 28px; height: 28px; }
.ne-inline { display: flex; gap: 8px; }
.ne-inline input { flex: 1; min-width: 0; }
.ne-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ne-test-result { font-size: 12.5px; color: var(--muted); }
.ne-test-result.ok { color: var(--ok); }
.ne-test-result.bad { color: var(--crimson); }
.ne-add { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.ne-empty { font-size: 13px; padding: 4px 2px; }
.ne-new-dept { display: flex; gap: 8px; padding-top: 6px; }
.ne-new-dept input { flex: 1; min-width: 0; }
@media (max-width: 720px) {
  .ne-row, .ne-dept-head { flex-wrap: wrap; }
  .ne-badges { order: 3; width: 100%; justify-content: flex-start; }
  .ne-q-row, .ne-two { grid-template-columns: 1fr; }
}

/* Custom pages */
.prose { line-height: 1.65; }
.prose h2, .prose h3, .prose h4 { margin: 18px 0 8px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 14px; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-2); padding: 2px 5px; border-radius: 5px; }
.req { color: var(--crimson); }
.sub-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); }
.sub-card summary { cursor: pointer; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.answers { display: grid; gap: 4px; margin: 10px 0 0; }
.answers dt { font-size: 12px; color: var(--muted); }
.answers dd { margin: 0 0 6px; white-space: pre-wrap; word-break: break-word; }

/* ---------- Contracts ---------- */
.contract-list { display: grid; gap: 10px; }
.contract-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.contract-row:hover { border-color: var(--accent); }
.contract-row.todo { border-left: 4px solid var(--warn); }
.contract-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.contract-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.contract-top .grow { flex: 1; }
.contract-doc { max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 4vw, 44px); }
.contract-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 22px; }
.contract-head h1 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); margin: 4px 0 8px; }
.contract-kicker { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0; }
.contract-body { font-size: 15.5px; }
.sig-area { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 22px; display: grid; gap: 16px; }
.sign-form { display: grid; gap: 14px; }
.sig-pad { position: relative; height: 170px; border-radius: 12px; background: #fbfcfe; border: 1px solid var(--line); overflow: hidden; }
.sig-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.sig-line { position: absolute; left: 24px; right: 24px; bottom: 34px; border-top: 1px dashed #9aa6b8; font-size: 11px; color: #6b778a; padding-top: 4px; pointer-events: none; }
.decline summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.sig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sig-block { display: grid; gap: 4px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.sig-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sig-img { width: 100%; max-width: 320px; height: 90px; object-fit: contain; object-position: left center; background: #fff; border-radius: 8px; }
.sig-typed { font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: 34px; line-height: 90px; height: 90px; color: var(--text); }
.sig-block small { color: var(--muted); font-size: 12.5px; }
.fingerprint { font-size: 12px; color: var(--faint); margin: 0; }
@media (max-width: 640px) { .sig-grid { grid-template-columns: 1fr; } .contract-head { flex-direction: column; } }
@media print {
  .sidebar, .topbar, .no-print, .toasts, .flash, rx-editor { display: none !important; }
  .shell, .main, .content { display: block !important; margin: 0 !important; padding: 0 !important; }
  body { background: #fff !important; color: #000 !important; }
  .contract-doc { border: 0; max-width: none; padding: 0; background: #fff; color: #000; }
  .contract-doc .muted, .sig-block small, .fingerprint { color: #444 !important; }
  .sig-block { background: #fff; border-color: #ccc; }
  .sig-typed { color: #000; }
}
.pick-list { display: grid; gap: 6px; max-height: 210px; overflow: auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.pick-list .is-hidden { display: none; }
.tabs-inline { display: flex; gap: 6px; flex-wrap: wrap; align-content: flex-start; align-items: flex-start; }
.contract-edit { max-width: 860px; margin: 0 auto 18px; }

/* ---------- Scrollbars: thin, dark, blue on hover ---------- */
html { scrollbar-width: thin; scrollbar-color: var(--line-strong, var(--line)) transparent; }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong, var(--line)) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: var(--line-strong, var(--line)); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--accent); }
::-webkit-scrollbar-corner { background: transparent; }
/* Sidebar menu: the bar only shows while you hover it */
.sidebar .nav { scrollbar-color: transparent transparent; }
.sidebar .nav:hover { scrollbar-color: var(--line-strong, var(--line)) transparent; }
.sidebar .nav::-webkit-scrollbar-thumb { background-color: transparent; }
.sidebar .nav:hover::-webkit-scrollbar-thumb { background-color: var(--line-strong, var(--line)); }
/* Control Center menu scrolls on its own instead of running off the screen */
@media (min-width: 821px) {
  .cc-nav { max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; }
}

/* ---------- Appeals ---------- */
.appeal-list { display: grid; gap: 12px; }
.appeal { display: grid; gap: 12px; }
.appeal-head { display: flex; gap: 12px; align-items: flex-start; }
.appeal-head h3 { font-size: 17px; }
.appeal-head .grow { flex: 1; min-width: 0; }
.appeal-actions { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.tabs-inline .count { margin-left: 6px; }

/* ---------- Logs button and panel (admins only) ---------- */
.log-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--accent); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.log-fab:hover { background: var(--accent); color: var(--accent-ink); }
.log-fab .ico { width: 17px; height: 17px; }
.log-panel { position: fixed; right: 18px; bottom: 72px; z-index: 61; width: min(420px, calc(100vw - 24px)); max-height: min(680px, calc(100vh - 100px)); display: none; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); overflow: hidden; }
.log-panel.open { display: flex; }
.lp-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.lp-head strong { display: block; font-family: var(--font-display); font-size: 17px; }
.lp-head small { color: var(--muted); font-size: 12.5px; }
.lp-list { flex: 1; overflow-y: auto; padding: 12px; display: grid; gap: 10px; align-content: start; }
.lp-ch { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); padding: 10px 12px; display: grid; gap: 6px; }
.lp-ch.off { opacity: .6; }
.lp-ch-head { display: flex; align-items: center; gap: 8px; }
.lp-name { flex: 1; min-width: 0; font: inherit; font-weight: 600; color: var(--text); background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 5px 7px; }
.lp-name:focus, .lp-name:hover { border-color: var(--line); outline: none; }
.lp-sum { margin: 0; font-size: 12.5px; color: var(--muted); }
.lp-body { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.lp-label { font-weight: 600; font-size: 13px; }
.lp-hint { margin: 0; font-size: 12px; color: var(--muted); }
.lp-row { display: flex; gap: 6px; align-items: center; }
.lp-row input { flex: 1; min-width: 0; }
.lp-test { font-size: 12.5px; color: var(--muted); }
.lp-test.ok { color: var(--ok); } .lp-test.bad { color: var(--crimson); }
.lp-all { font-weight: 600; }
.lp-group { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: var(--surface); }
.lp-group summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; }
.lp-group summary::-webkit-details-marker { display: none; }
.lp-count { font-size: 11.5px; color: var(--muted); }
.lp-events { display: grid; gap: 4px; padding: 8px 0 4px 24px; }
.lp-events .check { font-size: 13px; }
.lp-add { justify-self: start; }
.lp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.lp-status { font-size: 13px; color: var(--muted); }
.lp-switch { position: relative; width: 34px; height: 20px; flex: none; cursor: pointer; }
.lp-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lp-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-strong, var(--line)); transition: background .15s; }
.lp-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.lp-switch input:checked + span { background: var(--accent); }
.lp-switch input:checked + span::after { transform: translateX(14px); }
@media print { .log-fab, .log-panel { display: none !important; } }

/* ---------- Roles & Permissions ---------- */
.role-list { display: grid; gap: 10px; align-content: start; }
.role-card { display: grid; gap: 10px; }
.role-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.role-color { width: 34px; height: 34px; padding: 2px; border-radius: 8px; flex: none; cursor: pointer; }
.role-name { flex: 1; min-width: 160px; font-weight: 700; font-family: var(--font-display); font-size: 16px; }
.role-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.role-perms { display: flex; flex-wrap: wrap; gap: 6px 14px; }
@media (max-width: 720px) { .role-grid { grid-template-columns: 1fr; } }

/* ---------- Notifications (cleaner list and pop-ups) ---------- */
.notif-list { padding: 4px; display: grid; }
.notif-row { --nc: var(--accent); display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 12px; }
.notif-row + .notif-row { border-top: 1px solid var(--line); border-top-left-radius: 0; border-top-right-radius: 0; }
.notif-row:hover { background: var(--surface-2); }
.notif-row.is-read { opacity: .62; }
.notif-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--nc) 16%, transparent); color: var(--nc); }
.notif-ico .ico { width: 17px; height: 17px; }
.notif-main { flex: 1; min-width: 0; }
.notif-title { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.notif-body { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.notif-meta { margin-top: 4px; font-size: 12px; color: var(--faint); }
.notif-actions { display: flex; gap: 6px; flex: none; align-items: center; }
.notif-more { justify-self: center; margin: 10px auto 8px; }
.cat-moderation { --nc: var(--crimson); } .cat-event { --nc: var(--teal); } .cat-media { --nc: var(--coral); }
.cat-payroll { --nc: var(--ok); } .cat-leave { --nc: var(--warn); } .cat-task, .cat-contract { --nc: var(--brass); }
@media (max-width: 640px) { .notif-row { flex-wrap: wrap; } .notif-actions { width: 100%; padding-left: 46px; } }
.toast { --nc: var(--accent); border-left-color: var(--nc); }
.toast .t-ico { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--nc); flex: none; font-size: 0; }
.toast small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
