/* Выпадающий выбор ролей, каналов и участников (js/picker.js): поле + окно с поиском и страницами. */

.pick { position: relative; min-width: 0; }
.pick.disabled { opacity: .55; }
.pick-trigger {
  width: 100%; min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 8px; text-align: left;
  border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: 400 0.92rem/1.4 var(--font); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.pick-trigger:hover { border-color: var(--brand-200); background: var(--surface-2); }
.pick-trigger:focus-visible, .pick.open .pick-trigger { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.pick-trigger:disabled { cursor: not-allowed; }
.pick-value { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pick-placeholder { color: var(--text-3); padding-left: 5px; }
.pick-chevron { width: 15px; height: 15px; flex: none; color: var(--text-3); transition: transform .15s ease; }
.pick.open .pick-chevron { transform: rotate(180deg); }

/* чип значения: роль (цвет Discord), канал (значок) */
.pick-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 28px; padding: 0 10px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface-3); color: var(--text); font-size: 0.88rem; font-weight: 500;
  min-width: 0; padding-top: 3px; padding-bottom: 3px; line-height: 1.3; text-align: left; white-space: normal; overflow-wrap: anywhere;   /* длинное название переносится, а не обрезается */
}
.pick-chip-icon { width: 15px; height: 15px; flex: none; color: var(--text-3); }
.pick-chip.role.colored {
  color: var(--chip-color); background: color-mix(in srgb, var(--chip-color) 14%, transparent);
  border-color: color-mix(in srgb, var(--chip-color) 38%, transparent);
}
.pick-chip.missing { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.pick-chip.empty { background: transparent; border-color: transparent; color: var(--text-2); padding-left: 2px; }

.pick-selected { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; }
.pick-selected .pick-chip { padding-right: 6px; border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; }
.pick-x {
  display: inline-grid; place-items: center; align-self: stretch; min-height: 28px; width: 24px; cursor: pointer; color: var(--text-3);
  border: 1px solid var(--border); border-left: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--surface-3);
}
.pick-x .icon { width: 12px; height: 12px; }
.pick-x:hover { color: var(--danger); }

/* окно */
.pick-pop {
  position: fixed; z-index: 90; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-pop); overflow: hidden; display: grid; max-width: calc(100vw - 16px);
}
.pick-search-wrap { display: flex; align-items: center; gap: 8px; margin: 8px; padding: 0 11px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-3); }
.pick-search-wrap:focus-within { border-color: var(--brand); box-shadow: var(--focus); }
.pick-search-wrap .icon { width: 16px; height: 16px; flex: none; }
.pick-pop input.pick-search { min-height: 38px; padding: 0; border: 0; background: transparent; box-shadow: none; flex: 1; min-width: 0; outline: none; }
.pick-pop input.pick-search:focus-visible { box-shadow: none; }
.pick-pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 6px 8px 8px; border-bottom: 1px solid var(--border); }
.pick-pages { color: var(--text-3); font-size: 0.84rem; min-width: 44px; text-align: center; }
.pick-page { width: 32px; height: 28px; border-radius: var(--r-sm); border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; font: inherit; }
.pick-page:hover:not(:disabled) { background: var(--surface-3); }
.pick-page:disabled { opacity: .4; cursor: default; }
.pick-pager[hidden] { display: none; }
.pick-pager[hidden] + .pick-list { border-top: 1px solid var(--border); }

.pick-list { display: grid; gap: 2px; padding: 6px; max-height: min(48vh, 420px); overflow-y: auto; overscroll-behavior: contain; }
.pick-row { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 10px 4px 8px; border-radius: var(--r-sm); cursor: pointer; }
.pick-row.active { background: var(--surface-2); }
.pick-row.on { background: var(--brand-50); }
.pick-row.on.active { background: var(--brand-100); }
.pick-row .pick-chip { flex: 0 1 auto; }
.pick-tick { margin-left: auto; width: 16px; height: 16px; color: var(--brand-text); flex: none; }
.pick-box { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 5px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--on-brand); }
.pick-box .icon { width: 12px; height: 12px; stroke-width: 3; }
.pick-row.on .pick-box { background: var(--brand); border-color: var(--brand); }
.pick-none { padding: 18px 12px; text-align: center; color: var(--text-3); font-size: 0.9rem; }
.pick-count { flex: none; color: var(--text-3); font-size: 0.86rem; font-variant-numeric: tabular-nums; }

/* Обычные выпадающие списки (<select>) заменены этим же полем — см. js/selectify.js. Сам <select> скрыт, но остаётся в странице. */
select[data-pick-native] { display: none !important; }
.pick.sel { min-width: 180px; }

/* ---------- анимации выбора ---------- */
@keyframes pick-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
@keyframes pick-in-up { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes pick-out { to { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes pick-out-up { to { opacity: 0; transform: translateY(6px) scale(.97); } }
@keyframes pick-row-in { from { opacity: 0; transform: translateX(-8px); } }
@keyframes pick-val { from { opacity: 0; transform: translateY(6px) scale(.94); } }
@keyframes pick-tick { from { opacity: 0; transform: scale(0) rotate(-30deg); } }

/* окно вырастает из поля (вверх или вниз — куда оно открылось) и так же убирается */
.pick-pop { transform-origin: top center; animation: pick-in .24s var(--ease-out) both; }
.pick-pop.up { transform-origin: bottom center; animation-name: pick-in-up; }
.pick-pop.closing { animation: pick-out .16s ease-in both; pointer-events: none; }
.pick-pop.up.closing { animation-name: pick-out-up; }

/* строки списка появляются по очереди только при открытии */
.pick-list.fresh .pick-row { animation: pick-row-in .28s var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 10) * 24ms); }
.pick-list.fresh .pick-tick { animation: pick-tick .45s var(--spring) .12s both; }
.pick-row { transition: background-color .14s ease; }
.pick-chip { transition: transform .22s var(--spring), background-color .15s ease, border-color .15s ease; }
.pick-row.active .pick-chip { transform: translateX(3px); }

/* поле: стрелка с пружиной, новое значение «выпрыгивает» */
.pick-chevron { transition: transform .32s var(--spring), color .15s ease; }
.pick.open .pick-chevron { color: var(--brand-text); }
.pick-value.swap > * { animation: pick-val .32s var(--spring) both; }

/* галочки при выборе нескольких: рамка заливается, галочка выскакивает с поворотом */
.pick-box { transition: background-color .18s ease, border-color .18s ease, transform .26s var(--spring); }
.pick-box .icon { opacity: 0; transform: scale(0) rotate(-24deg); transition: transform .32s var(--spring), opacity .12s ease; }
.pick-row.on .pick-box .icon { opacity: 1; transform: none; }
.pick-row:active .pick-box { transform: scale(.84); }

/* ---------- выбор цвета (js/colorpicker.js) ---------- */
.cp-trigger { gap: 10px; padding-left: 12px; }
.cp-dot { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px var(--border-strong); transition: background-color .15s ease, transform .3s var(--spring); }
.cp-trigger:hover .cp-dot { transform: scale(1.12); }
.cp-code { flex: 1 1 auto; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.cp-pop { width: 284px; padding: 14px; gap: 14px; display: grid; }
.cp-area { position: relative; height: 150px; border-radius: var(--r-sm); cursor: crosshair; touch-action: none; user-select: none;
  background-image: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent); }
.cp-hue { position: relative; height: 14px; border-radius: 999px; cursor: pointer; touch-action: none; user-select: none;
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.cp-cursor { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 3px solid #fff; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .45); transition: transform .2s var(--spring); }
.cp-cursor-bar { top: 50%; }
.cp-area:active .cp-cursor, .cp-hue:active .cp-cursor { transform: scale(1.3); }
.cp-row { display: flex; align-items: center; gap: 10px; }
.cp-preview { width: 40px; height: 40px; border-radius: var(--r-sm); flex: none; box-shadow: inset 0 0 0 1px var(--border-strong); transition: background-color .15s ease; }
.cp-input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.cp-swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 9px; }
.cp-swatch { aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .45);
  transition: transform .22s var(--spring), box-shadow .15s ease; }
.cp-swatch:hover { transform: scale(1.2); }
.cp-swatch.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand); transform: scale(1.08); }
input[data-cp-native] { display: none !important; }

/* ---------- выбор времени и даты (timepicker.js) ---------- */
input[data-tp-native] { display: none !important; }
.tp-trigger { gap: 10px; padding-left: 12px; }
.tp-icon { width: 18px; height: 18px; flex: none; color: var(--text-3); transition: color .15s ease; }
.pick.open .tp-icon { color: var(--brand-text); }
.tp-label { flex: 1 1 auto; font-variant-numeric: tabular-nums; }
.tp-label.empty { color: var(--text-3); }
.tp-pop { width: 252px; padding: 12px; gap: 12px; display: grid; }
.tp-pop-date { width: 296px; }
.tp-top { display: flex; align-items: center; gap: 8px; }
.tp-input { flex: 1; min-width: 0; text-align: center; font-size: 1.05rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.tp-done { flex: none; }
.tp-cols { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px; }
.tp-colwrap { display: grid; gap: 6px; min-width: 0; }
.tp-colhead { font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.tp-colon { color: var(--text-3); font-weight: 600; margin-top: 18px; }
.tp-col { position: relative; height: 168px; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 2px; padding: 3px; border-radius: var(--r-sm); background: var(--surface-2); scrollbar-width: thin; }
.tp-cols.compact .tp-col { height: 116px; }
.tp-item { min-height: 32px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text); font: inherit; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .12s ease, color .12s ease; }
.tp-item:hover { background: var(--surface-3); }
.tp-item.on { background: var(--brand); color: var(--on-brand); font-weight: 600; }
.tp-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-preset { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); font: inherit; font-size: 0.84rem; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.tp-preset:hover { border-color: var(--brand-200); color: var(--text); }
.tp-preset.on { background: var(--brand-50); border-color: var(--brand); color: var(--brand-text); }
.tp-nav { display: flex; align-items: center; justify-content: space-between; }
.tp-month { font-weight: 600; }
.tp-arrow { width: 32px; height: 32px; border: 0; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.tp-arrow:hover { background: var(--surface-3); }
.tp-arrow .icon { width: 18px; height: 18px; }
.tp-prev { transform: rotate(90deg); }
.tp-next { transform: rotate(-90deg); }
.tp-week, .tp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.tp-week span { font-size: 0.74rem; color: var(--text-3); }
.tp-day { aspect-ratio: 1; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text); font: inherit; font-size: 0.88rem; cursor: pointer; transition: background-color .12s ease; }
.tp-day.blank { pointer-events: none; }
.tp-day:hover { background: var(--surface-3); }
.tp-day.today { box-shadow: inset 0 0 0 1px var(--brand); }
.tp-day.on { background: var(--brand); color: var(--on-brand); font-weight: 600; }
.tp-foot { display: flex; align-items: center; justify-content: space-between; }

/* плашка про часовой пояс */
.tp-hint { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); background: var(--brand-50); color: var(--text); font-size: 0.84rem; line-height: 1.4; }
.tp-hint-icon { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--brand-text); }
.tp-hint-text { display: grid; gap: 1px; min-width: 0; }
.tp-hint-text b { font-weight: 600; }
.tp-hint-text span { color: var(--text-2); }
.tp-hint-now { font-variant-numeric: tabular-nums; color: var(--brand-text) !important; font-weight: 600; }
.tz-notice { margin-top: 12px; }
.tz-notice b { font-weight: 600; }
.tz-notice p { margin: 0; }
.tz-notice p + p { margin-top: 4px; font-size: 0.88rem; }
.tz-now { font-variant-numeric: tabular-nums; color: var(--brand-text); }
.tp-col { -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }

/* анимации выбора времени и даты */
@media (prefers-reduced-motion: no-preference) {
  .tp-pop > * { animation: tp-rise .34s var(--ease-out) both; }
  .tp-pop > :nth-child(2) { animation-delay: .05s; }
  .tp-pop > :nth-child(3) { animation-delay: .1s; }
  .tp-pop > :nth-child(4) { animation-delay: .15s; }
  .tp-pop > :nth-child(5) { animation-delay: .2s; }
  .tp-pop > :nth-child(6) { animation-delay: .25s; }
  @keyframes tp-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .tp-item.on, .tp-day.on { animation: tp-pick .42s var(--spring) both; }
  @keyframes tp-pick { 0% { transform: scale(.82); } 100% { transform: scale(1); } }
  .tp-preset.on { animation: tp-pick .38s var(--spring) both; }
  .tp-preset:hover { transform: translateY(-1px); }
  .tp-preset { transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .2s var(--spring); }
  .tp-item { transition: background-color .15s ease, color .15s ease, transform .2s var(--spring); }
  .tp-item:hover:not(.on) { transform: scale(1.06); }
  .tp-day:hover:not(.on) { transform: scale(1.1); }
  .tp-day { transition: background-color .15s ease, transform .2s var(--spring); }
  .tp-colon { animation: tp-blink 1.4s ease-in-out infinite; }
  @keyframes tp-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
  .tp-icon { transition: color .15s ease, transform .4s var(--spring); }
  .pick.open .tp-icon { transform: rotate(-20deg) scale(1.12); }
  .tp-arrow { transition: background-color .15s ease, transform .2s var(--spring); }
  .tp-arrow:hover { transform: scale(1.1); }
  .tp-arrow:active { transform: scale(.92); }
  .tp-hint { animation: tp-rise .4s var(--ease-out) .3s both; }
  .tp-done { transition: transform .2s var(--spring), background-color .15s ease; }
  .tp-done:hover { transform: translateY(-1px); }
}

/* ---------- выбор эмодзи (emojipicker.js) ---------- */
.ep-trigger { cursor: pointer; min-height: 46px; padding-left: 10px; }
.ep-glyph { font-size: 1.25rem; flex: none; transition: transform .35s var(--spring); }
.pick.open .ep-glyph, .ep-trigger:hover .ep-glyph { transform: rotate(-12deg) scale(1.15); }
.ep-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; min-width: 0; }
.ep-empty { color: var(--text-3); padding-left: 2px; }
.ep-chip { display: inline-flex; align-items: center; gap: 2px; padding: 1px 3px 1px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-3); font-size: 1.15rem; line-height: 1.3; }
.ep-emoji-img { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; }
.ep-x { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-3); display: grid; place-items: center; cursor: pointer; transition: background-color .15s ease, color .15s ease, transform .2s var(--spring); }
.ep-x .icon { width: 12px; height: 12px; }
.ep-x:hover { background: var(--danger-soft); color: var(--danger); transform: scale(1.15); }
.ep-pop { width: 344px; }
.ep-tabs { position: relative; display: flex; padding: 0 8px; border-bottom: 1px solid var(--border); }
.ep-tab { flex: 1; min-height: 40px; border: 0; background: transparent; border-radius: var(--r-sm) var(--r-sm) 0 0; font-size: 1.15rem; cursor: pointer; transition: background-color .15s ease, transform .22s var(--spring); }
.ep-tab:hover { background: var(--surface-2); transform: translateY(-2px); }
.ep-ind { position: absolute; left: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); transition: transform .32s var(--spring), width .32s var(--spring), opacity .15s ease; }
.ep-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 6px 8px 8px; height: 236px; overflow-y: auto; overscroll-behavior: contain; align-content: start; scrollbar-width: thin; }
.ep-label { grid-column: 1 / -1; padding: 6px 4px 2px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.ep-none { grid-column: 1 / -1; padding: 28px 8px; text-align: center; color: var(--text-3); }
.ep-cell { position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; font-size: 1.35rem; cursor: pointer; transition: background-color .12s ease, transform .2s var(--spring); }
.ep-cell img { width: 26px; height: 26px; object-fit: contain; }
.ep-cell:hover, .ep-cell:focus-visible { background: var(--surface-3); transform: scale(1.28); z-index: 1; outline: none; }
.ep-cell.on { background: var(--brand-50); box-shadow: inset 0 0 0 2px var(--brand); }
.ep-cell.on::after { content: "✓"; position: absolute; right: 2px; bottom: 0; font-size: 0.6rem; font-weight: 700; color: var(--brand-text); }
.ep-foot { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--surface-2); }
.ep-big { width: 40px; flex: none; text-align: center; font-size: 1.9rem; line-height: 1; display: grid; place-items: center; min-height: 34px; }
.ep-big-emoji.ep-emoji-img { width: 34px; height: 34px; }
.ep-name { flex: 1; min-width: 0; color: var(--text-2); font-size: 0.84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .ep-grid.fresh .ep-cell { animation: ep-in .34s var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 28) * 12ms); }
  @keyframes ep-in { from { opacity: 0; transform: scale(.55) translateY(8px); } to { opacity: 1; transform: none; } }
  .ep-chip.fresh { animation: ep-chip .45s var(--spring) both; }
  @keyframes ep-chip { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
  .ep-big.bump { animation: ep-bump .38s var(--spring); }
  @keyframes ep-bump { 0% { transform: scale(.6) rotate(-14deg); } 100% { transform: none; } }
  .ep-cell.on { animation: tp-pick .4s var(--spring); }
  .ep-pop > * { animation: tp-rise .34s var(--ease-out) both; }
  .ep-pop > :nth-child(2) { animation-delay: .04s; }
  .ep-pop > :nth-child(3) { animation-delay: .08s; }
  .ep-pop > :nth-child(4) { animation-delay: .12s; }
}

/* ---------- страница «Репутация» ---------- */
.rp-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.rp-mode { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; transition: border-color .18s ease, background-color .18s ease, transform .25s var(--spring); }
.rp-mode input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rp-mode:hover { border-color: var(--brand-200); transform: translateY(-2px); }
.rp-mode:focus-within { box-shadow: var(--focus); }
.rp-mode.on { border-color: var(--brand); background: var(--brand-50); }
.rp-mode-icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--surface-3); color: var(--text-2); transition: background-color .18s ease, color .18s ease, transform .3s var(--spring); }
.rp-mode-icon .icon { width: 20px; height: 20px; }
.rp-mode.on .rp-mode-icon { background: var(--brand); color: var(--on-brand); transform: scale(1.06) rotate(-6deg); }
.rp-mode-text { display: grid; gap: 3px; min-width: 0; }
.rp-mode-text b { font-weight: 600; }
.rp-mode-text span { color: var(--text-2); font-size: 0.86rem; line-height: 1.4; }
.rp-mode-tick { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--on-brand); opacity: 0; transform: scale(.4); transition: opacity .15s ease, transform .3s var(--spring); }
.rp-mode-tick .icon { width: 12px; height: 12px; stroke-width: 3; }
.rp-mode.on .rp-mode-tick { opacity: 1; transform: none; }
.rp-mode-help { margin: 10px 0 22px; }
.content .fields > .rp-wide2 { grid-column: span 2; }
.rp-block { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.rp-block > .sub-title.first { margin-top: 0; }
.rp-block[hidden] { display: none; }
.rp-enter { animation: rp-in .4s var(--ease-out) both; }
@keyframes rp-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rp-tagbox { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 46px; padding: 6px 8px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); cursor: text; transition: border-color .15s ease, box-shadow .15s ease; }
.rp-tagbox:focus-within { border-color: var(--brand); box-shadow: var(--focus); }
.rp-tags { display: contents; }
.rp-tag { display: inline-flex; align-items: center; gap: 2px; padding: 2px 3px 2px 10px; border-radius: 999px; background: var(--brand-50); border: 1px solid var(--brand-200); color: var(--brand-text); font-size: 0.88rem; font-weight: 500; }
.rp-tag.fresh { animation: rp-in .3s var(--spring) both; }
.rp-tag-x { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; transition: background-color .15s ease, transform .2s var(--spring); }
.rp-tag-x .icon { width: 12px; height: 12px; }
.rp-tag-x:hover { background: var(--danger-soft); color: var(--danger); transform: scale(1.15); }
.content .rp-tagbox .rp-tag-input { flex: 1; min-width: 110px; min-height: 30px; padding: 0 4px; border: 0; background: transparent; box-shadow: none; outline: none; }
.rp-checks { display: grid; gap: 6px; }
.rp-check .check-help { margin-top: -4px; }
@media (max-width: 900px) { .rp-modes { grid-template-columns: 1fr; } }
