/* Inbox polish — click row → detail drawer (reuses topo3 drawer styling) */
.ibx-row { cursor: pointer; transition: background 0.08s, border-color 0.08s; }
.ibx-row:hover { background: var(--s2); }
.ibx-row.on { background: var(--s3); border-left: 2px solid var(--t1); padding-left: 10px; }
.ibx-row .ibx-actions button { cursor: pointer; }

.ibx-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 460px; background: var(--s1);
  border-left: 1px solid var(--b2);
  border-radius: var(--r) 0 0 var(--r);
  overflow: hidden;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.18s ease-out;
  display: flex; flex-direction: column;
  font-family: var(--sans);
}
.ibx-drawer.open { transform: translateX(0); }

.ibx-dh {
  padding: 14px 16px; border-bottom: 1px solid var(--b2);
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
  background: var(--t1); color: var(--bg);
}
/* states as wash + edge, like the incident drawer; text stays --t1 */
.ibx-dh.urgent { background: var(--fail-wash); color: var(--t1); border-bottom-color: var(--fail); }
.ibx-dh.warn   { background: var(--hold-wash); color: var(--t1); border-bottom-color: var(--hold); }
.ibx-dh.info   { background: var(--s3); color: var(--t1); border-bottom: 1px dashed var(--t3); }
.ibx-dh .kind { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; margin-bottom: 4px; }
.ibx-dh h3 { font-family: var(--sans); font-size: 18px; font-weight: 700; line-height: 1.15; }
.ibx-dh .sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; margin-top: 5px; }
.ibx-dh .x { background: transparent; border: 1px solid currentColor; border-radius: var(--r-c); color: inherit; width: 26px; height: 26px; font-family: var(--mono); font-size: 14px; cursor: pointer; line-height: 1; }
.ibx-dh .x:hover { background: var(--b2); }

.ibx-db { flex: 1; overflow-y: auto; }
.ibx-sec { border-bottom: 1px solid var(--b2); padding: 14px 16px; }
.ibx-sec:last-child { border-bottom: 0; }
.ibx-sec h4 { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--t3); margin-bottom: 8px; }
.ibx-sec .body-text { font-size: 13px; line-height: 1.55; color: var(--t1); }

.ibx-kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-family: var(--mono); font-size: 11px; }
.ibx-kv .k { color: var(--t3); letter-spacing: 0.04em; text-transform: uppercase; font-size: 10px; }
.ibx-kv .v { color: var(--t1); text-align: right; }
.ibx-kv .v.urgent { color: var(--fail); }
.ibx-kv .v.warn { color: var(--hold); }
.ibx-kv .v.info { color: var(--t2); }
/* the "Linked" rows reuse .info as links: --t1, underlined (shell .lnk) */
.ibx-kv .v.info[onclick] { color: var(--t1); text-decoration: underline; text-decoration-color: var(--b3); text-underline-offset: 2px; }
.ibx-kv .v.info[onclick]:hover { text-decoration-color: var(--t1); }

.ibx-df {
  padding: 12px 16px; border-top: 1px solid var(--b2);
  display: flex; flex-wrap: wrap; gap: 8px; background: var(--s2);
}
.ibx-df button {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 12px; background: var(--bg); border: 1.5px solid var(--b2); border-radius: var(--r-c);
  color: var(--t1); cursor: pointer;
  transition: border-color 0.2s, background 0.2s; flex: 1; min-width: 100px;
}
.ibx-df button:hover { border-color: var(--b3); }
.ibx-df button.primary { background: var(--t1); color: var(--bg); border-color: var(--t1); box-shadow: var(--lift); }
.ibx-df button.danger { border-color: var(--fail); color: var(--fail); }
.ibx-df button.danger:hover { background: var(--fail-wash); }

.ibx-scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 199; opacity: 0; pointer-events: none; transition: opacity 0.18s; }
.ibx-scrim.open { opacity: 1; pointer-events: auto; }
