.header { margin-bottom: 1.5rem; gap: 0.6rem; }
.header h1 { display: inline-flex; align-items: center; gap: 0.6rem; }
.header h1 svg { width: 1.4em; height: 1.4em; flex: none; }
.header .page-subtitle { margin: 0; max-width: 32rem; }

.nt-card {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.nt-field + .nt-field,
.nt-more > .nt-field { margin-top: 1.25rem; }

.nt-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 650;
}

.nt-row { display: flex; gap: 0.5rem; }
.nt-input-wrap { position: relative; flex: 1; min-width: 0; }

.nt-prefix {
  position: absolute;
  inset: 0 auto 0 1rem;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: max(1rem, 16px);
  color: var(--muted);
  pointer-events: none;
}

#topic,
#title { width: 100%; padding: 0.8rem 1rem; }
#topic {
  padding-left: calc(1rem + 8ch + 0.25rem);
  font-family: var(--font-mono);
}
#message {
  display: block;
  width: 100%;
  min-height: 9rem;
  padding: 0.8rem 1rem;
  line-height: 1.55;
  resize: vertical;
}

#topic[aria-invalid="true"],
#message[aria-invalid="true"] { border-color: var(--danger-border); }
#topic[aria-invalid="true"]:focus,
#message[aria-invalid="true"]:focus {
  border-color: var(--danger-border);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger-border) 25%, transparent);
}

.nt-icon-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  padding: 0;
  cursor: pointer;
}

.nt-hint,
.nt-meta { margin-top: 0.4rem; font-size: 0.82rem; line-height: 1.45; color: var(--muted); }
.nt-meta { display: flex; justify-content: space-between; gap: 1rem; }
.nt-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nt-count.over { color: var(--danger-border); font-weight: 700; }

.nt-more { margin-top: 1.25rem; padding-top: 1rem; border-top: 2px dashed var(--border); }
.nt-more summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.nt-more summary::-webkit-details-marker { display: none; }
.nt-more summary:hover { color: var(--accent); }
.nt-more summary svg { transition: transform 0.2s; }
.nt-more[open] summary svg { transform: rotate(90deg); }

.nt-prio { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.nt-chip { display: inline-flex; position: relative; cursor: pointer; }
.nt-chip input { position: absolute; opacity: 0; pointer-events: none; }
.nt-chip span {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--field);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.nt-chip:hover span { border-color: var(--accent); color: var(--accent); }
.nt-chip input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.nt-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.nt-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.nt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85rem 1.4rem;
  border: 0;
  font-size: 1rem;
  cursor: pointer;
}
.nt-btn:disabled { opacity: 0.7; cursor: progress; }
.nt-btn[aria-busy="true"] .nt-send-icon { display: none; }

.nt-spinner {
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: nt-spin 0.7s linear infinite;
}
@keyframes nt-spin { to { transform: rotate(360deg); } }

.nt-status {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-left: 5px solid;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: nt-in 0.2s ease;
}
.nt-status svg { flex: none; margin-top: 0.1rem; }
.nt-status.ok { background: var(--ok-bg); border-color: var(--ok-border); }
.nt-status.err { background: var(--danger-bg); border-color: var(--danger-border); }
.nt-status-body { min-width: 0; }
.nt-status a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.4rem;
  font-weight: 600;
}
@keyframes nt-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.nt-card .note { margin-top: 1.25rem; line-height: 1.5; }

@media (max-width: 640px) {
  .nt-card { padding: 1.1rem; }
  .nt-status a { display: flex; margin: 0.3rem 0 0; }
}
