/* Staff console extras (loaded after portal.css) */
.topbar-actions { display: flex; gap: 8px; }
.view { max-width: 1100px; }

.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px;
  border-radius: 999px; background: var(--gold-grad); color: #1a1204; font: 700 .75rem var(--sans); vertical-align: middle; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar input[type="search"] { flex: 1 1 240px; }
.toolbar select { flex: 0 1 220px; }

.rows { display: flex; flex-direction: column; gap: 10px; }
.clickable { cursor: pointer; transition: border-color .2s, transform .15s; }
.clickable:hover { border-color: var(--gold); transform: translateY(-1px); }
.row-end { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.block-head select { max-width: 260px; }
.quick { display: flex; gap: 10px; flex-wrap: wrap; }
.tile-button { text-align: left; font: inherit; color: inherit; cursor: pointer; }
.tile-button:hover { border-color: var(--gold); }
.tiles.small .tile strong { font-size: 1.4rem; }
.danger-zone { display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 16px; }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: .35em .75em; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-new { color: var(--info); background: rgba(110,168,255,.12); }
.pill-contacted, .pill-pending { color: var(--warn); background: rgba(242,183,30,.12); }
.pill-enrolled, .pill-active { color: var(--good); background: rgba(79,209,139,.12); }
.pill-not_interested, .pill-suspended { color: var(--muted); background: rgba(169,165,155,.14); }

/* drawer */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 30; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); z-index: 40; background: var(--bg-alt);
  border-left: 1px solid var(--line); overflow-y: auto; transform: translateX(100%);
  transition: transform .28s cubic-bezier(.2,.7,.2,1); }
.drawer.open { transform: none; }
.d-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 18px 20px; background: var(--bg-alt); border-bottom: 1px solid var(--line-soft); }
.d-head h2 { font-size: 1.35rem; }
.icon-btn { background: var(--surface); border: 1px solid var(--line); color: var(--text); width: 36px; height: 36px;
  border-radius: 10px; font-size: 1.3rem; line-height: 1; cursor: pointer; flex: none; }
.d-body { padding: 18px 20px 40px; display: flex; flex-direction: column; gap: 14px; }
.d-section { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 1rem; color: var(--gold-hi); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.field { display: flex; flex-direction: column; }
.field label { margin-top: 0; }
.drawer-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.detail { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.detail div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line-soft); }
.detail div:last-child { border-bottom: 0; }
.detail dt { color: var(--muted); font-size: .85rem; }
.detail dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; white-space: pre-wrap; }

/* marking */
.work-view { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.work-view img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #000; }

@media (max-width: 720px) {
  .view { padding: 18px 14px 60px; }
  .topbar, .tabbar { padding-left: 14px; padding-right: 14px; }
  .row-card { flex-direction: column; align-items: flex-start; }
  .row-end { justify-content: flex-start; }
  .detail div { grid-template-columns: 1fr; gap: 0; }
  .d-body { padding: 16px 14px 36px; }
}
