/* Board admin — layered on top of /assets/styles.css */
body.admin { background: var(--soft); }
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.sidebar { flex: 1 1 220px; max-width: 100%; background: #fff; border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.sidebar .brand { padding: 6px 10px 18px; font-size: 15px; }
.sidebar .brand small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a, .sidebar nav button {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 12px; border: 0; border-radius: 8px; background: none; color: var(--ink);
  font: inherit; font-size: 15px; text-align: left; text-decoration: none; cursor: pointer;
}
.sidebar nav a:hover, .sidebar nav button:hover { background: #EEF2EC; }
.sidebar nav a[aria-current="page"] { background: var(--green-tint); color: var(--green-dark); font-weight: 600; }
.sidebar nav .quiet { color: var(--muted); }
.sidebar .who { margin-top: auto; padding: 12px; font-size: 13px; color: var(--muted); }
.count { min-width: 24px; padding: 2px 8px; border-radius: 999px; background: var(--green); color: #fff; font-size: 12px; text-align: center; }

.content { flex: 999 1 560px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.toolbar h1 { font-size: 26px; }
.toolbar p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.seg { display: flex; gap: 6px; }
.seg button { height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--field); background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }

.panes { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.list { flex: 1 1 320px; min-width: 0; list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list li { border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list button { width: 100%; text-align: left; border: 0; background: #fff; cursor: pointer; font: inherit; color: var(--ink); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.list button:hover { background: var(--soft); }
.list button[aria-current="true"] { background: #EEF4EB; box-shadow: inset 3px 0 0 var(--green); }
.list .top, .list .bottom { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.list .name { font-weight: 600; font-size: 15px; }
.list .date { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.list .topic { font-size: 14px; }
.list .preview { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .empty { padding: 28px; text-align: center; color: var(--muted); }

.badge { flex-shrink: 0; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-new { background: var(--green); color: #fff; }
.badge-replied { background: var(--green-tint); color: var(--green-dark); }
.badge-closed { background: #ECEEEB; color: var(--muted); }

.detail { flex: 2 1 420px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.detail h2 { font-size: 20px; }
.detail .meta { font-size: 14px; color: var(--muted); }
.bubble { padding: 18px; border-radius: 10px; background: var(--soft); display: flex; flex-direction: column; gap: 6px; }
.bubble .when { font-size: 12px; font-weight: 600; color: var(--muted); }
.bubble p { white-space: pre-wrap; line-height: 1.6; font-size: 15px; overflow-wrap: anywhere; }
.bubble.reply { margin-left: 32px; background: var(--green-tint); }
.bubble.reply .when { color: var(--green); }
.placeholder { padding: 40px 0; text-align: center; color: var(--muted); }

.table-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
th { padding: 12px 16px; background: var(--soft); text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
td { padding: 10px 16px; border-bottom: 1px solid var(--line); }
td input, td select { width: 100%; height: 44px; font-size: 15px; }
.icons { display: flex; gap: 4px; justify-content: flex-end; }
.icon { width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.icon:hover { background: var(--chip); }
.icon.danger { color: #A3341F; }
.add { margin: 14px 16px; min-height: 44px; padding: 0 16px; border: 1px dashed #9DB09A; border-radius: 8px; background: #fff; color: var(--green); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }

.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px; gap: 24px; }
.login form { width: 100%; max-width: 400px; padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }

.bulk { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.list li.row-item { display: flex; align-items: stretch; }
.list li.row-item .pick { display: flex; align-items: center; padding: 0 0 0 14px; background: #fff; }
.list li.row-item .pick input { width: 18px; height: 18px; accent-color: #2F5D3A; }
.list li.row-item > button { flex: 1; min-width: 0; }
