/* One locally hosted SVG set, shared by navigation and actions. */
.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.nav > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
}
.nav .icon {
  width: 22px;
  height: 22px;
}
.card-icon .icon {
  width: 25px;
  height: 25px;
}
.card-link .icon,
.section-heading .icon,
.situation-option .icon {
  width: 18px;
  height: 18px;
}
.gold-button,
.outline-button,
.row-action,
#attachment-selection {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.gold-button .icon,
.outline-button .icon {
  width: 17px;
  height: 17px;
}
.book-mark .icon {
  width: 30px;
  height: 30px;
}
.attachment-open .icon {
  margin-right: 7px;
}
#attach-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--blue);
}
#attach-button:hover {
  background: #e8edf8;
}
#attachment-selection {
  justify-content: flex-start;
}
/* Every close button matches the conversation menu's: a rounded square on the paper tint. */
.dialog-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--navy);
}
/* Keep every menu item reachable without a second scrolling surface. */
.sidebar,
.chat-active .sidebar {
  height: 100dvh;
  padding: 24px 20px 18px;
  overflow: hidden;
}
.sidebar .brand-label,
.chat-active .sidebar .brand-label {
  margin: 16px 0 20px;
}
.sidebar nav,
.chat-active .sidebar nav {
  flex-shrink: 0;
  gap: 4px;
}
.sidebar .nav,
.chat-active .sidebar .nav {
  min-height: 40px;
  padding: 9px 10px;
}
.sidebar .nav-label,
.chat-active .sidebar .nav-label {
  margin: 16px 10px 4px;
}
.sidebar-bottom,
.chat-active .sidebar-bottom {
  padding-top: 18px;
}
@media (max-height: 680px) {
  .sidebar-bottom,
  .chat-active .sidebar-bottom {
    display: none;
  }
}
@media (max-height: 740px) {
  .sidebar .brand-label,
  .chat-active .sidebar .brand-label {
    display: none;
  }
  .sidebar nav,
  .chat-active .sidebar nav {
    margin-top: 14px;
    gap: 3px;
  }
  .sidebar .nav-label,
  .chat-active .sidebar .nav-label {
    margin-top: 9px;
  }
}
@media (max-width: 850px) {
  .sidebar,
  .chat-active .sidebar {
    padding: 20px 10px;
  }
  .sidebar .nav {
    padding: 9px 0;
  }
  .sidebar nav {
    margin-top: 20px;
  }
}
@media (max-width: 550px) {
  .sidebar {
    padding: 20px 7px;
  }
}
/* Short windows share the compact mobile header. */
@media (max-height: 620px) {
  .sidebar {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 48px;
    padding: 0 12px;
    gap: 10px;
  }
  .topbar-breadcrumb {
    display: none;
  }
}
