/* ルーキーズの島の窓（メンバーズ・運営が見る一覧）と、ルーキーズが PR を書く窓。色は app.css の紺・金・緑に合わせる */
:root { --rk-green: #7be08a; --rk-green-d: #2f8a49; --rk-leaf: rgba(80, 200, 110, .14); }

.rk { min-width: 0; }
.rk-head { display: flex; align-items: center; gap: 12px; padding-right: 36px; }
.rk-head h2 { font-size: 22px; margin-bottom: 2px; }
.rk-head .muted { margin: 0; font-size: 13.5px; line-height: 1.6; }
.rk-mark { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: radial-gradient(circle at 50% 35%, #2c6b3d, #123524 72%); border: 2px solid var(--rk-green-d); box-shadow: 0 0 0 3px rgba(123, 224, 138, .12), 0 8px 18px rgba(0, 0, 0, .35); }

/* 数のタイル */
.rk-stats { margin: 14px 0 4px; }
.rk-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rk-stat { min-width: 0; background: var(--bg2); border: 2px solid var(--line); border-radius: 14px; padding: 10px 8px 8px; text-align: center; }
.rk-stat b { display: block; font-family: var(--head); font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rk-stat b small { font-family: var(--body); font-weight: 800; font-size: 12px; color: var(--sub); margin-left: 2px; }
.rk-stat span { display: block; font-size: 12px; font-weight: 800; color: var(--sub); margin-top: 2px; line-height: 1.3; }
.rk-stat.live b { color: var(--ok); }
.rk-stat.live { border-color: rgba(46, 230, 166, .55); }
.rk-promoted { margin: 6px 2px 0; }

/* タブ */
.seg.rk-tabs { margin: 12px 0 10px; }
.rk-tabs button { min-width: 0; padding: 6px 4px; line-height: 1.25; display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.rk-tabs .rk-n:empty { display: none; }
.rk-tl { white-space: nowrap; }
.rk-n { font-style: normal; font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 9px; background: var(--panel2); color: var(--ink); border: 1px solid var(--line); }
.rk-tabs button.on .rk-n { background: #1a1300; color: var(--accent); border-color: #1a1300; }
.sec > h3 .rk-n:empty { display: none; }

/* 名前（押すと会員カード） */
.rk-who { appearance: none; border: 0; background: none; color: var(--ink); padding: 0; display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; cursor: pointer; font: inherit; text-align: left; }
.rk-who img.face { width: 32px; height: 32px; border-radius: 50%; flex: none; border: 2px solid var(--rk-green-d); }
.rk-who b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-who.me { cursor: default; }

/* PR */
.rk-prs { display: grid; gap: 10px; }
.rk-pr { min-width: 0; background: var(--bg2); border: 2px solid var(--line); border-left: 4px solid var(--rk-green); border-radius: 14px; padding: 10px 12px; }
.rk-pr-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rk-pr-head .rk-who { flex: 1 1 auto; }
.rk-pr-head time { flex: none; font-size: 12px; color: var(--dim); white-space: nowrap; }
.rk-tool { flex: none; appearance: none; border: 1px solid var(--line); background: var(--panel2); color: var(--sub); border-radius: 999px; font-size: 12px; font-weight: 800; padding: 4px 10px; min-height: 30px; cursor: pointer; }
.rk-tool:hover { color: var(--hot); border-color: var(--hot); }
.rk-text { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; font-size: 15px; }

/* ルーキーズ一覧 */
.rk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.rk-card { min-width: 0; display: flex; flex-direction: column; background: var(--bg2); border: 2px solid var(--line); border-radius: 16px; overflow: hidden; }
.rk-card.is-on { border-color: rgba(46, 230, 166, .5); }
.rk-card-main { appearance: none; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.rk-card-main:hover { background: rgba(255, 255, 255, .03); }
.rk-card-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rk-ava { position: relative; flex: none; }
.rk-ava img.face { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--rk-green-d); display: block; }
.rk-dot { position: absolute; right: 0; bottom: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--ok); border: 2px solid var(--bg2); }
.rk-nick { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-company { display: block; font-size: 12.5px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-doing { margin: 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rk-goals { margin: 0; display: grid; gap: 6px; }
.rk-goal { min-width: 0; background: rgba(7, 10, 31, .5); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; }
.rk-goal dt { font-size: 11.5px; font-weight: 800; color: var(--accent); display: flex; gap: 4px; align-items: center; }
.rk-goal dd { margin: 2px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rk-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.rk-meta span { font-size: 11.5px; font-weight: 700; color: var(--sub); background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-meta span.on { color: #032318; background: var(--ok); border-color: #000; }
.rk-card-foot { padding: 0 12px 12px; }
.rk-card-foot .btn { width: 100%; }

/* 動き */
.rk-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rk-log-item { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.rk-log-icon { flex: none; width: 26px; text-align: center; font-size: 16px; }
.rk-log-text { appearance: none; border: 0; background: none; color: var(--sub); font: inherit; font-size: 14px; text-align: left; padding: 0; cursor: pointer; display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.rk-log-text img.face { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.rk-log-text > span { min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
.rk-log-text b { color: var(--ink); }
.rk-log-item time { flex: none; font-size: 12px; color: var(--dim); white-space: nowrap; }
.rk-log-item.k-promote .rk-log-text b { color: var(--accent); }

.rk-empty { padding: 26px 12px; }

/* ルーキーズの PR の窓 */
.rk-can { margin: 14px 0 12px; padding: 12px 14px; border-radius: 14px; border: 1px dashed #4f7a52; background: var(--rk-leaf); color: #d8f0d8; }
.rk-can h3 { font-size: 14px; margin: 0 0 6px; color: var(--rk-green); }
.rk-can ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.rk-can li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.6; }
.rk-can li > span:first-child { flex: none; width: 20px; text-align: center; }
.rk-can .btn { max-width: 100%; white-space: normal; text-align: center; }
.rk-form { display: grid; gap: 8px; }
.rk-field { display: block; min-width: 0; }
.rk-ta { display: block; resize: vertical; min-height: 120px; max-height: 45vh; line-height: 1.7; }
.rk-ta:disabled { opacity: .6; }
.rk-form-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; font-weight: 800; color: var(--sub); }
.rk-rest.over { color: var(--hot); }
.rk-today { color: var(--rk-green); }
.rk-today.zero { color: var(--r2); }
.rk-form .tiny { margin: 0; line-height: 1.6; }
.rk-pr.mine { border-left-color: var(--accent); }

@media (max-width: 560px) {
  .rk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rk-stat b { font-size: 24px; }
}
@media (max-width: 400px) {
  .rk-head { gap: 10px; }
  .rk-head h2 { font-size: 19px; }
  .rk-mark { width: 44px; height: 44px; font-size: 24px; }
  .rk-tabs button { font-size: 12.5px; }
  .rk-wide { display: none; }
  .rk-pr { padding: 10px; }
}
