:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #17212b;
  background: #eef3f6;
  line-height: 1.45;
  --ink: #102b3f;
  --blue: #156b9b;
  --green: #267847;
  --amber: #a36d17;
  --red: #a93636;
  --border: #d3dee5;
}
* { box-sizing: border-box; }
body { margin: 0; }
header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1rem;
  background: var(--ink);
  color: white;
}
.brand { font-size: 1.18rem; font-weight: 800; }
.subtitle { font-size: .82rem; opacity: .75; }
.session { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.session a { color: #dff4ff; font-weight: 700; text-decoration: none; }
main { max-width: 1280px; margin: 0 auto; padding: 1rem; }
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: .85rem;
  box-shadow: 0 5px 18px rgba(16,43,63,.06);
}
.narrow { max-width: 500px; margin: 3rem auto; }
.notice {
  padding: .8rem;
  margin-bottom: .8rem;
  border: 1px solid #dfbe70;
  background: #fff8e6;
  border-radius: 9px;
}
.online { background: #dff3e5; color: #1d6038; }
.offline { background: #fde5e5; color: #8b2424; }
.status-pill {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-weight: 750;
  font-size: .82rem;
}
.grid { display: grid; gap: .75rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards { display: grid; gap: .65rem; }
.card {
  border: 1px solid var(--border);
  border-left: 5px solid var(--blue);
  border-radius: 9px;
  padding: .8rem;
  background: #fbfcfd;
}
.card.selected { border-color: #468aaa; background: #f0f8fc; }
.card strong { display: block; }
.meta { color: #617584; font-size: .84rem; margin-top: .25rem; }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .7rem; }
button, .button {
  border: 0;
  border-radius: 7px;
  padding: .68rem .9rem;
  background: var(--blue);
  color: white;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}
button.secondary, .button.secondary { background: #e2ebf0; color: #173247; }
button.approve { background: var(--green); }
button.warning { background: var(--amber); }
button.danger { background: var(--red); }
button:disabled { opacity: .48; cursor: not-allowed; }
label { display: block; font-weight: 650; margin-bottom: .75rem; }
input, select, textarea {
  display: block;
  width: 100%;
  margin-top: .3rem;
  padding: .68rem;
  border: 1px solid #b8c6cf;
  border-radius: 7px;
  background: white;
  font: inherit;
}
textarea { min-height: 80px; }
.hidden { display: none !important; }
.message { min-height: 1.3rem; white-space: pre-wrap; margin-top: .5rem; }
.message.error { color: var(--red); }
.message.success { color: var(--green); }
.check-item {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: .8rem;
  margin-bottom: .65rem;
}
.check-item.critical { border-left: 6px solid var(--red); }
.outbox {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: #fff1d6;
  color: #754b00;
  font-weight: 750;
}
canvas {
  display: block;
  max-width: 100%;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f7f9fa;
  touch-action: none;
}
.notification {
  border-left: 5px solid var(--blue);
}
.notification.unread { background: #f0f8fc; }
.signature {
  border-left: 5px solid var(--green);
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f4f7f9;
  padding: .7rem;
  border-radius: 7px;
}
@media (max-width: 780px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  main { padding: .7rem; }
  header { align-items: flex-start; }
  .session { justify-content: flex-end; }
}
