:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --border: #2d3a4f;
  --text: #e7ecf3;
  --muted: #8b9cb3;
  --accent: #5b9fd4;
  --accent2: #3d8b6e;
  --danger: #c75c5c;
  --radius: 10px;
  --thread-bg: #0c1015;
  --bubble-user: #2b5278;
  --bubble-bot: #252d3a;
  --bubble-user-text: #f0f4f8;
  font-family: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* —— Messenger chat layout —— */
body.page-messenger,
body.page-inbox {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.page-messenger .wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  padding: 0;
}

body.page-inbox .wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  max-width: none;
  margin: 0;
  width: 100%;
  padding: 0;
}

.inbox-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
  background: var(--thread-bg);
}

.inbox-sidebar {
  width: min(320px, 38vw);
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.inbox-sidebar-head {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.inbox-sidebar-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.inbox-sidebar-sub {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.inbox-sidebar-toolbar {
  margin: 0.6rem 0 0;
}

.inbox-new-web-btn {
  width: 100%;
  font-size: 0.85rem;
  padding: 0.45rem 0.65rem;
}

.thread-placeholder {
  padding: 1.25rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 28rem;
}

.inbox-mobile-actions {
  display: none;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
}

.inbox-mobile-actions a {
  color: var(--accent);
  text-decoration: none;
}

.inbox-mobile-actions a:hover {
  text-decoration: underline;
}

.conv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.conv-item {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.conv-item:hover {
  background: rgba(91, 159, 212, 0.08);
}

.conv-item-active {
  background: rgba(91, 159, 212, 0.15);
  border-left: 3px solid var(--accent);
}

.conv-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.conv-item-channel {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}

.conv-item-preview {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.inbox-main .messenger {
  flex: 1;
  min-height: 0;
}

.panel-sub {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
}

.webhook-url {
  word-break: break-all;
  font-size: 0.85rem;
}

/* Settings: Testing vs Production */
.deploy-block {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.deploy-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.deploy-hint {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.deploy-help {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
}

.deploy-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.deploy-card {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}

.deploy-card:hover {
  border-color: var(--accent);
}

.deploy-card:has(.deploy-radio-input:checked) {
  border-color: var(--accent);
  background: rgba(91, 159, 212, 0.12);
  box-shadow: 0 0 0 1px var(--accent);
}

.deploy-radio-input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.deploy-card-label {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.fieldset-sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.field-p {
  margin: 0.75rem 0;
}

.field-p label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.field-p .field-hint {
  display: block;
  font-size: 0.82rem;
  margin-top: 0.35rem;
  line-height: 1.4;
}

.field-text {
  width: 100%;
  max-width: 36rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.messenger {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--thread-bg);
}

.messenger-head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.messenger-head-inner {
  flex: 1;
  min-width: 0;
}

.inbox-back {
  display: none;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0.4rem 0.65rem;
  border: none;
  border-radius: 10px;
  background: rgba(91, 159, 212, 0.14);
  color: var(--accent);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1.2;
}

.inbox-back:hover {
  background: rgba(91, 159, 212, 0.22);
}

.inbox-sync-btn {
  flex-shrink: 0;
  padding: 0.35rem 0.55rem;
  font-size: 0.88rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  line-height: 1.2;
  align-self: flex-start;
}

.inbox-sync-btn:hover:not(:disabled) {
  background: rgba(91, 159, 212, 0.12);
}

.inbox-sync-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.inbox-back-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.messenger-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.messenger-sub {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.messenger-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.batch-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.85rem;
  background: #1e2a38;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.batch-status {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.batch-now {
  flex-shrink: 0;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #0f1419;
  font-weight: 600;
  cursor: pointer;
}

.batch-now:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.msg-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  max-width: 100%;
}

.msg-row-user {
  flex-direction: row-reverse;
}

.msg-row-bot {
  flex-direction: row;
}

.msg-avatar {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 0.55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.05;
  color: #fff;
}

.msg-avatar-user {
  background: linear-gradient(145deg, #4a8fd4, #2d5a8a);
}

.msg-avatar-bot {
  background: linear-gradient(145deg, #3d8b6e, #2a5c4a);
}

.msg-stack {
  max-width: 78%;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.msg-row-user .msg-stack {
  align-items: flex-end;
}

.msg-row-bot .msg-stack {
  align-items: flex-start;
}

.msg-bubble {
  padding: 0.55rem 0.85rem;
  border-radius: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.msg-bubble-user {
  background: var(--bubble-user);
  color: var(--bubble-user-text);
  border-bottom-right-radius: 0.35rem;
}

.msg-bubble-bot {
  background: var(--bubble-bot);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 0.35rem;
}

.msg-bubble .msg-body .msg-figure {
  margin: 0.5rem 0 0;
  padding: 0;
}

.msg-bubble .msg-inline-img {
  display: block;
  max-width: 100%;
  max-height: min(320px, 55vh);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.msg-bubble .msg-figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.msg-user-images {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.35rem;
  width: 100%;
  align-items: stretch;
}

.msg-bubble-user .msg-user-images .msg-figure {
  margin: 0;
}

.msg-bubble-err {
  background: #3a2424;
  border: 1px solid var(--danger);
  color: #f0d0d0;
  border-radius: 1rem;
  max-width: 90%;
  margin: 0 auto 0 2.5rem;
}

.msg-photo-tag {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.msg-photo-tag::before {
  content: "";
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  background: currentColor;
  opacity: 0.7;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.msg-meta {
  font-size: 0.68rem;
  color: var(--muted);
  padding: 0 0.35rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.msg-send-messenger {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  border: 1px solid var(--accent);
  background: rgba(91, 159, 212, 0.12);
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}

.msg-send-messenger:hover:not(:disabled) {
  background: rgba(91, 159, 212, 0.22);
}

.msg-send-messenger:disabled {
  cursor: default;
  opacity: 0.85;
}

.msg-send-messenger-done {
  border-color: var(--accent2);
  color: var(--accent2);
  background: rgba(61, 139, 110, 0.12);
}

.messenger-composer {
  flex-shrink: 0;
  padding: 0.65rem 0.75rem 0.85rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.composer-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.composer-attach {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.25rem;
}

.attach-btn {
  cursor: pointer;
  color: var(--muted);
  display: flex;
  padding: 0.2rem;
  border-radius: 8px;
}

.attach-btn:hover {
  color: var(--accent);
  background: var(--bg);
}

.attach-name {
  font-size: 0.75rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  padding: 0.35rem 0.35rem 0.35rem 0.85rem;
}

.composer-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  resize: none;
  max-height: 120px;
  min-height: 1.5rem;
  line-height: 1.4;
  padding: 0.4rem 0;
}

.composer-input:focus {
  outline: none;
}

.composer-send {
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #0f1419;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.composer-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.composer-status {
  font-size: 0.75rem;
  color: var(--muted);
  min-height: 1rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  background: var(--surface);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); }

nav {
  display: flex;
  gap: 1.25rem;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.panel h1 { margin-top: 0; font-size: 1.35rem; }
.panel h2 { font-size: 1.15rem; }

.muted { color: var(--muted); font-size: 0.95rem; }

.messages {
  max-height: 360px;
  overflow-y: auto;
  margin: 1rem 0;
  padding: 0.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.bubble {
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius);
  white-space: pre-wrap;
}

.bubble.user {
  background: #243447;
  margin-left: 2rem;
}

.bubble.assistant {
  background: #1e3330;
  border-left: 3px solid var(--accent2);
  margin-right: 2rem;
}

.bubble.err {
  background: #3a2424;
  border-left: 3px solid var(--danger);
}

.chat-form .field {
  display: block;
  margin-bottom: 1rem;
}

.chat-form .field span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

textarea,
input[type="text"],
input[type="file"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

textarea { resize: vertical; min-height: 72px; }

.row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--border);
  color: var(--text);
}

.btn.primary { background: var(--accent); color: #0f1419; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.sm { padding: 0.35rem 0.65rem; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.stack fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.stack legend { padding: 0 0.5rem; color: var(--muted); }
.stack.tight fieldset { margin-top: 0; }

.stack p { margin: 0.5rem 0; }
.stack label { display: block; }

.product-list { list-style: none; padding: 0; margin: 1rem 0 0; }

.product-row {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.meta { flex: 1; }
.meta .notes { font-size: 0.9rem; color: var(--muted); }
.meta .ok { font-size: 0.85rem; color: var(--accent2); }
.meta .err { font-size: 0.85rem; color: var(--danger); }

.inline { display: inline; margin-top: 0.35rem; }

.cred-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.cred-row {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.cred-row .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.cred-row .ok { font-size: 0.8rem; color: var(--accent2); }

/* —— Mobile / touch —— */
.btn,
.conv-item,
.composer-send,
.attach-btn,
.batch-now {
  touch-action: manipulation;
}

@media (max-width: 720px) {
  body.page-inbox,
  body.page-messenger {
    height: 100vh;
    height: 100dvh;
  }

  /* Inbox: no global header — full app like mobile Messenger; use sidebar shortcuts. */
  body.page-inbox > header.top {
    display: none;
  }

  .top {
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0.65rem max(0.75rem, env(safe-area-inset-right))
      max(0.65rem, env(safe-area-inset-bottom))
      max(0.75rem, env(safe-area-inset-left));
    padding-top: max(0.65rem, env(safe-area-inset-top));
  }

  .brand {
    font-size: 1rem;
    flex: 1 1 auto;
    min-width: 0;
  }

  nav {
    flex: 1 1 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .wrap {
    padding: 0.75rem max(0.75rem, env(safe-area-inset-left))
      max(1rem, env(safe-area-inset-bottom))
      max(0.75rem, env(safe-area-inset-right));
  }

   body.page-inbox .wrap {
    padding: 0;
  }

  body.page-messenger .wrap {
    max-width: none;
    width: 100%;
  }

  /* Inbox: full-height list OR full-height chat (Messenger-style on small screens). */
  .inbox-shell:not(.inbox-mobile-show-chat) .inbox-main {
    display: none !important;
  }

  .inbox-shell.inbox-mobile-show-chat .inbox-sidebar {
    display: none !important;
  }

  .inbox-shell.inbox-mobile-show-chat .inbox-main {
    display: flex !important;
    flex: 1;
    min-height: 0;
    flex-direction: column;
  }

  .inbox-shell:not(.inbox-mobile-show-chat) .inbox-sidebar {
    width: 100%;
    max-height: none;
    flex: 1;
    min-height: 0;
    border-right: none;
    border-bottom: none;
  }

  .inbox-back {
    display: inline-flex;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
  }

  .panel {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .panel h1 {
    font-size: 1.2rem;
  }

  .inbox-sidebar-head {
    padding: 0.5rem 0.75rem;
    padding-top: max(0.55rem, env(safe-area-inset-top));
  }

  .inbox-mobile-actions {
    display: flex;
    align-items: center;
  }

  .inbox-sidebar-sub {
    display: none;
  }

  .inbox-sidebar-title {
    font-size: 0.95rem;
    margin: 0;
  }

  .conv-item {
    padding: 0.75rem 0.85rem;
    min-height: 44px;
  }

  .conv-list {
    -webkit-overflow-scrolling: touch;
  }

  .inbox-main {
    min-height: 0;
    flex: 1;
  }

  body.page-inbox .messenger-sub {
    display: none !important;
  }

  body.page-inbox .messenger-head {
    align-items: center;
    padding: 0.25rem 0.5rem;
    padding-left: max(0.45rem, env(safe-area-inset-left));
    padding-right: max(0.45rem, env(safe-area-inset-right));
    padding-top: max(0.3rem, env(safe-area-inset-top));
    min-height: 2.75rem;
  }

  body.page-inbox .messenger-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.page-inbox .inbox-back {
    padding: 0.35rem 0.45rem;
    min-height: 40px;
    min-width: 40px;
    font-size: 0.8rem;
  }

  /* Icon-only back on small screens; button keeps aria-label. */
  body.page-inbox .inbox-back-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .messenger-thread {
    padding: 0.75rem 0.65rem;
  }

  .msg-stack {
    max-width: 88%;
  }

  .msg-avatar {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.5rem;
  }

  .msg-bubble {
    font-size: 0.92rem;
  }

  .messenger-composer {
    padding: 0.55rem 0.65rem max(0.65rem, env(safe-area-inset-bottom));
  }

  .composer-input {
    font-size: 16px;
  }

  .composer-send {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
  }

  .deploy-options {
    flex-direction: column;
  }

  .deploy-card {
    min-width: 0;
  }

  .deploy-title {
    font-size: 1.05rem;
  }

  .product-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cred-row .meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .webhook-url {
    font-size: 0.78rem;
  }
}

@media (max-width: 400px) {
  nav a {
    font-size: 0.85rem;
  }
}
