.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-weight: 800;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16, 25, 20, 0.16);
}

.button:active {
  transform: translateY(0);
  box-shadow: none;
}

.button-primary {
  color: #fff;
  background: var(--red);
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-secondary {
  color: #fff;
  background: var(--blue);
}

.button-danger {
  color: #fff;
  background: var(--danger);
}

.button-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
}

.button-wide {
  width: fit-content;
  min-width: 190px;
}

.text-link {
  color: var(--red-dark);
  font-weight: 800;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.flash-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-small);
  background: var(--surface-strong);
  box-shadow: 0 10px 25px rgba(4, 10, 7, 0.1);
}

.flash-success {
  border-left-color: var(--green);
}

.flash-error {
  border-left-color: var(--danger);
}

.flash-warning {
  border-left-color: var(--gold);
}

.flash-close,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.55);
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.flash-close:hover,
.icon-button:hover {
  color: var(--danger);
  background: rgba(155, 37, 40, 0.08);
  transform: translateY(-1px);
}

.avatar,
.message-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  object-fit: cover;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 5px 16px rgba(7, 15, 10, 0.18);
}

.avatar-large {
  width: 76px;
  height: 76px;
}

.avatar-preview {
  width: 60px;
  height: 60px;
}

.avatar-fallback {
  font-weight: 900;
}

.type-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 5px 12px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(4, 10, 7, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.type-card:hover {
  border-color: rgba(184, 47, 50, 0.36);
  background: var(--surface-strong);
  box-shadow: 0 18px 40px rgba(4, 10, 7, 0.18);
  transform: translateY(-3px);
}

.type-card strong {
  align-self: end;
}

.type-card span:last-child {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff;
  border-radius: var(--radius-small);
  background: var(--blue);
}

.type-icon .icon {
  width: 23px;
  height: 23px;
}

.disabled-card {
  opacity: 0.55;
  pointer-events: none;
}

.status-node,
.status-dot {
  display: inline-block;
  border-radius: 999px;
}

.status-node {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(154, 106, 31, 0.14);
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--blue);
}

.status-reviewing {
  background: var(--gold);
}

.status-closed {
  background: var(--muted);
}

.status-open {
  background: var(--green);
}

.notice-line {
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(154, 106, 31, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 247, 226, 0.9);
}

.notice-line a {
  margin-left: auto;
  color: var(--gold);
  font-weight: 900;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
}

.field b {
  color: var(--danger);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field textarea {
  min-height: 126px;
  resize: vertical;
}

.field.compact textarea {
  min-height: 82px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(184, 47, 50, 0.52);
  box-shadow: 0 0 0 4px rgba(184, 47, 50, 0.12);
  background: #fff;
  outline: 0;
}

.stack-form {
  display: grid;
  gap: 15px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.avatar-preview-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  padding: 10px 0;
}

.profile-handle {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.badge-open {
  background: var(--green);
}

.badge-reviewing {
  background: var(--gold);
}

.badge-closed {
  background: var(--muted);
}

.staff-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
}

.staff-pill .icon {
  color: var(--blue);
}

.owner-tag {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
}
